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

Find and replace

find_replace

Search for and replace text across one sheet or all sheets, with optional formula matching to update spreadsheet content.

Instructions

Find and replace text across a sheet or the whole spreadsheet. Can also search inside formulas.

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>",
      "find": "<find>",
      "replacement": "<replacement>"
    },
    "name": "find_replace"
  }
}

Input Schema

NameRequiredDescriptionDefault
findYesText to find
sheetNoSheet (tab) name; defaults to the first sheet
allSheetsNoSearch every sheet instead of just one
matchCaseNo
replacementYesReplacement text
spreadsheetIdYesSpreadsheet ID or full Google Sheets URL
searchFormulasNoAlso match text inside formulas
matchEntireCellNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.4

TDQS

C2.9/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden for a bulk mutation operation. It does not say whether every match is replaced, whether the change is reversible, how formulas are treated when replaced, or what the response contains — only that formula text can be searched.

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 with no filler, and the core operation is front-loaded. The second sentence is a useful scope note rather than padding, though the whole thing is arguably under-specified rather than concise.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For an 8-parameter, irreversible bulk-mutation tool with no annotations and no output schema, the description is too thin. An agent cannot tell from it whether partial matches are replaced, what happens to formula results, or what confirmation the call returns.

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 75%, and the description reinforces the find/replacement, sheet scoping, and formula-search parameters. It adds nothing about matchCase or matchEntireCell, leaving those two behavioral flags entirely to the schema.

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 states a specific verb and resource ("find and replace text") plus the target scope (a sheet or the whole spreadsheet), which no sibling tool duplicates. It does not explicitly name a contrasting sibling, but the operation is distinct enough that an agent can identify it without ambiguity.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no guidance on when to use this tool versus read_range/update_cells for locating and editing values, and no mention of prerequisites such as the spreadsheet being writable. The only usage signal is the sheet-vs-allSheets scoping implied by the first sentence.

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