Skip to main content
Glama

list_sheets

Read-only

Retrieve all sheet names from a Google Spreadsheet using its ID. Results are cached, so refresh the cache when you need current sheet data.

Instructions

List all sheets in a Google Spreadsheet.

Args: spreadsheet_id: The ID of the spreadsheet (found in the URL)

Returns: List of sheet names. Results are cached; call refresh_cache(spreadsheet_id=spreadsheet_id) to invalidate, or refresh_cache() to clear all caches.

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_id": "<spreadsheet_id>"
    },
    "name": "list_sheets"
  }
}

Input Schema

NameRequiredDescriptionDefault
spreadsheet_idYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, so the safety profile is covered. The description adds genuinely new behavioral context: results are cached and must be invalidated via refresh_cache(spreadsheet_id=...) or refresh_cache() for a global clear — a non-obvious trait that will change how an agent sequences calls. It does not cover permissions or behavior on a missing/invalid spreadsheet ID.

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?

Short, front-loaded with the action, and organized into Args and Returns blocks that are easy to scan. The only mild inefficiency is that the Returns section partly duplicates what the output schema already declares.

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 single-parameter read tool with annotations and an output schema, the description covers purpose, argument sourcing, and the caching caveat. Remaining gaps — error behavior for an invalid ID and whether results are ordered — are minor given the structured fields already present.

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

Parameters4/5

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

Schema coverage is 0% and the schema only labels the field 'Spreadsheet Id', so the description must compensate — and it does, explaining the parameter is the spreadsheet's ID and that it can be found in the URL. Only one parameter exists, so this is close to full coverage.

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: 'List all sheets in a Google Spreadsheet.' The agent immediately knows the operation and scope, and the resource (sheets within one spreadsheet) is distinct from the file-level siblings like list_files. It does not explicitly name a sibling it is not, so it falls short of a 5.

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?

Implies the clear context of enumerating tabs before reading data, and even states where to obtain the required ID ('found in the URL'). It also names the related refresh_cache tool and its two call forms, though it does not explicitly contrast this with get_sheet_data or find_in_spreadsheet.

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