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 (rowId names its table). A workspace table needs expectedRevision and why. 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.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
whyNoRequired 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.
dataYesThe columns to set; the others keep their values.
rowIdYesThe row, by its own id (it names its table).
expectedRevisionNoThe row's revision as you read it: required for a workspace table (a stale one is CONFLICT), optional otherwise.
expectedWorkspaceRevisionNoOptional: refuse (CONFLICT) an update that widens the schema if the table changed since this workspaceRevision.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYes
updatedYes
revisionYes
updatedAtYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already flag destructive=true and idempotent=false; the description adds the parts annotations can't cover — the merge-vs-replace semantics, optimistic concurrency via expectedRevision (stale ⇒ CONFLICT), NOT_FOUND on unreadable rows, and a 'bounded receipt' return. It doesn't discuss reversibility or whether a conflicting retry should re-read first.

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?

Four tight sentences with the core operation first, then preconditions, then error taxonomy. Every sentence carries information, though the error-code clause is dense enough that an agent may need to re-read it.

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?

An output schema exists, so return shape needn't be spelled out, and the description still notes a bounded receipt. Combined with annotations, the description covers the write semantics, required preconditions, concurrency behavior, and failure modes an agent needs before calling a destructive mutation.

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; the description still adds meaning beyond it by tying rowId to the table name and by documenting key-column validation rules (object/array/over 1024 bytes/U+0000/lone surrogate ⇒ INVALID_INPUT) that appear nowhere in the schema. The 'why' and expectedWorkspaceRevision semantics largely restate the schema.

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 ('Partially merge typed JSON into one table row') and pins the addressing model ('named by its own id (rowId names its table)'). That partial-merge framing implicitly separates it from table_append_rows and table_delete_rows, but no sibling is named explicitly.

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

Usage Guidelines4/5

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

Gives concrete conditional guidance: 'A workspace table needs expectedRevision and why,' and notes expectedRevision is optional otherwise. It also routes the agent on error conditions. It stops short of naming an alternative tool or saying when not to use this one.

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.