Skip to main content
Glama

listTables

Lists all tables in a Google Sheets spreadsheet or a specific sheet, helping you discover table names and IDs before performing table operations.

Instructions

Lists all tables in a spreadsheet or specific sheet. Use this to discover table names and IDs before performing table operations.

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

Input Schema

NameRequiredDescriptionDefault
sheetNameNoOptional: filter tables to only those on this specific sheet.
spreadsheetIdYesThe spreadsheet ID — the long string between /d/ and /edit in a Google Sheets URL.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv4.0.0-rc.1

TDQS

A3.8/5.0
Behavior3/5

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

With no annotations supplied, the description must carry the behavioral burden. "Lists" implies a non-destructive read, and the discovery framing implies the response contains names and IDs, but there is no statement about permissions, pagination, empty results, or what happens when sheetName does not match a sheet. That is adequate but thin for an unannotated tool.

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 short sentences, zero filler, with the action stated first and the workflow cue second. Nothing could be removed without losing either purpose or guidance.

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?

For a two-parameter read-only list tool with a fully described schema and no output schema, the definition covers what the tool does and why an agent would call it. The only meaningful gap is that the shape of returned table objects is only implied by "names and IDs."

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 parameters are already documented, including the Google Sheets URL hint for spreadsheetId and the filter semantics of sheetName. The description's phrase "or specific sheet" echoes the filter but adds no new syntax or format meaning, so the baseline 3 applies.

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 description gives a specific verb ("Lists") and resource ("tables") plus the scope ("in a spreadsheet or specific sheet"), so an agent knows exactly what comes back at a coarse level. It stops short of distinguishing itself from adjacent listing tools (e.g., tab/sheet listing) that appear in the sibling set, but the purpose is unmistakable.

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?

The second sentence supplies real when-to-use guidance: call this first to discover table names and IDs before any table operation. It does not name an alternative or state exclusions (for example, when to use the broader sheet-listing tools instead), which keeps it below a 5.

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