Skip to main content
Glama
google-sheets-mcp
by ezrazhang7

Raw batch update (advanced)

batch_update

Apply raw Google Sheets API batchUpdate requests to add charts, conditional formatting, merges, data validation, or sorting. Send multiple request objects to modify a spreadsheet atomically.

Instructions

Escape hatch: apply raw Google Sheets API batchUpdate requests (charts, conditional formatting, merges, data validation, sorting — anything the API supports). Each item is one request object from the Sheets API v4 batchUpdate schema.

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": {
      "spreadsheetId": "<spreadsheetId>",
      "requests": "<requests>"
    },
    "name": "batch_update"
  }
}

Input Schema

NameRequiredDescriptionDefault
requestsYesArray of Sheets API v4 Request objects, applied atomically in order
spreadsheetIdYesSpreadsheet ID or full Google Sheets URL

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.4

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 that this is a raw API passthrough whose effects span the whole v4 batchUpdate surface (merges, formatting, sorting) and that callers must supply valid request objects, but it says nothing about irreversibility, required OAuth scopes, partial-failure behavior, or the shape of the response.

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?

Two tightly packed sentences with no filler; the 'escape hatch' framing and the capability list are front-loaded, so an agent grasps the tool's nature from the first clause.

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?

For a raw, arbitrarily-powerful mutation tool with no annotations and no output schema, the definition is minimal but usable. It omits what a batchUpdate call returns (replies), how invalid request objects fail, and whether the whole batch rolls back on error — details an agent would want before issuing a destructive batch.

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% and both parameters already carry descriptions, so the schema does the heavy lifting. The sentence 'Each item is one request object from the Sheets API v4 batchUpdate schema' largely restates the schema's own wording rather than adding new constraints or format guidance beyond pointing at external API docs.

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 uses a specific verb+resource ('apply raw Google Sheets API batchUpdate requests') and illustrates the capability surface with concrete examples (charts, conditional formatting, merges, data validation, sorting). The 'escape hatch' framing signals this is a raw passthrough rather than a targeted operation, which differentiates it in spirit from focused siblings like format_cells, though no sibling is named explicitly.

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?

'Escape hatch' implies a last-resort, advanced path, which gives an agent an implied when-to-use signal. However, the description never states when NOT to use it or which dedicated sibling (format_cells, update_cells, fill_formula) to prefer for common operations, leaving the routing decision to inference.

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