Sheets Get Spreadsheet
sheets_get_spreadsheetRead a Google Sheets spreadsheet's title, locale, tabs, sheet IDs, and grid dimensions; optionally include displayed cell values to inspect structure or prepare edits.
Instructions
Read a spreadsheet's structure: its title, locale and every sheet (tab) with its ID and grid size. The spreadsheet_id comes from drive_list_files, search_workspace or sheets_create_spreadsheet; for cell values use sheets_read_sheet_values. Returns spreadsheet_id, title, locale, spreadsheet_time_zone (the file's own setting), url, named_ranges (name, named_range_id, A1 range) and sheets, each with sheet_id, title, index, type, row_count, column_count, frozen_row_count, frozen_column_count and hidden. With include_grid_data each sheet also has values (displayed cell text) and values_start (the cell of values[0][0]), else both are null; format raw returns Google's JSON instead, paged.
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": {
"spreadsheet_id": "<spreadsheet_id>"
},
"name": "sheets_get_spreadsheet"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| format | No | 'normalized' (the default) returns the summary described above. 'raw' returns Google's Spreadsheet resource unchanged in spreadsheet, with the formats, conditional formats, charts, merges, filters, protected and banded ranges and data sources the summary leaves out, for sheets_batch_update_spreadsheet edits; it needs the extended tool tier and fails with invalid_input under MCP_TOOL_TIER=core. | normalized |
| offset | No | Raw only (normalized ignores it): the next_offset of a truncated raw result. Raw pages hold about 32,000 characters of JSON and are cut between whole sheets, the first page holding every other field; joining each list across pages gives Google's resource. raw_chars and raw_sha256 describe the whole resource. 0 starts at the beginning. | |
| ranges | No | A1 ranges that limit the response to the sheets (and, with include_grid_data, the cells) they cover, e.g. ['Sheet1!A1:C10']; basic A1 notation as in sheets_read_sheet_values, so a bare sheet name is rejected. Omitted, every sheet is returned. | |
| spreadsheet_id | Yes | Google Sheets spreadsheet ID: the Drive file ID, also the long ID in the spreadsheet's URL. | |
| include_grid_data | No | Also return each sheet's cell values, as displayed, in sheets[].values (raw: Google's data with every cell's formatting); this can be very large, so limit it with ranges. For values alone use sheets_read_sheet_values. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | ||
| title | No | ||
| format | No | ||
| locale | No | ||
| sheets | No | ||
| raw_chars | No | ||
| truncated | No | ||
| raw_sha256 | No | ||
| next_offset | No | ||
| spreadsheet | No | ||
| named_ranges | No | ||
| element_count | No | ||
| spreadsheet_id | No | ||
| spreadsheet_time_zone | No |