Skip to main content
Glama

edit_rows

Destructive

Update, soft-delete or restore rows. updates is a list of {row_id, cells}, cells mapping column_id to value; deletes / restores are row-id lists. Values coerce as in append_rows: one that does not fit is refused, and an attachment column cannot be written or cleared. Max 1000 rows per call, all three lists together. Pass expected_version to get a version conflict rather than overwrite a newer table. Ask before deleting rows the user did not name.

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": {
      "model_id": "<model_id>",
      "table_id": "<table_id>"
    },
    "name": "edit_rows"
  }
}

Input Schema

NameRequiredDescriptionDefault
deletesNoRow ids to soft-delete.
updatesNoCell updates on existing rows.
model_idYes
restoresNoRow ids to restore (undo a soft-delete).
table_idYes
expected_versionNoThe table version you read at; if the table changed since, the write fails with a version conflict.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior5/5

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

Annotations only say readOnlyHint=false and destructiveHint=true; the description adds substantial context beyond that: deletes are 'soft' and reversible via `restores`, values that do not coerce are refused rather than silently altered, `attachment` columns cannot be written or cleared, and there is a 1000-row cap across all three lists combined. It also explains the optimistic-concurrency behavior of `expected_version`. That is exactly the kind of failure-mode and limit disclosure an agent needs for a destructive write.

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 description is front-loaded with the action, then parameter shapes, then limits and safety guidance — a sensible order with no filler sentences. It is dense, using semicolons to pack several constraints into a single clause, which trades a little readability for compactness but does not waste words.

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 destructive multi-parameter mutation with no output schema, the definition covers operation types, coercion failure behavior, the attachment restriction, size limits, and concurrency control. Two things are missing: whether a call is atomic when some rows fail to coerce, and any hint about what the response contains after a successful edit.

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 schema coverage at 67%, the description usefully documents the shapes and semantics the schema does not fully spell out: `updates` as `{row_id, cells}` with `cells` mapping `column_id` to value, `deletes`/`restores` as row-id lists, and coercion behavior cross-referenced to append_rows. It adds the aggregate 1000-row limit that applies across all three lists, which the per-parameter schema cannot express. Only `model_id` and `table_id` are left unelaborated, which are reasonably self-evident.

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?

The opening sentence names three specific verbs and the resource: 'Update, soft-delete or restore rows.' An agent can immediately tell this is a mutation tool on existing rows rather than insertion (append_rows) or a filtered bulk update. It stops short of explicitly distinguishing itself from update_rows_where or update-by-query siblings, which is the only thing keeping it from a 5.

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?

The description gives concrete conditional guidance: pass `expected_version` to get a version conflict instead of overwriting a newer table, and ask the user before deleting rows they did not name. These are real use-time rules rather than mere restatement. There is no explicit statement of when to prefer this tool over update_rows_where or append_rows, so it falls short of full when/when-not coverage.

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