Sheets Read Sheet Values
sheets_read_sheet_valuesRead cell values from one or more A1 ranges in a Google Sheets spreadsheet in a single call, returning values and row counts for each requested range.
Instructions
Read the cell values of one or more A1 ranges of a Google Sheets spreadsheet in a single call. The spreadsheet_id comes from drive_list_files, search_workspace or sheets_create_spreadsheet; for the sheet (tab) names and sizes use sheets_get_spreadsheet, and to write cells sheets_update_sheet_values. Returns spreadsheet_id, count and value_ranges, one per requested range in request order (a list even for one range), each with range (the A1 range actually read), major_dimension, values (rows, or columns with major_dimension COLUMNS, without trailing empty rows and cells; [] when the range is empty) and row_count.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"ranges": "<ranges>",
"spreadsheet_id": "<spreadsheet_id>"
},
"name": "sheets_read_sheet_values"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ranges | Yes | One or more ranges to read, e.g. ['Sheet1!A1:C10'] or ['Sheet1!A1:C10', 'Sheet2!A:B']. Basic A1 notation with an optional sheet prefix: 'Sheet1!A1:C10', 'A1', 'A:C' (whole columns) or '1:5' (whole rows); quote sheet names that contain spaces ('My Sheet'!A1:B2). A bare sheet name or an open-ended range such as A2:C is rejected, and without a prefix the first sheet is used. | |
| spreadsheet_id | Yes | Google Sheets spreadsheet ID: the Drive file ID, also the long ID in the spreadsheet's URL. | |
| major_dimension | No | Whether values are returned as a list of ROWS or a list of COLUMNS. | ROWS |
| value_render_option | No | How cell values are returned: FORMATTED_VALUE as displayed, UNFORMATTED_VALUE as raw numbers, or FORMULA to return formulas instead of results. | |
| date_time_render_option | No | How dates and times are returned when value_render_option is not FORMATTED_VALUE: SERIAL_NUMBER (days since 1899-12-30) or FORMATTED_STRING. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| count | No | Number of items in this response. | |
| value_ranges | No | ||
| spreadsheet_id | No |