sheets_get_values
Google Sheets read low risk
Part of the Google Sheets Agent.
What it does
Reads back values from an A1 range of a spreadsheet (spreadsheets.values.get) - used to verify an export landed correctly, reconcile exported figures against source reporting (the +/-1% accuracy gate), or fetch existing rows before an append/dedupe. Key inputs: `spreadsheet_id`, `range` in A1 notation (e.g. 'Performance!A1:F50'; omit the tab to read the first sheet), optional `major_dimension` ('ROWS' default or 'COLUMNS'), and `value_render_option` ('FORMATTED_VALUE' default - as shown to the client, 'UNFORMATTED_VALUE' - raw typed values, or 'FORMULA'). Returns Google's ValueRange: the `range` actually read, `majorDimension`, and `values` as a 2D array. Trailing empty rows/columns are omitted from the response. Response shape: success {success:true,data:{range,majorDimension,values}}; error {success:false,error_class,message,action_required,is_retryable}.
Inputs
| Name | Type | Required | Description |
|---|---|---|---|
spreadsheet_id | string | yes | Spreadsheet ID to read from. |
range | string | yes | A1 notation range to read, e.g. 'Performance!A1:F50' or 'Performance!A:F'. Without a tab prefix, reads the first sheet. |
major_dimension | string | no | 'ROWS' (default - outer array is rows) or 'COLUMNS'. |
value_render_option | string | no | 'FORMATTED_VALUE' (default - as displayed), 'UNFORMATTED_VALUE' (typed values), or 'FORMULA' (formula text). |
date_time_render_option | string | no | 'SERIAL_NUMBER' or 'FORMATTED_STRING'. Only applies when value_render_option is not FORMATTED_VALUE. |
Safeguards
Policy
Read only the authorizing client's own spreadsheets: Scalix's Google scope (spreadsheets) opens any spreadsheet the connected account can, including files shared with it or public, so confirm the file is the client's; strict per-account isolation - never expose another tenant's data. Use read-back solely to verify/reconcile the client's own exported data. Data-usage: if LinkedIn member-derived values are encountered, never cache, persist, re-expose, or use them to enrich/append/verify profiles or build a cross-account database; member/lead data is for the authorizing client and consented purposes only. Honor deletion on request; member profile data caches <=24h, social activity <=48h.
Reminder
Use read-back to reconcile exported figures to source within +/-1% before reporting success.
Errors
| Error class | Means | What to do | Retry |
|---|---|---|---|
auth_error | Missing or expired Google token, invalid session, or ungranted read scope (401). | Reconnect Google in the Scalix dashboard (the connection requests the spreadsheets scope), then retry. | no |
permission_error | Account lacks read access to the spreadsheet (403). | Confirm the connected Google account can open the file (its owner shares it with that account); fix access before retrying. | no |
not_found_error | spreadsheet_id or the named tab/range does not exist (404). | Verify the spreadsheet_id and tab name in the range; do not retry blindly. | no |
rate_limit_error | Sheets read quota exceeded (429): 60 reads/min/user, 300/min/project. | Retry with truncated exponential backoff min((2^n + random_ms), 64s). | yes |
validation_error | Malformed A1 range or bad render option (400). Surface the Google message verbatim. | Correct the range/options per the platform message and retry. | no |
platform_error | Google Sheets API server error (500/503). | Retry with truncated exponential backoff; report persistent outages. | yes |
Edge cases
- Empty results: a range with no data returns no 'values' key (treat as empty 2D array, not an error).
- Trailing empty cells/rows are trimmed, so returned rows can be shorter/fewer than the requested range - pad client-side when aligning to columns.
- Pagination: values.get has no paging; for very large reads, request narrower ranges or use values:batchGet, and respect the per-request ~2MB performance guidance.
- FORMATTED_VALUE returns strings shaped by the client's locale (e.g. '$1,200.50', '12%'); use UNFORMATTED_VALUE for numeric reconciliation to avoid parsing locale formatting.
- Read is idempotent and safe to retry on transient errors.
- Retention/consent: if member-derived values are encountered, do not persist or re-expose them; surface only the client's own aggregated data, honoring the 24h/48h purge constraint.