Skip to main content
Glama
Google Workspace MCP Server

Google Workspace MCP Server

by akilja24

batch_update_doc

Apply multiple Google Docs edits—insert, delete, replace, format text, add tables or page breaks—in one atomic batch to reduce repeated update calls.

Instructions

Executes multiple document operations in a single atomic batch update.

Args: user_google_email: User's Google email address document_id: ID of the document to update operations: List of operation dictionaries. Each operation should contain: - type: Operation type ('insert_text', 'delete_text', 'replace_text', 'format_text', 'insert_table', 'insert_page_break') - Additional parameters specific to each operation type

Example operations: [ {"type": "insert_text", "index": 1, "text": "Hello World"}, {"type": "format_text", "start_index": 1, "end_index": 12, "bold": true}, {"type": "insert_table", "index": 20, "rows": 2, "columns": 3} ]

Returns: str: Confirmation message with batch operation results

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": {
      "user_google_email": "<user_google_email>",
      "document_id": "<document_id>",
      "operations": "<operations>"
    },
    "name": "batch_update_doc"
  }
}

Input Schema

NameRequiredDescriptionDefault
operationsYes
document_idYes
user_google_emailYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.13.1

TDQS

A3.5/5.0
Behavior3/5

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

With no annotations, the description carries the full behavioral burden. It usefully discloses atomicity and that a confirmation message is returned, but it does not explain permissions/auth needs, operation ordering, failure/rollback behavior beyond "atomic," or whether document mutations are destructive.

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 purpose is front-loaded, and the Args, operation examples, and Returns structure are appropriate for a nested batch tool. Some phrasing is generic, but the examples earn their place by clarifying the operations array.

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?

The output schema makes the Returns section unnecessary, and the description is reasonably complete for constructing a batch call. However, for a mutation tool with no annotations and 0% schema coverage, it still omits important context such as authentication requirements, operation ordering, and error behavior.

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?

Schema description coverage is 0%, so the description must compensate. It explains all three top-level parameters and gives operation type names plus concrete examples, though it leaves "additional parameters specific to each operation type" vague and does not fully enumerate every operation's required fields.

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: executing multiple document operations in one atomic batch update. It distinguishes itself from single-operation tools by emphasizing "multiple" and "atomic," though it does not explicitly name sibling alternatives such as modify_doc_text or insert_doc_elements.

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

Usage Guidelines3/5

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

The phrase "multiple document operations in a single atomic batch update" implies when this tool is appropriate, but there is no explicit when-not guidance or named alternative for single edits. An agent can infer batch usage, but routing versus siblings is left to inference.

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