Skip to main content
Glama

batch_update_cells

Destructive

Update multiple cell ranges in a Google Spreadsheet in one request by mapping range strings to 2D value arrays.

Instructions

Batch update multiple ranges in a Google Spreadsheet.

Args: spreadsheet_id: The ID of the spreadsheet (found in the URL) sheet: The name of the sheet ranges: Dictionary mapping range strings to 2D arrays of values e.g., {'A1:B2': [[1, 2], [3, 4]], 'D1:E2': [['a', 'b'], ['c', 'd']]}

Returns: Result of the batch update operation

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_id": "<spreadsheet_id>",
      "sheet": "<sheet>",
      "ranges": "<ranges>"
    },
    "name": "batch_update_cells"
  }
}

Input Schema

NameRequiredDescriptionDefault
sheetYes
rangesYes
spreadsheet_idYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.9.6

TDQS

B3.4/5.0
Behavior2/5

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

The only annotation is destructiveHint=true, so the description carries nearly the full burden of behavioral disclosure. It does not say that existing cell contents are overwritten, whether the operation is atomic across ranges, how non-existent sheets or malformed ranges are handled, or whether values are interpreted as raw or user-entered — all material for a destructive write. It is at least consistent with the destructiveHint annotation.

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?

Front-loaded with the core action in a single sentence, followed by a compact Args block that is easy to scan. The only weak element is the 'Returns: Result of the batch update operation' line, which adds little given an output schema exists, but it is one line and harmless.

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?

Given a destructive three-parameter mutation tool with a nested object parameter and an output schema, the definition covers the parameter shapes competently but omits the semantics of the write itself — overwrite behavior, error handling for bad ranges, and value interpretation. An agent knows how to format the call but not what side effects to expect.

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, and it largely does: it explains where to find spreadsheet_id ('found in the URL') and gives a concrete example of the ranges dictionary shape, which is the only place the nested 2D-array structure is clarified. The sheet parameter gets only a one-line restatement, so it is not fully complete.

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: 'Batch update multiple ranges in a Google Spreadsheet.' The 'multiple ranges' qualifier distinguishes it in spirit from a single-range update_cells, but the description never names or contrasts any sibling explicitly, so differentiation is left to inference.

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?

Usage is only implied by the phrase 'multiple ranges' — an agent can infer this is the tool for multi-range writes rather than single-cell edits, but there is no explicit when-to-use guidance, no exclusions, and no mention of the sibling batch_update or update_cells as alternatives.

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