Get Google Spreadsheet
sheets_get_spreadsheetRetrieve metadata and optional cell data from a Google Spreadsheet. Get title, sheet names, row/column counts, locale, and URL.
Instructions
Retrieve metadata and optionally cell data from a Google Spreadsheet.
Args:
spreadsheet_id (string): The ID of the Google Spreadsheet (found in the URL after /d/)
include_grid_data (boolean): Whether to include cell data (default: false)
response_format ('markdown' | 'json'): Output format (default: 'markdown')
Returns: Spreadsheet title, sheets info, and metadata. For JSON format: { "spreadsheetId": string, "title": string, "locale": string, "sheets": [{ "sheetId": number, "title": string, "rowCount": number, "columnCount": number }], "spreadsheetUrl": string }
Examples:
Get spreadsheet info: spreadsheet_id="1BxiMVs0XRA5nFMdKvBdBZjgmUUqptlbs74OgvE2upms"
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 |
|---|---|---|---|
| spreadsheet_id | Yes | The ID of the Google Spreadsheet (found in the URL) | |
| include_grid_data | No | Whether to include cell data (can be large) | |
| response_format | No | Output format: 'markdown' for human-readable or 'json' for structured data | markdown |