get_multiple_spreadsheet_summary
Summarize multiple Google Spreadsheets in one call, returning each sheet's title, headers, and first rows; optionally write results to a server-side path.
Instructions
Get a summary of multiple Google Spreadsheets, including sheet names, headers, and the first few rows of data for each sheet.
Spreadsheets summarize concurrently rather than one at a time. If the caller
supplied a progressToken, a notifications/progress update is sent as each
summary finishes (#355).
Args: spreadsheet_ids: A list of spreadsheet IDs to summarize. rows_to_fetch: The number of rows (including header) to fetch for the summary (default: 5). local_path: Optional local filesystem path (file or directory) to write the result to instead of returning it inline. Bypasses the response-size cap. A path ending in '/' is a directory, created if missing. A file in place of a parent directory, or at a path ending in '/', raises ValueError; an existing file at a plain file path is replaced. Same caveat as download_file/download_folder: this path is resolved on the server's filesystem, not the caller's.
Returns: A list of dictionaries, each representing a spreadsheet summary. Includes spreadsheet title, sheet summaries (title, headers, first rows), or an error. Results are cached; call refresh_cache(spreadsheet_id=) to invalidate, or refresh_cache() to clear all caches. Raises ValueError if the response exceeds a safety cap (see MAX_TOOL_RESPONSE_CHARS in docs/configuration.md for the configured default) and local_path is not set — summarize fewer spreadsheets per call, lower rows_to_fetch, or pass local_path. If local_path is set, returns {local_path, spreadsheet_count, bytes_written} instead.
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_ids": "<spreadsheet_ids>"
},
"name": "get_multiple_spreadsheet_summary"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| local_path | No | ||
| rows_to_fetch | No | ||
| spreadsheet_ids | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |