Skip to main content
Glama

batch_update

Destructive

Execute multiple Google Sheets batchUpdate operations in one request, including adding sheets, updating properties, inserting or deleting rows/columns, formatting, and cell updates.

Instructions

Execute a batch update on a Google Spreadsheet using the full batchUpdate endpoint. This provides access to all batchUpdate operations including adding sheets, updating properties, inserting/deleting dimensions, formatting, and more.

Args: spreadsheet_id: The ID of the spreadsheet (found in the URL) requests: A list of request objects. Each request object can contain any valid batchUpdate operation. Common operations include: - addSheet: Add a new sheet - updateSheetProperties: Update sheet properties (title, grid properties, etc.) - insertDimension: Insert rows or columns - deleteDimension: Delete rows or columns - updateCells: Update cell values and formatting - updateBorders: Update cell borders - addConditionalFormatRule: Add conditional formatting - deleteConditionalFormatRule: Remove conditional formatting - updateDimensionProperties: Update row/column properties - and many more...

         Example requests:
         [
             {
                 "addSheet": {
                     "properties": {
                         "title": "New Sheet"
                     }
                 }
             },
             {
                 "updateSheetProperties": {
                     "properties": {
                         "sheetId": 0,
                         "title": "Renamed Sheet"
                     },
                     "fields": "title"
                 }
             },
             {
                 "insertDimension": {
                     "range": {
                         "sheetId": 0,
                         "dimension": "ROWS",
                         "startIndex": 1,
                         "endIndex": 3
                     }
                 }
             }
         ]

Returns: Result of the batch update operation, including replies for each request

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

Input Schema

NameRequiredDescriptionDefault
requestsYes
spreadsheet_idYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior3/5

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

Annotations already declare destructiveHint=true, so the safety profile is partly carried structurally; the description reinforces this by listing deleteDimension and deleteConditionalFormatRule as supported operations. It does not disclose key behaviors an agent would want — whether requests are applied atomically, whether they execute in order, what permissions are required, or what happens when one request in the list is invalid.

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?

Purpose and capability are front-loaded in the first two sentences, then args and a worked example follow in a logical order. The operation list is long and the JSON example is bulky, but both directly reduce invocation error for a free-form requests array; the only waste is the trailing 'and many more...' filler.

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 two-parameter mutation tool with an output schema present, the description covers purpose, both parameters, and the shape of nested requests with examples. The remaining gap is behavioral: nothing on atomicity, ordering, or partial-failure semantics of the batch — the one thing most likely to cause a wrong call.

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

Parameters5/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 carry the parameter burden, and it does: spreadsheet_id is explained as coming from the URL, and requests is described in depth with ten named operation types plus a concrete three-element example showing exact object shapes. This adds substantial meaning beyond the bare untyped object schemas.

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 opens with a specific verb and resource ('Execute a batch update on a Google Spreadsheet using the full batchUpdate endpoint') and scopes the tool as covering all batchUpdate operations (add sheets, formatting, dimension insert/delete). It signals breadth versus a narrower cell-writing tool but never names a sibling such as update_cells, so the contrast remains implicit.

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?

It implies usage by saying the tool gives access to 'all batchUpdate operations including...', which suggests it is the catch-all for structural/formatting changes. There is no explicit when-to-use versus when-to-prefer update_cells guidance, no prerequisites, and no exclusions, so the agent must infer routing from the operation list.

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