Skip to main content
Glama

get_multiple_sheet_data

Read-only

Fetch data from multiple Google Sheets ranges in one request, using concurrent queries and optional local file output to avoid response-size limits.

Instructions

Get data from multiple specific ranges in Google Spreadsheets.

Queries fetch concurrently rather than one at a time. If the caller supplied a progressToken, a notifications/progress update is sent as each query finishes (#355).

Args: queries: A list of dictionaries, each specifying a query. Each dictionary must have 'spreadsheet_id' and 'sheet' keys. 'range' is optional; omitting it returns the entire sheet. Example: [{'spreadsheet_id': 'abc', 'sheet': 'Sheet1', 'range': 'A1:B5'}, {'spreadsheet_id': 'xyz', 'sheet': 'Data'}] 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 containing the original query parameters and the fetched 'data' or an 'error'. 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 — split into fewer queries per call, or pass local_path. If local_path is set, returns {local_path, query_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": {
      "queries": "<queries>"
    },
    "name": "get_multiple_sheet_data"
  }
}

Input Schema

NameRequiredDescriptionDefault
queriesYes
local_pathNo

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?

Consistent with readOnlyHint=true, and it goes well beyond the annotation: concurrent fetching, progress notifications when a progressToken is supplied, a response-size safety cap with remediation options, and the important caveat that local_path resolves on the *server's* filesystem, not the caller's. The only gap is that it doesn't characterize partial-failure behavior beyond noting each result carries 'data' or 'error'.

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 with the core purpose, then Args/Returns sections that make skimming easy; every section is scannable. It runs long, particularly the local_path paragraph and the parenthetical issue reference and docs pointer, but that length is buying real semantics rather than padding.

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?

Despite having an output schema, the description still spells out the two possible return shapes (per-query list with 'data'/'error', or {local_path, query_count, bytes_written}), which resolves ambiguity an agent would otherwise face. Error conditions, the size cap, and server-vs-caller path resolution are all covered for a two-parameter batch read tool.

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 description coverage is 0%, so the description must carry the load, and it does: it enumerates the required 'spreadsheet_id' and 'sheet' keys, marks 'range' optional with the default meaning (entire sheet), and gives a concrete two-element example. local_path gets full semantics too – file vs directory, '/' suffix convention, creation-if-missing, ValueError and replacement behavior.

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?

The opening line names a specific verb and resource ('Get data from multiple specific ranges in Google Spreadsheets') and the word 'multiple' distinguishes it from the single-sheet sibling get_sheet_data. However, the sibling is never named, so the differentiation is only implicit through the word 'multiple'.

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?

The description gives a reason to prefer this tool ('Queries fetch concurrently rather than one at a time'), which implies batching many ranges is the intended use case, and it tells the caller to 'split into fewer queries per call' when hitting the cap. It never explicitly says when to use this versus get_sheet_data for a single range, nor does it name the alternative.

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