Skip to main content
Glama

getTable

Retrieves detailed columns, range, and properties for a specified Google Sheets table by name or ID, helping agents inspect table structure before making edits.

Instructions

Gets detailed information about a specific table including its columns, range, and properties. Use the table name or ID returned by listTables.

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": {
      "spreadsheetId": "<spreadsheetId>",
      "tableIdentifier": "<tableIdentifier>"
    },
    "name": "getTable"
  }
}

Input Schema

NameRequiredDescriptionDefault
spreadsheetIdYesThe spreadsheet ID — the long string between /d/ and /edit in a Google Sheets URL.
tableIdentifierYesThe table name or table ID. Names are resolved first, then IDs. Use listTables to see available tables.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv4.0.0-rc.1

TDQS

B3.3/5.0
Behavior2/5

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

No annotations are supplied, so the description must cover the behavior on its own. "Gets" implies a read-only operation, and the description does say which fields are returned, but it omits error behavior when the table is not found, permission requirements, and how name/ID resolution conflicts are handled beyond what the schema already states. For a tool with no annotation coverage, these gaps are significant.

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?

Two short sentences, front-loaded with the purpose and followed by the identifier-sourcing hint; neither sentence is wasted. The second sentence somewhat repeats the tableIdentifier schema description, which is minor redundancy rather than clutter.

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?

This is a simple two-parameter read tool, and the description enumerates the returned fields, compensating partially for the absence of an output schema. The missing pieces, error conditions and permission requirements, are secondary for a straightforward getter, though the lack of annotations means they would have been worth stating.

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 100%, so both spreadsheetId and tableIdentifier are already documented, including the name-first-then-ID resolution rule. The description adds only the pointer to listTables for obtaining the identifier, which is helpful but mostly duplicates the schema's own wording. This is the baseline case where the schema does the heavy lifting.

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 resource ("Gets detailed information about a specific table") and enumerates what is returned: columns, range, and properties. It also implicitly distinguishes itself from its sibling listTables by saying the identifier comes from that tool, rather than being a list operation itself.

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 definition gives clear context for how to obtain the identifier ("Use the table name or ID returned by listTables"), which implies the intended workflow: list first, then fetch details. It does not say when to prefer this over other read tools such as getSpreadsheetInfo or getFormatting, and it gives no exclusions or prerequisites.

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