Skip to main content
Glama

xtiles_alter_table

Destructive

Change the COLUMNS of one xTiles table — a canvas table or a collection: add a column, rename one, change its type, delete it, or add options to a select column. A collection’s column is a property of every item in it: a column added is a new property of each of them. Rows are written with xtiles_write_table_rows, not here. Address the table by the url of its <table …> tag and each column by its id. The url of a <collection url row_id> tag in an item’s <properties> is that collection’s address too. Read the table with xtiles_read_table_rows first: it gives the column ids, types and options this tool works against. Up to 50 operations, applied in order; this is NOT a transaction, and the answer reports every operation separately — applied, unchanged (already so; do not retry), invalid or not_found (refused, with the reason; the rest still run), failed (and every later one skipped, never sent). Declarable types: TEXT, NUMBER, DATE, CHECKBOX, SELECT, MULTISELECT, URL, and on a collection RELATION (with relation_url). Any other type is refused with the list of allowed ones; on a collection, PRIORITY, DUE_DATE and ASSIGNEE are task properties, and their refusal says what to add instead. A canvas table cannot change a column’s type: add a column of the new type, copy the values with xtiles_write_table_rows, delete the old one. On a collection, a type change that would clear or change existing values is refused with the counts unless confirm_data_loss: true; delete_column always needs it. DATA LOSS NEEDS THE USER’S CONSENT: when an operation is refused for it, tell the user what would be lost and ask. Only once they agree, resend THAT refused operation alone, with confirm_data_loss: true on it — not the whole batch, whose other operations have already run. A collection’s title column and its system columns cannot be retyped or deleted. A column is not the place for a record's notes or description — those belong in its nested tile. A type that cannot be added here — a person, a file, an image: add the nearest, and tell the person in one sentence that its type can be changed in the app. A column whose values are people — who is responsible, an owner, an author — is such a column, even when the person only gave names. A relation column is one-way: the other collection shows nothing of it — tell the person, and that the other side is switched on in the app. 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_alter_table"
  }
}

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 50 structure changes, applied in order. Not a transaction — see the tool description.

Output Schema

NameRequiredDescriptionDefault
resultsNo
summaryNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.7/5.0
Behavior5/5

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

Well beyond the annotations (which only say destructive, non-idempotent, open-world), the description discloses that the batch is NOT a transaction, the per-operation outcome vocabulary (applied, unchanged/don't retry, invalid, not_found, failed with all later ones skipped), the 50-operation cap, that refused operations do not block the rest, and the system/title-column protection on collections. It also flags silent side effects: a collection column is a property of every item, and a relation column is one-way so the other collection shows nothing.

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?

Purpose and the critical read-first instruction are front-loaded, and most sentences carry operational weight (consent flow, non-transactional semantics). However, it is a dense ~450-word block with no structural breaks, and it repeats the schema's type enumeration and relation_url explanation verbatim, which costs scanning efficiency on a tool an agent may call mid-task.

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 destructive, multi-operation, non-atomic tool this covers everything an agent needs: prerequisites, addressing, per-op field sets, failure and partial-success semantics, consent handling, and product limits (which types can be declared, what system columns refuse). Return values need not be described since an output schema exists, and the description still summarizes the status vocabulary the agent must act on.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/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, but the description adds real meaning: it explains that url must come from a tags-format read and cannot be assembled from page ids, why column_id must be an id rather than a title, and the exact protocol for confirm_data_loss (only on the single refused operation, never the whole batch). The allowable type set and the RELATION/relation_url constraint are also clarified in prose, though the type list is largely duplicated from the schema.

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 ("Change the COLUMNS of one xTiles table") and enumerates the five operations it performs, covering both canvas tables and collections. It explicitly excludes row writing, routing that to xtiles_write_table_rows, and names xtiles_read_table_rows as the prerequisite read — an agent can distinguish it from siblings without opening a 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?

Gives explicit sequencing (read with xtiles_read_table_rows first to get column ids/types), the addressing requirement (a reading made with format: "tags", listing the four getters), the canvas-table workaround for type changes, and precise when-not guidance ("Rows are written with `xtiles_write_table_rows`, not here"; notes/descriptions belong in the nested tile). The consent protocol for data loss is spelled out step by step, including resending only the refused operation.

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