Skip to main content
Glama

xtiles_write_table_rows

Destructive

Create, update and delete rows of one xTiles table — a canvas table or a collection — in a single batch of up to 100 operations. Address the table by the url of its <table …> tag and each row by the xt:row_id that xtiles_read_table_rows reports; set cells by COLUMN ID. The url of a <collection url row_id> tag in an item’s <properties> is that collection’s address too. Its row_id is the item’s xt:row_id there. This is NOT a transaction: operations apply in order, and the answer reports every one of them separately — including unchanged, which means the table already held what was asked for. Read the table first: a value has to fit its column, and the schema says what each one takes. In a collection a row holds a record's fields: writing a cell changes that field wherever the record is shown — the one way to change a field, except a column the schema marks read-only, which no write takes. xt:url is the row’s read-only link; it cannot be written. A cell holds a short field; a record's notes, description or steps belong in its nested tile, never in a cell or a new column. Every record has that tile from the start: details the person gave for a record go there — after adding records with them, read the rows for each record’s own link, open it, and write them in the same request. A remark that only explains the request — why a value stays, what someone is still deciding — is not a detail: write it nowhere. A field the record needs and the collection has no column for — an end date, a second amount — is a column to add, not a detail for the nested tile. A value that fits none of a choice column’s options, and that the person did not name as a new one: leave that cell and write the rest; the reply says no option fits and names the options there are, or asks which to use. Delete only the records the person named, or those a condition they stated picks out; when you would choose them yourself — "old", "no longer relevant" — list them and ask first, naming only those. Asked to remove duplicates: an exact copy — every field the same, and nothing in its nested tile that the other one lacks: open both before you decide — is one the person named, so delete it and say it was removed, not how you checked; records that differ, in a field or in their nested tiles — show how, and ask what to do with them, without deciding for the person whether they are the same. What this tool is addressed by comes from a reading made with format: "tags" (xtiles_get_view_content, xtiles_get_content_by_link, xtiles_get_project_content, xtiles_get_planner_content); the default reading is plain markdown and shows none of it.

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": {
      "url": "<url>",
      "operations": "<operations>"
    },
    "name": "xtiles_write_table_rows"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlYesThe `url` attribute of the `<table …>` tag that was rendered when the page was read. Pass it back unchanged — it addresses a canvas table and a collection alike, and it is not assembled from ids. The `url` of a `<collection url row_id>` tag in an item’s `<properties>` is that collection’s address too. A page's id — from a project's structure or anywhere else — is not this url: read the page first.
operationsYesUp to 100 row operations, applied in order. Not a transaction — see the tool description.
allow_new_optionsNoDefault false. When true, an unknown label in a select or multiselect cell becomes a NEW option of that column and the cell is written; the options added are listed in `created_options`. Set it only when the person named the value, or the source being carried over brought it. A near-miss of an existing label (the answer gives `did_you_mean`), an empty label and a new label in a PRIORITY/STATUS column are still refused. In a multiselect a comma inside a new label must be escaped as `\,` (`Lviv\, Ukraine` is one label); a bare comma separates labels. A select takes the whole value as one label and reads the same escape — see the tables guide (`xtiles://guide/markdown/tables`), "What a write accepts", before using it. Never for a label you worded yourself to describe what the person said — a situation they described is not a value they named.

Output Schema

NameRequiredDescriptionDefault
resultsNo
summaryNo
created_optionsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.5/5.0
Behavior5/5

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

Beyond the annotations (destructive/write/non-idempotent), it discloses the traits an agent could not infer: operations apply in order and are NOT a transaction, each is reported separately including `unchanged`, a read-only column in `values` fails the whole operation, multiselect and relation writes REPLACE the whole set, and a two-way relation write mutates the target table. These are exactly the side-effect and failure-mode facts the annotations do not convey.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

It is well front-loaded — purpose, then addressing, then the non-transaction caveat — but it then runs to several hundred words of dense, unbroken prose with run-on sentences (e.g. the 'A value that fits none of a choice column's options…' and duplicate-handling clauses) and no structure to help scanning. Much of the policy content is relevant, but it is delivered at a length near the point of diminishing returns.

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?

An output schema exists, yet the description still covers the reply's per-operation report, `unchanged`, `created_options` and `did_you_mean` refusals, which is what an agent needs to act on results. Given the complexity (batch destructive writes across two table kinds, nested tiles, read-only and system columns), nothing material needed to call it correctly appears to be missing.

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% and the schema already spells out url, row_id, column-ID keying, value encoding and `allow_new_options` in great detail, so the baseline is 3. The description largely restates the schema (table `url`, `xt:row_id` from the read, cells by COLUMN ID) rather than adding new parameter meaning, though it does usefully tie the url to collection tags in `<properties>`.

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?

The opening sentence gives a specific verb set (create, update, delete), the exact resource (rows of one xTiles table — canvas table or collection) and the batch scope (up to 100 operations). It also implicitly separates this from `xtiles_read_table_rows` (which supplies the url/row_id) and from `xtiles_update_task` (named for STATUS columns), so an agent can distinguish it from siblings without opening any schema.

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

Usage Guidelines5/5

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

Guidance is explicit and carries exclusions: 'Read the table first: a value has to fit its column'; delete only records the person named or those a stated condition picks out, list and ask otherwise; use `xtiles_update_task` where STATUS reads read-only; a missing field is a column to add rather than a nested-tile detail; set `allow_new_options` only when the person named the value. It also names the read tools that produce the addressable form (`format: "tags"` via four named getters).

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