Skip to main content
Glama
google-sheets-mcp
by ezrazhang7

Get spreadsheet info

get_spreadsheet_info
Read-only

Retrieve a Google spreadsheet's title, sheet tabs, IDs, and grid sizes before making structural edits to see which sheets exist.

Instructions

Get a spreadsheet's title and its sheets (tabs) with their IDs and grid sizes. Call this before structural edits to see what sheets exist.

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": "get_spreadsheet_info"
  }
}

Input Schema

NameRequiredDescriptionDefault
spreadsheetIdYesSpreadsheet ID or full Google Sheets URL

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.4

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, so safety is covered; the description adds value by disclosing the return payload (title, sheet names, IDs, grid sizes), which matters since no output schema exists. It does not mention auth requirements or limits on large spreadsheets, a minor gap for a simple read.

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: the first states what is returned, the second states when to call it. Both are front-loaded and each 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?

For a one-parameter read tool with an output payload that is described and annotations covering safety, this is largely complete. It could say more about the units of grid sizes or behavior on very large spreadsheets, but nothing essential to correct invocation is missing.

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?

There is a single parameter with 100% schema coverage, and the schema already explains it accepts an ID or a full Google Sheets URL. The description adds no parameter detail, but the baseline for a fully documented single-param tool is a 4.

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 names a specific verb and resource ("Get a spreadsheet's title and its sheets (tabs) with their IDs and grid sizes") and even specifies the returned fields, so an agent knows exactly what the call yields. It does not explicitly differentiate itself from siblings like list_spreadsheets, which keeps it 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?

It gives a concrete trigger: "Call this before structural edits to see what sheets exist," which ties the tool to the insert/delete/format siblings without naming them. There is no explicit when-not-to-use or named alternative, so it stops short of a 5.

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