Skip to main content
Glama
c0webster

Hardened Google Workspace MCP

by c0webster

find_and_replace_doc

Search and replace text in Google Docs to update content efficiently. This tool helps users modify documents by finding specific text and replacing it with new content.

Instructions

Finds and replaces text throughout a Google Doc.

Args: user_google_email: User's Google email address document_id: ID of the document to update find_text: Text to search for replace_text: Text to replace with match_case: Whether to match case exactly

Returns: str: Confirmation message with replacement count

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
user_google_emailYes
document_idYes
find_textYes
replace_textYes
match_caseNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.7.1

TDQS

A3.5/5.0
Behavior2/5

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

With no annotations, the description carries the full burden of behavioral disclosure. It mentions the operation and return value but fails to disclose that this is a mutating operation with likely irreversible changes, or any authorization requirements beyond an email address. The phrase 'throughout' implies all occurrences, but no warnings or side effects are noted.

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?

The description is well-structured with a one-line summary followed by a clean Args list and Returns line. Every word serves a purpose, and it is directly readable without extraneous information.

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?

Given the tool's moderate complexity (5 parameters), no annotations, and presence of an output schema, the description covers core functionality and parameter semantics but lacks contextual completeness. It omits usage guidance, behavioral warnings, and any discussion of document access or editability prerequisites, making it minimally adequate.

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?

The description provides concise explanations for all five parameters, compensating for the 0% schema description coverage. Each parameter (user_google_email, document_id, find_text, replace_text, match_case) is meaningfully described, though descriptions are brief and could include more detail on formats or constraints.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states 'Finds and replaces text throughout a Google Doc' with a specific verb (finds and replaces), resource (Google Doc), and scope (throughout). This distinguishes it from sibling tools like modify_doc_text by emphasizing a global find-and-replace operation.

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?

No guidance is provided on when to use this tool versus alternatives such as modify_doc_text or batch_update_doc. The description only states the action, leaving the agent to infer appropriate usage without explicit context or exclusions.

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