Skip to main content
Glama

get_multiple_spreadsheet_summary

Read-only

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

NameRequiredDescriptionDefault
local_pathNo
rows_to_fetchNo
spreadsheet_idsYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.9.6

TDQS

A4.1/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Well beyond what readOnlyHint gives: concurrent summarization, progress notifications tied to progressToken, cache behavior with the exact refresh_cache invocation, the MAX_TOOL_RESPONSE_CHARS failure mode with three concrete remedies, and the ValueError/overwrite rules for local_path. It also flags the important caveat that local_path resolves on the server's filesystem, not the caller's. Loses a point only because return shape is repeated rather than the description focusing purely on behavior.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded purpose sentence followed by clearly labeled Args/Returns sections; the ordering is easy to scan. The Returns paragraph is dense and mixes return shape with error and cache guidance, which could be split, but nearly every sentence adds actionable information.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 3-parameter batch tool with an output schema and readOnlyHint, nothing material is missing: input meaning, failure modes, fallback path, cache invalidation path, and result shape are all covered. An agent could invoke this correctly and recover from the size-cap error without further documentation.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 0%, so the description carries the full burden and does: spreadsheet_ids is a list of IDs, rows_to_fetch is documented as including the header with a default of 5, and local_path gets elaborate semantics (trailing slash = directory created if missing, file-in-place-of-parent or trailing-slash-on-file raises ValueError, existing file is replaced, server-side resolution). That is far more than the bare schema types convey.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and scope: 'Get a summary of multiple Google Spreadsheets, including sheet names, headers, and the first few rows.' The plural 'multiple' plus 'summary' distinguishes it conceptually from single-sheet or raw-data reads, but it never names get_multiple_sheet_data or get_sheet_data as the alternatives, so differentiation is left implicit.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage is implied by the batch-summarize scope, and there is strong operational guidance (concurrency, progressToken, when to use local_path to bypass the response cap, refresh_cache to invalidate). However there is no explicit statement of when to choose this over the sibling data-fetching tools, which is the main selection decision an agent faces.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools