Skip to main content
Glama

update_records

Modify existing Grist records by ID: provide a table, row IDs, and field values to apply targeted updates without recreating rows.

Instructions

Update existing records by ID. Each record must include 'id' and 'fields' to update.

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>",
      "records": "<records>"
    },
    "name": "update_records"
  }
}

Input Schema

NameRequiredDescriptionDefault
doc_idNoDocument ID
recordsYesRecords to update
table_idYesTable containing the records

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.2/5.0
Behavior2/5

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

With no annotations supplied, the description carries the full burden and does not say whether 'fields' merges into existing values or replaces them, what happens if an id is missing or nonexistent, or whether the update is atomic across records. For a destructive mutation tool, that gap matters a lot.

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?

Two short sentences with the essential constraint front-loaded and no filler. Nothing an agent reads is wasted.

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 three-parameter mutation tool with no output schema, the description covers the core contract. It falls short on partial-vs-full update semantics and error behavior, which are the details an agent most needs before writing data.

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 coverage is 100%, so table_id, doc_id, id and fields are already documented in the schema, which sets the baseline at 3. The description restates the required id/fields shape but adds no new meaning such as batching limits or whether unspecified columns are left untouched.

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?

Names a specific verb and resource ("Update existing records by ID") and adds a structural constraint on each record ('id' plus 'fields'). That lets an agent distinguish it from add_records or delete_records by name alone, but the description never explicitly contrasts itself with those siblings.

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

Usage Guidelines2/5

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

There is no statement of when to use this tool versus add_records, delete_records, or get_records, and no prerequisites (permissions, whether the row must already exist) are mentioned. Usage must be inferred entirely from the tool name.

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