Skip to main content
Glama
tom275275

Google Workspace MCP Server

by tom275275

modify_doc_text

Insert, replace, or format text in a Google Doc at a specific location. Adjust bold, italic, underline, font, color, or add links in a single operation.

Instructions

Modifies text in a Google Doc - can insert/replace text and/or apply formatting in a single operation.

Args: user_google_email: User's Google email address document_id: ID of the document to update start_index: Start position for operation (0-based) end_index: End position for text replacement/formatting (if not provided with text, text is inserted) text: New text to insert or replace with (optional - can format existing text without changing it) bold: Whether to make text bold (True/False/None to leave unchanged) italic: Whether to make text italic (True/False/None to leave unchanged) underline: Whether to underline text (True/False/None to leave unchanged) font_size: Font size in points font_family: Font family name (e.g., "Arial", "Times New Roman") text_color: Foreground text color (#RRGGBB) background_color: Background/highlight color (#RRGGBB) link_url: Hyperlink URL (http/https)

Returns: str: Confirmation message with operation details

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
boldNo
textNo
italicNo
link_urlNo
end_indexNo
font_sizeNo
underlineNo
text_colorNo
document_idYes
font_familyNo
start_indexYes
background_colorNo
user_google_emailYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.14.3

TDQS

A3.6/5.0
Behavior3/5

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

With no annotations, the description carries the behavioral disclosure burden. It does explain key behaviors such as end_index controlling insertion vs replacement, text being optional for formatting-only operations, and returning a confirmation message. However, it does not warn about the destructive nature of replacing text, permission requirements, or failure states.

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?

The description opens with a concise one-sentence purpose and then uses a structured Args list. It is long, but the length is justified by the high parameter count and the need to document optional interactions. There is no filler or repetition.

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?

The description covers the operation, parameter semantics, optional behaviors, and return value, which is largely sufficient for invoking the tool correctly. It is slightly incomplete in that it lacks guidance for choosing this tool over related document-editing tools and does not address side effects of replacement, but overall the core invocation context is present.

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

Parameters5/5

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

Schema description coverage is 0%, but the description fully compensates by documenting all 13 parameters with meaningful semantics. It explains optional behavior, formatting values, color formats, and index semantics, which is far beyond what the raw schema provides.

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 clearly identifies the operation: 'Modifies text in a Google Doc' and enumerates the capabilities: insert, replace, and apply formatting in a single operation. However, it does not differentiate itself from near-sibling tools such as find_and_replace_doc, batch_update_doc, or update_paragraph_style, so an agent may not know which one to prefer.

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?

The description gives no explicit guidance on when to use this tool versus alternatives. It does not mention that this tool operates on index-based ranges rather than find-and-replace or structural batch updates, nor does it state any exclusions or prerequisites.

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