Skip to main content
Glama
gworkspace-mcp
by ctschak

Describe a spreadsheet

sheets_describe

Describes a spreadsheet's structure—tabs, used ranges, frozen rows/columns, named and protected ranges, charts, and conditional formats—before reads or edits.

Instructions

Structure of a spreadsheet with no cell data: tabs with sheetId, index, allocated and USED ranges, frozen rows/columns, named ranges, protected ranges, and chart/conditional-format counts. Call this before any read or structural edit — the used range is what lets a read target A1:G412 instead of A:ZZ.

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": "<spreadsheet>"
    },
    "name": "sheets_describe"
  }
}

Input Schema

NameRequiredDescriptionDefault
accountNoGoogle account to act as. Optional when one account is authorised or a default is set; required otherwise.
spreadsheetYesSpreadsheet URL or file id. Both accepted; a URL has its id extracted.
maxProbeCellsNoSkip the used-range probe when the allocated grid exceeds this many cells. Default 2000000.
includeUsedRangesNoProbe each tab for its populated rectangle (default true). Set false on very large spreadsheets to skip the probe.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A4.2/5.0
Behavior4/5

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

No annotations are supplied, so the description carries the full burden, and it does substantial work: it discloses the return shape in detail and hints at cost behavior through the used-range probe and the 'very large spreadsheets' escape hatch. It does not state that the operation is read-only/side-effect-free, nor what happens when the account lacks access to the spreadsheet, which for an unannotated tool is the remaining gap.

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 sentences, zero filler, and front-loaded: what it returns comes first, the calling rule and its rationale second. The A1:G412 vs A:ZZ example makes the payoff concrete in a single clause.

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 must describe return values and does so thoroughly, covering per-tab fields and aggregate counts. It is nearly complete for a four-parameter, zero-annotation read tool; only access-failure behavior and an explicit read-only assurance are absent.

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 description coverage is 100%, so every parameter (account, spreadsheet, maxProbeCells, includeUsedRanges) is already documented in the schema, establishing a baseline of 3. The description adds only indirect meaning by explaining why used ranges matter, without new syntax or format guidance for any parameter.

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?

The description names a specific resource and scope: structural metadata of a spreadsheet with explicitly 'no cell data', then enumerates the exact contents (tabs, sheetId, index, allocated/USED ranges, frozen rows/columns, named ranges, protected ranges, chart/conditional-format counts). The 'no cell data' phrasing is precisely what distinguishes it from the sheets_read sibling, so an agent can route 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 Guidelines4/5

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

It gives an explicit precondition — 'call this before any read or structural edit' — and justifies it with the concrete benefit of targeting A1:G412 instead of A:ZZ. What is missing is the negative case: nothing says when to skip it (e.g., a spreadsheet already described, or when includeUsedRanges=false makes the probing benefit moot).

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