Skip to main content
Glama

add_records

Add new rows to a Grist table by supplying records as objects that map column names to values. Use it to insert structured data into an existing table.

Instructions

Add new records (rows) to a table. Each record is an object mapping column names to values.

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": "add_records"
  }
}

Input Schema

NameRequiredDescriptionDefault
doc_idNoDocument ID
recordsYesRecords to add
table_idYesTable to add records to

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.1/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full disclosure burden for a write operation. It does not state whether the insert is atomic, what happens on schema/column mismatch or duplicate keys, what permissions are required, or whether anything pre-existing can be overwritten — all material for a mutation tool.

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, zero filler, with the core operation front-loaded. Nothing could be removed without losing information.

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

Completeness3/5

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

For a simple three-parameter insert with a fully documented schema and no output schema, this is minimally adequate. However, with no annotations and no statement of return value (e.g., created record IDs) or batch failure semantics, an agent cannot predict the result of a call.

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 the baseline is 3. The description adds a little framing about records being column-name-to-value mappings, but it is imprecise: per the schema each array element must be an object containing a 'fields' object, not a bare mapping, which could lead an agent to construct an invalid payload. doc_id goes unmentioned in the description but is documented in schema.

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: 'Add new records (rows) to a table', with a parenthetical clarifying that records are rows. It is immediately distinguishable from get_records or delete_records by the verb, but it never names or contrasts with the closest sibling, update_records, so an agent must infer the boundary itself.

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 explicit when-to-use, when-not-to-use, or alternative-mentioned guidance. The word 'new' weakly implies appending rather than modifying existing rows, but nothing tells the agent to prefer update_records for existing rows or what happens if a row already exists.

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