Skip to main content
Glama

Update rows

update_rows
Destructive

Write values into existing table rows by row ID, merging supplied data so new keys become new columns. Use it to batch-update up to 1,000 rows per call.

Instructions

Write values into existing rows by row id. Each update's data is merged into the row; new keys become new columns. Max 1,000 rows per call.

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": {
      "table_id": "<table_id>",
      "updates": "<updates>"
    },
    "name": "update_rows"
  }
}

Input Schema

NameRequiredDescriptionDefault
updatesYes
table_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and openWorldHint=false, so the description adds real value on top: it explains that each `data` object is merged into the row and that new keys become new columns, plus a 1,000-row per-call ceiling. It does not say whether an existing column value is overwritten by a merge-key collision or what happens when an id does not exist.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three short sentences, front-loaded with the core action, then merge semantics, then the limit constraint. Nothing is redundant or padded.

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 annotations already covering the safety profile and no output schema required, the description supplies the behaviors an agent actually needs: id-addressed merge, column creation, and a row cap. Missing only edge-case behavior on bad ids or partial failures.

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 description coverage is 0%, so the description must carry the meaning, and it largely does: `id` is the row identifier, `data` is a merge payload whose new keys create columns, and `updates` is capped at 1,000 entries. Type and shape details for `table_id` beyond 'which table' are absent, but the substantive semantics are covered.

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 (write values) and resource (existing rows) and the addressing mechanism (by row id), which cleanly separates it from row-creation or query siblings. It doesn't name any sibling explicitly, so it stops short of full differentiation.

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?

The phrase 'existing rows' implies this is for modifying records already present rather than importing new ones, giving an implicit usage boundary. There is no explicit when-to-use / when-not-to-use guidance or named alternative such as import_rows.

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