Skip to main content
Glama

Get a spreadsheet's structure

get_google_spreadsheet
Read-only

Read a spreadsheet's shape without reading any cells: its tabs, their sizes, and any named ranges. Call this first to learn what tabs exist, then read a range from the one you want.

Input Schema

NameRequiredDescriptionDefault
mailboxYesEmail address of the connected Gmail/Google Workspace mailbox to act on. Call list_authorized_mailboxes to see available options.
spreadsheetIdYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, non-destructive, and closed-world, so the safety profile is covered. The description adds genuine behavioral context by stressing the metadata-only, cell-free nature of the read, which implies a small response and no data exposure. It doesn't discuss auth or limits, but the mailbox schema parameter covers auth.

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

Conciseness5/5

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

Two tight sentences, zero filler, with the scope-defining constraint ('without reading any cells') front-loaded before the workflow guidance. Every clause earns its place.

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

Completeness4/5

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

With no output schema, the description usefully enumerates the return contents (tabs, sizes, named ranges), which is the key missing piece an agent needs. Auth is handled by the mailbox parameter description. Minor gaps remain around response limits or behavior on invalid IDs, but the definition is sufficient to call correctly.

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

Parameters3/5

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

Schema coverage is 50%: mailbox is fully documented in the schema (including the list_authorized_mailboxes pointer), while spreadsheetId carries no schema description. The description adds nothing about either parameter, and spreadsheetId's format is only inferable from the tool name. Baseline 3 is appropriate.

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

Purpose5/5

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

States a specific verb+resource (read a spreadsheet's structure) and pinpoints the returned payload: tabs, their sizes, named ranges. The phrase 'without reading any cells' cleanly distinguishes it from the sibling read_google_sheet_range, so an agent can pick it apart without opening either schema.

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

Usage Guidelines5/5

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

'Call this first to learn what tabs exist, then read a range from the one you want' gives explicit sequencing with the alternative tool. It states both when to use it (before reading data) and what the next step is, leaving nothing to inference.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources