Skip to main content
Glama
gworkspace-mcp
by ctschak

Raw batchUpdate

sheets_batch_update_raw

Send literal Google Sheets API v4 Request objects to apply any spreadsheet change, including charts and pivot tables, with a dry-run preview.

Instructions

Send literal Sheets API v4 Request objects. Covers the entire API, including charts, pivot tables, slicers and developer metadata, which the grouped tools do not wrap. GridRange indices are zero-based and end-exclusive. Take sheetId values from sheets_describe, and run with dryRun first when the request shape is not obvious.

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": {
      "spreadsheet": "<spreadsheet>",
      "requests": "<requests>"
    },
    "name": "sheets_batch_update_raw"
  }
}

Input Schema

NameRequiredDescriptionDefault
dryRunNoWhen true, returns the exact API request that would be sent plus an impact summary, and sends nothing.
accountNoGoogle account to act as. Optional when one account is authorised or a default is set; required otherwise.
requestsYesLiteral Sheets API v4 Request objects, e.g. [{"updateSheetProperties": {...}}, {"addChart": {...}}]. Full API coverage, including charts, pivot tables and developer metadata. GridRange indices are ZERO-BASED and END-EXCLUSIVE: A1:B2 is {startRowIndex:0,endRowIndex:2,startColumnIndex:0,endColumnIndex:2}. Get sheetId values from sheets_describe — never guess one. Run with dryRun first when the request shape is not obvious.
spreadsheetYesSpreadsheet URL or file id. Both accepted; a URL has its id extracted.
includeSpreadsheetInResponseNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A4.1/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 well: it discloses that dryRun sends nothing and returns the exact request plus an impact summary, and it warns that GridRange indices are zero-based/end-exclusive and that sheetId should never be guessed. It omits error and partial-failure semantics (what happens if one of several requests in the batch fails) and whether changes are reversible, which matters for an unfiltered write passthrough.

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?

Three front-loaded sentences with no filler: capability declaration, index/sheetId constraints, then the dryRun recommendation. The GridRange guidance duplicates schema text, which is minor waste but defensible as a safety warning.

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?

There is no output schema, and the description supplies the return behavior for dryRun but not for real execution, leaving the agent unsure what a successful batchUpdate responds with. Otherwise it covers the essentials for a raw-API escape hatch, including where to source IDs and how to preview effects.

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 description coverage is 80%, so the baseline is 3. The description restates the GridRange/sheetId guidance already present in the requests schema property and adds no new meaning for dryRun, account, or spreadsheet; includeSpreadsheetInResponse remains undocumented in both places.

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?

"Send literal Sheets API v4 Request objects" names a specific verb and resource, and the follow-up explicitly scopes the tool to charts, pivot tables, slicers and developer metadata that "the grouped tools do not wrap." An agent can distinguish this passthrough from sheets_format or sheets_manage_tabs without consulting the schema.

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?

It gives concrete routing guidance: grouped tools cover the common cases, this one covers the rest, sheetId values come from sheets_describe, and dryRun should be used first when the request shape is unclear. It does not name a preferred alternative for common formatting/data operations, but the "grouped tools do not wrap" framing implies that fallback.

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