Skip to main content
Glama

Find and replace

find_replace
Destructive

Replace text across a Google Sheets tab or whole spreadsheet, with regex, case, and formula options. Not undoable; inspect cells first.

Instructions

Find and replace text across a tab or the whole spreadsheet. Not undoable - consider read_range first.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
findYes
sheetNoLimit to this tab (default: all tabs)
accountNoGoogle account to use: an email or unique part of one (e.g. "acme.com"). Default: the account that can open the spreadsheet, else the default account.
use_regexNo
match_caseNo
replacementYes
spreadsheetYesGoogle Sheets link or spreadsheet ID. The name of a spreadsheet used with Sheets MCP before also works
include_formulasNo
match_entire_cellNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.3.1

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already flag destructiveHint=true and readOnlyHint=false, but the description adds the critical detail that the edit cannot be undone by undo_last, plus the suggested read-before-write workflow. That is genuine value beyond the structured hints; it does not, however, describe the blast radius (e.g. how many cells get rewritten) or the response.

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, with the scope statement front-loaded and the risk warning immediately after. Nothing redundant with the title or annotations.

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

Completeness3/5

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

For a destructive, 9-parameter mutation with no output schema and low schema coverage, the description covers the most important context (irreversibility) but omits the semantics of the replacement modifiers. An agent could still make a wrong-scoped replacement (regex on/off, formulas included) without further guidance.

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

Parameters2/5

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

Schema coverage is only 33% across 9 parameters, and the description adds nothing about them. Behavioral modifiers that materially change the operation -- use_regex, include_formulas, match_case, match_entire_cell -- are undocumented in both the schema and the description, leaving the agent to guess what will actually be replaced.

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+resource ('find and replace text') and its scope ('across a tab or the whole spreadsheet'), which maps cleanly to the sheet parameter's default of all tabs. No sibling performs find/replace, so differentiation is implicit rather than stated, but the action is unambiguous.

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?

Gives a concrete precaution ('Not undoable - consider read_range first') and names read_range as the alternative to consult before mutating. It stops short of stating when this is the right tool versus write_range/fill_range for bulk edits, but the cautionary routing is clear.

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