Skip to main content
Glama

get_sheet_formulas

Read-only

Retrieve formulas from a specific Google Spreadsheet sheet, optionally limited to an A1 range, to inspect or audit calculations.

Instructions

Get formulas from a specific sheet in a Google Spreadsheet.

Args: spreadsheet_id: The ID of the spreadsheet (found in the URL) sheet: The name of the sheet range: Optional cell range in A1 notation (e.g., 'A1:C10'). If not provided, gets all formulas from the sheet.

Returns: A 2D array of the sheet formulas, or {"error": ...} if the range is rejected by the Sheets API (issue #757).

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

Input Schema

NameRequiredDescriptionDefault
rangeNo
sheetYes
spreadsheet_idYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.9.6

TDQS

A3.9/5.0
Behavior4/5

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

Annotations supply readOnlyHint=true, and the description adds genuine context beyond them: the whole-sheet default when range is omitted, and the error-object return when the range is rejected by the Sheets API (issue #757). That error behavior is real operational detail an agent needs to handle responses.

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?

Front-loaded one-line purpose followed by compact Args/Returns sections; every line adds information (URL hint, A1 example, default, error case). Nothing is padded.

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?

An output schema exists, so the Returns note is partly redundant, but pairing it with the error case is useful rather than repetitive. For a 3-parameter read tool this is close to complete; only sheet-name semantics and empty-cell behavior are unaddressed.

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%, so the description carries the burden and mostly does: spreadsheet_id is anchored to 'found in the URL,' range is given A1 notation with an 'A1:C10' example and a stated default. Minor gap: no indication of what a sheet name looks like or whether it is case-sensitive.

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: 'Get formulas from a specific sheet in a Google Spreadsheet.' It is clearly distinguishable from value-oriented siblings like get_sheet_data because it names formulas explicitly, though it does not call out that sibling by name.

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?

Usage is only implied: an agent can infer 'use this when you need formulas rather than values,' and the range parameter's default behavior is explained. There is no explicit when-to-use/when-not statement or named alternative (e.g., get_sheet_data for computed values).

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