Skip to main content
Glama
gworkspace-mcp
by ctschak

Raw Docs batchUpdate

docs_batch_update_raw

Sends literal Google Docs API v1 request objects to apply full document updates, including inline images, headers, footnotes, and positioned objects. Reorders edits back-to-front; use dryRun first.

Instructions

Send literal Docs API v1 Request objects. Covers the whole API, including inline images, headers and footers, footnotes, bookmarks and positioned objects, which the grouped tools do not wrap. Indices are document-wide and end-exclusive; requests are reordered back-to-front automatically. Use dryRun first.

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": {
      "document": "<document>",
      "requests": "<requests>"
    },
    "name": "docs_batch_update_raw"
  }
}

Input Schema

NameRequiredDescriptionDefault
tabNoTab id or title, for documents with several tabs. Reads default to the first tab; writes to a multi-tab document REQUIRE this rather than guessing. Get ids from docs_describe.
dryRunNoReturn the exact requests that would be sent, in the order they would be applied, and send nothing.
accountNoGoogle account to act as. Optional when one is authorised or a default is set.
documentYesDocument URL or file id. Both accepted.
requestsYesLiteral Docs API v1 Request objects, e.g. [{"insertInlineImage": {...}}, {"updateTableCellStyle": {...}}]. Full API coverage, including images, headers/footers, footnotes, bookmarks and positioned objects. Indices are document-wide UTF-16 offsets, end-exclusive, and shift on every edit — this server reorders requests back-to-front automatically, but measure them with docs_find or docs_read first. Use dryRun when unsure.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A4/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does add real behavioral detail: index semantics (document-wide, end-exclusive), automatic back-to-front reordering, and the dryRun-first caution. It is silent on permissions, partial-failure behavior, and response shape for a mutation tool, keeping it from a 5.

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?

Three dense sentences, nothing wasted, with the core purpose and the sibling differentiation front-loaded before the index/ordering caveats.

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 raw-escape mutation tool, the definition covers purpose, scope, ordering behavior, and dryRun safety. Missing only failure-mode and return semantics, which are less critical given full schema coverage.

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 all five parameters are already documented, and the description mostly restates index and dryRun meaning. Baseline 3 is appropriate when the schema does the heavy lifting.

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?

States a specific verb and resource ('Send literal Docs API v1 Request objects') and scopes it as full-API coverage versus the grouped tools. It distinguishes itself from the higher-level siblings but names the category rather than specific tool names.

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

Usage Guidelines4/5

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

Clearly implies when to reach for this tool: operations the grouped tools do not wrap (inline images, headers/footers, footnotes, etc.), and adds the operational advice 'Use dryRun first'. No explicit exclusions, but the context is clear.

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