Skip to main content
Glama
ZatesloFL

Google Workspace MCP Server

by ZatesloFL

modify_doc_text

Update and format text in Google Docs by inserting, replacing, or applying styles like bold, italic, underline, font size, and font family using specific start and end indexes.

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")

Returns: str: Confirmation message with operation details

Input Schema

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

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior3/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure. It clearly indicates this is a mutation tool ('modifies', 'update'), describes the operation type (insert/replace/format), and mentions the return format (confirmation message). However, it lacks critical behavioral details like required permissions, error conditions, or rate limits that would help the agent use it safely and effectively.

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 is well-structured with a clear purpose statement followed by organized parameter explanations. While efficient, the parameter section could be slightly more concise by grouping formatting parameters. Every sentence adds value, and the structure helps the agent quickly understand the tool's functionality.

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?

For a complex mutation tool with 10 parameters, 0% schema coverage, and no annotations, the description does an excellent job explaining the tool's purpose and parameters. The presence of an output schema reduces the need to describe return values. The main gap is lack of behavioral context like permissions or error handling, but overall it's quite complete given the constraints.

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?

Given 0% schema description coverage, the description provides excellent parameter semantics beyond the bare schema. It explains the purpose of each parameter, clarifies optional vs. required behavior (e.g., 'if not provided with text, text is inserted'), and provides examples (font family names). This fully compensates for the schema's lack of descriptions.

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 the tool's purpose with specific verbs ('modifies', 'insert/replace', 'apply formatting') and resource ('text in a Google Doc'). It distinguishes itself from sibling tools like 'find_and_replace_doc' by emphasizing single-operation text and formatting modifications, not just search-and-replace.

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 provides no guidance on when to use this tool versus alternatives like 'batch_update_doc' or 'insert_doc_elements'. It mentions the operation scope but lacks explicit when-to-use or when-not-to-use instructions, leaving the agent to infer usage context from sibling tool names alone.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/ZatesloFL/google_workspace_mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server