Skip to main content
Glama

Update Items

item.update_many
Destructive

Update a LISTED set of rows (by id) in one sheet in ONE call — use it instead of repeated item.update_humanized whenever you change more than one row. Each row is { itemId, fields }; only the given fields change and values are HUMAN VALUES resolved as in item.update_humanized. Text fields take markdown: bold, italic, strikethrough, code, links (http, https and mailto only) and - or 1. lists; put a backslash before a * _ ~ [ ] meant literally. Date fields take an ISO 8601 date or datetime, or a range as [start, end] or an ISO interval start/end (e.g. 2026-12-01/2026-12-05); times are UTC unless they carry an offset, and an end before the start is refused. Up to 200 rows per call. Rows that are not in the sheet, archived, read-only or have an unresolvable value are skipped with a reason and never changed; the rest are updated. Workflows on the sheet run for every updated row, as for an edit by hand. The whole call is one batch:item.undo_batchwith the returnedbatchIdandsheetIdrestores the previous values. Returns{ batchId, updated, skipped, skippedCount, url }— tell the user the counts and the skip reasons. When the agent this app signs in as has Ask first on for this, the call waits for its manager's approval and returnsstatus: "pending_approval"; nothing changes until they approve. Pass reason(andtargetNotes` per target) so the approver sees why.

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": {
      "sheetId": "<sheetId>",
      "rows": "<rows>"
    },
    "name": "item.update_many"
  }
}

Input Schema

NameRequiredDescriptionDefault
rowsYesThe rows to change, 1–200, each by id with only the fields that change
reasonNoWhy you are doing this, in one sentence the approver reads if Ask first holds the call
sheetIdYes
targetNotesNoA short note per target, keyed by the id or Index you pass

Output Schema

NameRequiredDescriptionDefault
urlNoPanel link to the sheet
statusNoThe call waits for a person's approval; nothing has changed
batchIdNoId of the batch; pass it with sheetId to item.undo_batch to undo the whole batch. Null when nothing was written
createdNoRows created
messageNo
sheetIdNoSheet the rows are in
skippedNoRows left unchanged and why; at most 20 are listed
spaceIdNoSpace of that sheet; null for a sheet outside a space
stoppedNoSet when a row failed unexpectedly: rows after it were not attempted; the rest stay written
updatedNoRows updated
approverNoWho decides it
approvalIdNoThe approval the call waits on
skippedCountNoAll rows skipped, including ones not listed

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / properties / reason
      Added value: +{
      +  "description": "Why you are doing this, in one sentence the approver reads if Ask first holds the call",
      +  "type": "string"
      +}
    • addedInput schema / properties / targetNotes
      Added value: +{
      +  "additionalProperties": {
      +    "type": "string"
      +  },
      +  "description": "A short note per target, keyed by the id or Index you pass",
      +  "propertyNames": {
      +    "type": "string"
      +  },
      +  "type": "object"
      +}
  2. Changed5 schema fields changed
    • addedOutput schema / properties / approvalId
      Added value: +{
      +  "description": "The approval the call waits on",
      +  "type": "string"
      +}
    • addedOutput schema / properties / approver
      Added value: +{
      +  "description": "Who decides it",
      +  "type": "string"
      +}
    • addedOutput schema / properties / message
      Added value: +{
      +  "type": "string"
      +}
    • addedOutput schema / properties / status
      Added value: +{
      +  "const": "pending_approval",
      +  "description": "The call waits for a person's approval; nothing has changed",
      +  "type": "string"
      +}
    • removedOutput schema / required
      Removed value: -[
      -  "batchId",
      -  "created",
      -  "updated",
      -  "skipped",
      -  "skippedCount",
      -  "url",
      -  "sheetId",
      -  "spaceId"
      -]
  3. Changed1 schema field changed
    • changedOutput schema / properties / batchId / description
      Previous value: -"Id of the batch; pass it to item.undo_batch to undo the whole batch. Null when nothing was written"New value: +"Id of the batch; pass it with sheetId to item.undo_batch to undo the whole batch. Null when nothing was written"
  4. Changed4 schema fields changed
    • removedOutput schema / properties / batchId / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / batchId / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • removedOutput schema / properties / spaceId / anyOf
      Removed value: -[
      -  {
      -    "type": "number"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / spaceId / type
      Added value: +[
      +  "number",
      +  "null"
      +]
  5. Changed3 schema fields changed
    • addedOutput schema / properties / sheetId
      Added value: +{
      +  "description": "Sheet the rows are in",
      +  "type": "number"
      +}
    • addedOutput schema / properties / spaceId
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "number"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "description": "Space of that sheet; null for a sheet outside a space"
      +}
    • changedOutput schema / required
      Previous value: -[
      -  "batchId",
      -  "created",
      -  "updated",
      -  "skipped",
      -  "skippedCount",
      -  "url"
      -]New value: +[
      +  "batchId",
      +  "created",
      +  "updated",
      +  "skipped",
      +  "skippedCount",
      +  "url",
      +  "sheetId",
      +  "spaceId"
      +]
  6. First observed

TDQS

A4.9/5.0
Behavior5/5

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

Annotations declare destructive=true, idempotent=false and readOnly=false; the description goes well beyond them by disclosing partial-failure semantics (rows not in the sheet, archived, read-only, or unresolvable are skipped with a reason and never changed), that workflows fire per updated row, the reversibility path via item.undo_batch with batchId/sheetId, the returned shape, and the Ask-first approval gate that yields status: pending_approval with nothing changed.

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?

The routing sentence and the 200-row cap are front-loaded, and nearly every clause carries operative information. It is a dense single block, however, and the markdown/date-format rules could be visually separated from the failure and approval semantics for faster scanning.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a destructive batch mutation with nested rows and an approval path, the description covers scope, limits, per-row validation failures, side effects (workflows), rollback, return values, and the pending-approval state. Nothing an agent needs in order to call it safely is missing, and the output schema is complemented rather than duplicated.

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?

With 75% schema coverage the bar is lower, yet the description still adds real semantics: the {itemId, fields} row shape, the 200-row cap, the human-value resolution model, markdown syntax with backslash escaping, ISO 8601 dates plus [start, end] / interval ranges, and UTC-unless-offset behavior. The reason and targetNotes parameters are explained functionally (what the approver sees), not just restated.

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?

States a specific verb and resource (update a listed set of rows by id in one sheet, in one call) and immediately positions it against the sibling item.update_humanized, including the exact condition that selects this tool (more than one row). An agent can distinguish it from create_many or update_where without opening any schema.

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

Usage Guidelines5/5

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

Explicit when-to-use guidance: 'use it instead of repeated item.update_humanized whenever you change more than one row.' It also states the hard cap (up to 200 rows) and the selective-update rule (only the given fields change), which tells the agent when this is the right shape of call.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources