Skip to main content
Glama

update_rows

Modify database rows by ID or matching criteria, changing frontmatter properties and body content for targeted record updates.

Instructions

Update rows by ID (file path) or matching criteria. Can update frontmatter properties and content.

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
whereNoCriteria to match rows for update (e.g., {"status": "Todo"})
updatesYesProperties to update. Use "title" to rename, "_content" to update body.
workspaceYesWorkspace path or name
databasePathYesPath to the database folder

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.6.0

TDQS

B3.1/5.0
Behavior2/5

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

No annotations exist, so the description carries the full burden for a mutating tool. It does not disclose whether updates merge with or overwrite existing properties, what happens if both ids and where are omitted (both are optional in the schema — a bulk-update risk), permission requirements, or whether the operation is reversible. Only the two-sentence purpose statement is provided, which is thin for a write operation.

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?

Two short sentences with the core capability front-loaded and no filler. It is efficient, though the terseness contributes to the behavioral gaps rather than being a stylistic flaw.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

This is a mutation tool with nested objects, five parameters, no annotations, and no output schema. The description omits merge semantics, the optionality/ambiguity of ids vs. where, and any indication of failure or partial-update behavior — significant omissions for a write tool.

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 each parameter is already documented, and the baseline is 3. The description adds marginal value by clarifying that IDs are file paths and that 'updates' targets frontmatter properties plus body content, but it does not explain the interaction between ids and where or what happens when both are given.

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 (update) applied to a specific resource (rows), plus the two targeting mechanisms (IDs or match criteria) and the updatable surface (frontmatter properties and content). It is clear on its own, though it never names how it differs from siblings like update_column or delete_rows.

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 'by ID (file path) or matching criteria' implicitly tells the agent there are two modes (targeted vs. query-based), which is useful selection context. However, there is no when-to-use vs. when-not guidance, no mention of the sibling tools that also mutate rows, and no caution about the case where neither ids nor where is supplied.

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