Skip to main content
Glama

append_rows

Append rows to a table. rows is a list of objects keyed by column_id (from describe_table); or pass columns (ids, in order) once and send each row as an array in that order: same result, fewer bytes. Values are coerced to the column's type; a value that does NOT fit is REFUSED and nothing is written (the column is never retyped).

VALUES: JSON scalars; null leaves a cell empty. list_string takes an array of strings. Timestamps and dates take ISO 8601 strings. categorical takes an option LABEL or an array of labels, never an id; an unknown label is refused (add it with update_categories). An attachment column cannot be written or cleared: leave it out.

Max 1000 rows and 1 MiB of values per call. Pass a stable idempotency_key: without it a retry after a dropped response can insert the rows twice.

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>",
      "rows": "<rows>"
    },
    "name": "append_rows"
  }
}

Input Schema

NameRequiredDescriptionDefault
rowsYesKeyed objects (`column_id` → value) or positional arrays in `columns` order; one encoding per call.
columnsNoColumn ids for positional rows: required when rows are arrays, refused with keyed rows. Each row carries exactly this many values; a short or long row refuses the call.
model_idYesModel that owns the table.
table_idYesTarget table id.
idempotency_keyNoStable unique string that makes a retry safe. Strongly recommended.
expected_versionNoOptional optimistic-concurrency guard (see edit_rows).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.7/5.0
Behavior5/5

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

Goes well beyond the annotations (readOnly=false, destructive=false): it discloses the all-or-nothing refusal on type mismatch, that columns are never retyped, per-call limits of 1000 rows / 1 MiB, the attachment-column restriction, and the duplicate-insert risk without an idempotency key. These are exactly the failure modes an agent needs before calling a write tool.

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?

Front-loaded with purpose and the two encodings, then a labeled VALUES block for type rules. Dense and mostly waste-free, though the VALUES paragraph is long enough that it reads more like documentation than a routing blurb.

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

Completeness5/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 no output schema, the definition covers encoding choice, type coercion, refusal semantics, limits, idempotency, and concurrency. The only unaddressed item is the return payload, which is a minor gap against how much failure-mode context is already supplied.

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?

Schema coverage is 100%, yet the description still adds meaning the schema cannot: the relationship between `columns` and positional `rows`, the value-typing rules per column type (ISO 8601, label-not-id for categorical, arrays for list_string), and why `idempotency_key` matters. This is genuine semantic value on top of structured fields.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ("Append rows to a table") and immediately clarifies the two accepted row encodings, which distinguishes it from edit/update siblings. An agent knows this adds rows rather than modifying or replacing them.

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 concrete routing guidance: use `describe_table` to get column ids, use `update_categories` when a categorical label is unknown, and points to `edit_rows` for the concurrency guard. It does not explicitly state when to prefer this over edit_rows or update_rows_where, but the append-only framing makes the boundary largely self-evident.

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