Skip to main content
Glama

Update table row

table_update_row
Destructive

Partially merge typed JSON into one table row, named by its own id (id; the row names its table). A workspace table needs why. expectedRevision is optional: when sent, a row that changed since is CONFLICT and nothing is written. A row you cannot read is NOT_FOUND. Returns a bounded receipt. Setting the key column to a value another row holds is STATE_CONFLICT; a key value that is an object, an array or over 1024 bytes, or text holding U+0000 or a lone surrogate, is INVALID_INPUT. Send expectedTableRevision to refuse the update (CONFLICT) if the table changed since; the reply's tableRevision is the next one to send.

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": {
      "id": "<id>",
      "data": "<data>"
    },
    "name": "table_update_row"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesThe row, by its own id (it names its table).
whyNoRequired for workspace items: one sentence on the goal this change serves, not a description of this edit. Every edit to workspace files, rows, folders and settings takes one (task operations need none); sessions and summaries record themselves from it. At most 300 characters.
dataYesThe columns to set; the others keep their values.
expectedRevisionNoOptional: the row's revision as you read it; when sent, a row that changed since is CONFLICT (with currentRevision) and nothing is written.
expectedTableRevisionNoOptional: refuse the whole call (CONFLICT, with currentTableRevision) if the table changed since this tableRevision, from a rows page, the table read or the last receipt.

Output Schema

NameRequiredDescriptionDefault
idYes
updatedYes
revisionYes
updatedAtYes
tableRevisionYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / expectedRevision / description
      Previous value: -"The row's revision as you read it: required for a workspace table (a stale one is CONFLICT), optional otherwise."New value: +"Optional: the row's revision as you read it; when sent, a row that changed since is CONFLICT (with currentRevision) and nothing is written."
    • changedInput schema / properties / why / description
      Previous value: -"Required for workspace items: one sentence on what the person is trying to accomplish, in their terms, not a description of this edit. Every workspace write takes one; sessions and summaries record themselves from it. At most 300 characters."New value: +"Required for workspace items: one sentence on the goal this change serves, not a description of this edit. Every edit to workspace files, rows, folders and settings takes one (task operations need none); sessions and summaries record themselves from it. At most 300 characters."
  2. Changed4 schema fields changed
    • addedInput schema / properties / expectedTableRevision
      Added value: +{
      +  "description": "Optional: refuse the whole call (CONFLICT, with currentTableRevision) if the table changed since this tableRevision, from a rows page, the table read or the last receipt.",
      +  "exclusiveMinimum": 0,
      +  "maximum": 9007199254740991,
      +  "type": "integer"
      +}
    • removedInput schema / properties / expectedWorkspaceRevision
      Removed value: -{
      -  "description": "Optional: refuse (CONFLICT) an update that widens the schema if the table changed since this workspaceRevision.",
      -  "exclusiveMinimum": 0,
      -  "maximum": 9007199254740991,
      -  "type": "integer"
      -}
    • addedOutput schema / properties / tableRevision
      Added value: +{
      +  "exclusiveMinimum": 0,
      +  "maximum": 9007199254740991,
      +  "type": "integer"
      +}
    • changedOutput schema / required
      Previous value: -[
      -  "id",
      -  "revision",
      -  "updated",
      -  "updatedAt"
      -]New value: +[
      +  "id",
      +  "revision",
      +  "updated",
      +  "updatedAt",
      +  "tableRevision"
      +]
  3. Changed3 schema fields changed
    • addedInput schema / properties / id
      Added value: +{
      +  "description": "The row, by its own id (it names its table).",
      +  "format": "uuid",
      +  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
      +  "type": "string"
      +}
    • removedInput schema / properties / rowId
      Removed value: -{
      -  "description": "The row, by its own id (it names its table).",
      -  "format": "uuid",
      -  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
      -  "type": "string"
      -}
    • changedInput schema / required
      Previous value: -[
      -  "rowId",
      -  "data"
      -]New value: +[
      +  "id",
      +  "data"
      +]
  4. First observed

TDQS

A4.4/5.0
Behavior5/5

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

Beyond the annotations (destructive, non-idempotent), the description discloses optimistic-concurrency semantics: a changed row under expectedRevision is CONFLICT with nothing written, an unreadable row is NOT_FOUND, duplicate key values are STATE_CONFLICT, and key values with objects/arrays/oversized or invalid text are INVALID_INPUT. It also notes the reply is a bounded receipt carrying the next tableRevision to send.

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?

Front-loaded with the core action, then conflict and error semantics in descending priority; nearly every clause carries information. It is dense to the point of reading as a run-on, with parenthetical asides that slow parsing, so it stops short of 5.

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, non-idempotent mutation with an output schema already documenting the receipt, the description covers the safety guards, all error classes, and revision chaining. Nothing an agent needs to invoke it correctly is missing.

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 the baseline is 3, but the description adds real meaning: expectedRevision makes a stale row a no-write CONFLICT, and expectedTableRevision refuses the whole call while the reply's tableRevision is 'the next one to send' — chaining guidance not present in the schema. The key-value validation constraints also elaborate on the data parameter.

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?

The description states a precise verb and resource ('Partially merge typed JSON into one table row, named by its own id') and clarifies that the row identifies its own table, which separates it from sibling append/delete operations. 'Partially merge' also distinguishes it from a full-row replace.

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 through the required 'why' for workspace tables and the optional expectedRevision/expectedTableRevision guards, but never states when to choose this over table_append_rows or table_get_rows. The conditions that select an alternative are left to inference.

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.