Skip to main content
Glama

update_rows

Update database rows by ID or matching criteria, editing frontmatter properties and body content while enforcing valid column IDs, option values, and single-row safeguards.

Instructions

Update rows by ID (file path) or matching criteria. Can update frontmatter properties and content. Failsafes: update keys must be column IDs (not names) and select/status values must be valid options; a "where" that matches several rows is blocked unless allowMultiple is true — prefer ids for single-row changes (a status "where" can move multiple kanban cards at once); title renames must target exactly one row.

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

Input Schema

NameRequiredDescriptionDefault
idsNoRow IDs (file paths) to update — the precise way to target rows. Preferred over "where".
whereNoCriteria to match rows for update (e.g., {"status": "Todo"}), keyed by column ID. Matching more than one row is blocked unless allowMultiple is true.
updatesYesProperties to update, keyed by column ID. Use "title" to rename (single row only), "_content" to update body. Select/status values must match the column's options exactly.
workspaceYesWorkspace path or name
databasePathYesPath to the database folder
allowMultipleNoExplicitly allow this update to change MORE than one row at once (default false — multi-row matches are blocked with a list of what matched)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changedv0.19.0
    • addedInput schema / properties / allowMultiple
      Added value: +{
      +  "description": "Explicitly allow this update to change MORE than one row at once (default false — multi-row matches are blocked with a list of what matched)",
      +  "type": "boolean"
      +}
    • changedInput schema / properties / ids / description
      Previous value: -"Row IDs (file paths) to update"New value: +"Row IDs (file paths) to update — the precise way to target rows. Preferred over \"where\"."
    • changedInput schema / properties / updates / description
      Previous value: -"Properties to update. Use \"title\" to rename, \"_content\" to update body."New value: +"Properties to update, keyed by column ID. Use \"title\" to rename (single row only), \"_content\" to update body. Select/status values must match the column's options exactly."
    • changedInput schema / properties / where / description
      Previous value: -"Criteria to match rows for update (e.g., {\"status\": \"Todo\"})"New value: +"Criteria to match rows for update (e.g., {\"status\": \"Todo\"}), keyed by column ID. Matching more than one row is blocked unless allowMultiple is true."
  2. First observedv0.6.0

TDQS

A3.9/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does substantial work by disclosing failsafes: keys must be column IDs, select/status values must be valid options, ambiguous 'where' matches are blocked with a list of what matched, and the allowMultiple escape hatch. It stops short of what a rejected update returns, whether multi-row edits are atomic, or permission requirements.

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?

Purpose is front-loaded in the first sentence, followed by capability then failsafes — a sensible order. The third sentence is a dense semicolon-joined run-on, but every clause carries distinct constraint information rather than filler.

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 6-parameter mutation tool with nested objects and no output schema, the description covers targeting modes, the keying rule, value validation, multi-match blocking, and the title/_content special cases. It leaves open the return shape on success and partial-failure behavior, which matters given no output schema exists.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so the baseline is 3. The description reinforces meaning for 'where' (blocked when multi-matching), 'updates' keys (column IDs, not names), and allowMultiple, but most of this is already present in the schema text, so the added value beyond structured data is modest.

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 rows) plus the two targeting modes (by ID/file path or by matching criteria) and the kinds of data it touches (frontmatter properties and content). It is clearly not an add/delete tool, though it never explicitly distinguishes itself from the sibling update_sheet_rows, which an agent would plausibly confuse it with.

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 real operational guidance: prefer ids for single-row changes, 'where' matching several rows is blocked unless allowMultiple is true, title renames must target exactly one row, and a status 'where' can move many kanban cards. What it lacks is sibling routing — nothing says when to pick this over update_sheet_rows or delete_rows.

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