Skip to main content
Glama

update_sheet_rows

Update cells in existing sheet rows by row IDs or equality match, applying column-value changes to every matched row so data stays current.

Instructions

Update cells on existing sheet rows. Target rows by id (options.ids, from read_sheet) or by equality match (options.where). updates is an object of { columnId: newValue } applied to every matched row. Row values: number → a number, checkbox → true/false, date → "YYYY-MM-DD", datetime → ISO 8601, multiselect → an array of strings, select/status → one option (values not yet in the options are added automatically, with a colour).

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": {
      "workspace": "<workspace>",
      "sheetPath": "<sheetPath>",
      "updates": "<updates>",
      "options": "<options>"
    },
    "name": "update_sheet_rows"
  }
}

Input Schema

NameRequiredDescriptionDefault
optionsYesRow targeting — provide ids OR where
updatesYesColumn values to set, keyed by column id, e.g. { "plan": "Pro" }
sheetPathYesPath to the sheet folder (relative to documents folder)
workspaceYesWorkspace path or name

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.19.0

TDQS

A3.6/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 burden. It usefully discloses bulk semantics ('applied to every matched row') and a real side effect (select/status values not in the options are auto-added with a colour), but omits permissions, whether the update is partial or full, and error/return behavior.

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; the targeting rule comes first and the value-type mapping last. Dense but each sentence carries information.

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 4-parameter, all-required mutation tool with a nested options object and no output schema, the description covers targeting and value formats well. It leaves gaps around return/error behavior and permissions, which matter given the absence of annotations and an output schema.

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 coverage is 100%, so baseline is 3, but the description adds genuine meaning beyond the schema: per-column-type value formats (number, checkbox, date, datetime, multiselect, select/status) and the {columnId: newValue} shape of updates.

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: 'Update cells on existing sheet rows.' The word 'existing' distinguishes it from add/delete siblings, though the closely named sibling 'update_rows' is not differentiated.

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?

Explains the two row-targeting modes (ids from read_sheet vs. equality match via where) and that updates apply to every matched row. It does not say when to prefer this over a sibling such as update_rows, nor any prerequisites.

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