Skip to main content
Glama
Google Workspace MCP Server

Google Workspace MCP Server

by VolksRat71

batch_update_document

Apply a batch of updates to a Google Doc in one request, such as inserting text, deleting content, or formatting text.

Instructions

Apply a batch of updates to a Google Document (insert text, delete content, format text, etc.)

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": {
      "documentId": "<documentId>",
      "requests": "<requests>"
    },
    "name": "batch_update_document"
  }
}

Input Schema

NameRequiredDescriptionDefault
requestsYesA list of update requests to apply. See Google Docs API documentation for request structures.
documentIdYesThe ID of the document to update.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.5.0

TDQS

C2.9/5.0
Behavior2/5

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

With no annotations supplied, the description carries the full burden of behavioral disclosure. It does not state whether the batch is atomic/all-or-nothing, whether requests are applied in order, what permissions are needed, whether changes are reversible, or how failures are reported. For a mutation tool with complex request payloads, this is a meaningful gap.

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 definition is a single front-loaded sentence with no wasted words. The verb and resource come first, followed by useful examples.

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

Completeness2/5

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

This is a mutation tool with no annotations, no output schema, and a complex nested request payload whose structure is deferred entirely to external documentation. The description does not explain atomicity, request ordering, limits, or error behavior, leaving the agent without enough context to invoke it safely and correctly.

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

Parameters3/5

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

Schema coverage is 100%, so both parameters are already documented. The description adds operation-type examples ('insert text, delete content, format text') that hint at the request variety, but it does not add structure, ordering, or format details beyond what the schema already points to via the Google Docs API documentation.

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 ('Apply a batch of updates') and resource ('Google Document'), and the parenthetical examples (insert text, delete content, format text) clarify the operation scope. The resource name implicitly distinguishes it from batch_update_presentation and batch_update_spreadsheet, but it does not explicitly name those alternatives.

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 given on when to use this tool versus the many related siblings (e.g., update_sheet_values, get_document, or the presentation/spreadsheet batch variants). The agent must infer from the noun 'Document' that this is the Docs-specific batch mutation tool. There are no prerequisites or exclusions stated.

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