Skip to main content
Glama

xtiles_update_content

Destructive

Edit xTiles content by its link. LINK (url): the url of a <page> or a <tile> tag, or a block's nested_url — exactly as a reading gives it; build no link of your own. xtiles_get_content_by_link reads the same links. Operations name blocks and tiles by data-id anywhere on the page the link resolves to. The link decides where an insert_blocks without position goes: a tile's — the end of that tile; a page's — nowhere, position is needed. Content nested in a block is edited at the block's nested_url: read it there first and take the ids and versions from that reading (a planner task's tile may be on another page — the operations then go to that page); a nested sub-project has several pages — read it, then write by one page's url. A block with no nested content gets it from xtiles_create_nested, not from this tool. READ: xtiles_get_view_content returns the page as <page data-id url title> holding <tile data-id url title> tags — url opens the page, or the page on that tile, to give the user or to link to — each holding one tag per block, named for its kind — <text>, <header>, <quote>, <code>, <task>, <link>, <image>, <file>, <color> (a colour swatch), <divider/>, <table> — each with its data-id. Inside a block is its text; its attributes are its properties. Text with a background reads <text background="green">; a link inside xTiles reads <link kind="internal"> — whatever it points at (a page, a tile, a collection row, a sub-project); to see what that is, read its url with xtiles_get_content_by_link. A tile that fills itself reads <tile kind="widget" …>; a planner's <tile kind="widget" widget="tasks" period="yyyy-MM-dd"> gathers the tasks of its period (a day, today, a month yyyy-MM, or overdue with before) — the user's own on My Planner (its project tag, when shown, reads kind="my_planner"), the project's on a project planner — as <task data-id="syn-…"> blocks whose title and task fields you edit as anywhere (one day of a repeating task keeps its date and its tile); the Schedule tile adds view="schedule" and shows the same tasks as a schedule, so a task in both often shows under one data-id — place new blocks by another neighbour. Such an id is taken in the later of the two tiles as the page reads (usually the Schedule tile): an edit of it sends that tile's data-version, and a block placed next to it lands there — to add to the other tile, anchor on a block only it shows or use end_of_tile. A task in a tasks widget stays in tasks widgets: move_block to another one gives it that period's day (not one day of a repeating task, whose date cannot change); into an ordinary tile it is refused — change its task.due_date instead. A syn- id is a projection of the task, not a block of its own; one you added there keeps its own block id in that tile while the other shows it as syn-… — either id edits the same task. A repeating task differs by id: syn-{id}_{yyyy-MM-dd} is that one day (complete it; its date cannot change), syn-{id} the whole series. A task added there without due_date is due in its period (an overdue widget gives none: name a date). Deleting a task there deletes the task itself, not just its place in the widget (a repeating task: that day, or its days in a week or month widget's period). A widget cannot be copied with insert_tiles: it fills itself. A block may hold content of its own that the app opens from it: nested="tile" (one tile of details — a task's description), nested="page" (a page of tiles) or nested="project" (a sub-project of pages). It is not part of this page: read it with xtiles_get_content_by_link on the block's nested_url, and edit it with this tool on what that reading returns. A nested tile belongs to the same page (the same page id), so one call may edit the page and its nested tiles together and move a block between them — but not into its own nested content. nested and nested_url are read only and are not copied. update_block and move_block keep the content; delete_block or replace_block on such a block, and delete_tile on a tile holding one, delete it too and are refused until the operation has confirm: ["delete_nested_content"] — add it only when deleting that content is meant, and an operation inside that content cannot go in the same call. The page's description is the <description data-id data-version shown="true|false"> tag right after the <page> tag (empty when the page has none); it is not a block — change it with update_description, its data-version in versions under its data-id (it is apart from the page's and every tile's), and never put it in inserted content. A new <task> in inserted content may hold a <description> of Markdown (paragraphs, lists, ## headings) — it becomes the task's nested tile, as the app keeps a task's description; an existing task's description is that tile: read it through the block's nested_url and edit it there (a title is text only — a <description> in it stays text). Every <tile> and the <page> carry a data-version. Pass in versions, under its data-id, the version of each tile your operations touch (both tiles of a move) as you read it, and the <page>'s under "page" when adding or deleting tiles; a nested tile goes by its own <tile data-version> from its nested_url reading (not that reading's <page data-version>, which is the page's tile set); an empty nested tile reads without a <tile> and needs no version — an edit that touches nothing else sends versions: {}. What decides is the reading, not whether the tile has blocks: a <tile> that reads with a data-version sends it, also with no blocks — a collection record's tile always does. A <page kind="collection"> has no version of its own: its rows' tiles carry theirs as on any page. If one of them changed since you read it, the edit is refused instead of overwriting what someone else wrote — read it again then; a change in a tile you do not touch does not refuse. All operations are checked against those reads before anything is written: if one fails those checks, none is applied. OPERATIONS: update_block {block_id, and any of: title, type, url, background, list, heading, code, task, divider, color} — changes only what you give; the block keeps its id, comments and everything attached to it. title — the text inside the tag, as inline markdown (bold, italic, links as [words](https://…)); a leading - or # is not markup there and is kept as literal text — a list item, heading or task is made with list, heading or type; a code block takes its source without backslash escapes. Text reads escaped and goes back the same way: a literal *, _, `, ~, [, ], < or \ is written with a backslash (2\*3); and inside every tag, code included, & and < are &amp; and &lt;. Copied as read, text stays exactly as it was. A new title replaces the text and its formatting: underline, colour, mentions and inline code are not shown in the reading, so they do not survive a changed title. type — the kind, as the tag is named; can become text | header | quote | code | task: task makes a text block a task, any other kind on a task makes it stop being one. url — repoints a link block or replaces an image block's picture; background — a text block's fill, one of yellow | orange | red | lightGreen | green | lightBlue | blue | pink | violet | beige | gray ("" removes it; a list item has none, and it is not sent with list); the text and url of a kind="internal" link are changed with replace_block and a new <link>. A block's properties go in groups, each for one kind of block — the kind it is, or becomes with type; the names inside are the attribute names of the reading, except that the list marker is list.type and a swatch's color attribute is color.value: list {type: bulleted | numbered | checked | toggle | no_marker (a list item without a marker) | none (no longer a list item), level (1 when the reading shows none), checked} — text blocks; heading {size: h1 | h2} — header blocks; code {language} — code blocks; task {due_date: "yyyy-MM-dd" or "yyyy-MM-dd HH:mm" in the user's timezone ("" clears), priority: low | medium | high | none, assignee: comma-separated emails — the complete set, "" for nobody; an address that is not a user yet is invited, so take them from xtiles_search_users — completed} — tasks; divider {style: line | solid_line | dotted | three_dots_solid} — dividers; color {value, format: hex | hsl | rgb, view: card | preview, size: small | medium | large | xl, hide_caption} — a <color> swatch. E.g. make a heading: {type: "header", heading: {size: "h1"}}; make a task: {type: "task", task: {due_date: …}}. Sending back an attribute unchanged is fine. position — exactly one of {after_block_id} | {before_block_id} | {end_of_tile: tile id}. New content is written exactly as the page reads (a copied data-id is ignored — new blocks get new ids): <text list="bulleted">Item</text>, <header size="h1">Title</header>, <task due_date="2026-12-01" priority="high">Call</task>, <link url="https://…">Label</link>, <image url="https://…">Caption</image>, <text background="green">Highlighted</text>, <color color="#FF5733" format="hex">Brand</color> (color and format needed), <divider style="dotted" />; a table is written as the reading shows it — copy it as read. Block tags only, not markdown lines; the text inside a tag is inline markdown, as in title. LINKS: a link that is part of a sentence, list item or task goes inside that block's text as [words](https://…) — never a <link> tag inside another tag (it is stored as its characters), and never a bare address (it stays text, not clickable). A link on its own, or each one in a list of sources, is a block of its own, <link url="https://…">Name</link>, named with words — what the person called it, else the site's or page's name — never the address itself. In a <link> the server tells what it points at — an address of an xTiles page, tile, block or collection row becomes a link to it, read back as kind="internal". An address comes from the person or a tool result, never made up; one they want kept as text stays text or <code>. To copy a tile, send its <tile> as read to insert_tiles. A task without assignee gets what a new task gets in the app — the user, unless the project is shared for writing (then nobody); assignee="" is nobody anywhere. A <file> cannot be written here, so a tile holding one cannot be copied whole; leave it in place or move it. insert_blocks {content: one or more block tags, position}. insert_tiles {content: one or more <tile title="…"> tags, each holding its block tags} — new tiles, placed after the page's other tiles. A text page is one tile: tiles cannot be added to it or deleted from it. delete_block {block_id}; delete_tile {tile_id} — permanent: the block or tile goes with its id, comments and attachments, so never delete and re-insert to edit — update instead. replace_block {block_id, content: one or more block tags} — the new blocks take the block's place and it is deleted, as permanently as by delete_block; for when a block becomes something update_block cannot make of it — another kind, or several blocks. No neighbour to name, so replace neighbours each with their own. move_block {block_id, position} — may move into another tile, but not to the end of an empty one. update_tile {tile_id, title}. update_description {title, page_description: {shown}} — the page description: title is the text of the <description> tag, as a block's title (the whole description, escaped as it reads — "" clears it); page_description.shown whether the page displays it (a new description is shown unless you say otherwise; title: "" clears and hides it; shown: true on a page with no description is refused); either alone keeps the other. On a collection page only the description and the blocks of its rows (each row is a tile, read by its link) are edited; rows are added, deleted and renamed, and columns changed, with the table tools. RULES: one operation per block and per place — several blocks for one place go in ONE insert; nothing may be placed next to a block that another operation deletes, replaces or moves, or into a tile being deleted (updating a block and inserting next to it is fine). A table block can be moved or deleted and blocks inserted next to it; its rows and columns are changed with the table tools. Returns the updated page, followed by each nested tile the edit touched; blocks it created have new ids there, and its data-versions are the versions of your next edit — no need to read it again. An edit refused by those checks applied nothing: a changed page (or nested tile) — read it again, the nested tile through its nested_url, and rebuild the operations from what it shows now, never resend them blindly; a refusal naming operations[N] — fix that operation and send the whole set again; a version refused as missing — add it from your read. An id refused as not on the page is stale or mistyped — read the page (or the nested tile, through its nested_url) again. 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_update_content"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlYesWhat to edit: the `url` of a `<page>` or a `<tile>`, or a block's `nested_url` — exactly as read.
versionsNoRequired. The `data-version` of each tag your operations touch, under its `data-id`: every `<tile>` holding a block you change, delete, insert next to or move (both tiles of a move), a tile you update (`update_tile`) or name as `end_of_tile`, and the `<page>` under "page" when you add or delete tiles (`delete_tile` also takes the tile's own). A nested tile goes by its own `<tile data-version>` from its `nested_url` reading (not that reading's `<page data-version>`, which is the page's tile set); an empty one reads without a `<tile>` and needs none — but a `<tile>` that reads with a `data-version` sends it, also with no blocks (a collection record's tile always does). update_description: the `<description>` tag's, under its `data-id` (`{pageId}:description`). A changed one refuses the edit.
operationsYesEdits checked together against the read before any is written.

Output Schema

NameRequiredDescriptionDefault
titleYes
contentYes
view_idYes
project_idYes
applied_operations_countYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already flag destructiveHint=true and non-idempotent, but the description goes much further: it discloses optimistic-concurrency semantics via `versions` (a stale read refuses the edit rather than overwriting), all-or-nothing atomicity ("if one fails those checks, none is applied"), the `confirm: ["delete_nested_content"]` gate and what it destroys, permanence of `delete_block`/`delete_tile`/`replace_block`, and the refusal/recovery protocol. It also spells out the return payload (updated page plus touched nested tiles, with fresh `data-version`s reusable as the next `versions`).

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

Conciseness2/5

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

The purpose is front-loaded, but the rest is one enormous unstructured paragraph of roughly 1,500 words in which the OPERATIONS catalogue, escaping rules, widget/task id semantics, and refusal handling all run together with no headings or list breaks. Almost every sentence is substantive, yet the sheer density and lack of scaffolding make it hard for an agent to locate the operation it needs; markup segmentation would have preserved the content at a fraction of the reading cost.

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 nine-operation mutation tool with nested objects, version checks and an output schema, the definition covers everything an agent needs to call it correctly: addressing, id/version sourcing, per-operation payloads, edge cases (widget tiles, `syn-` projections, collection pages, text pages), and error recovery. Nothing material is left to inference, and return values are appropriately delegated to the output schema.

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 description coverage is 100%, so baseline is 3; the description nonetheless adds meaning the schema does not carry as clearly — the property-group-per-block-kind model (`list`, `heading`, `code`, `task`, `divider`, `color` only apply to the matching kind), the attribute-name exceptions (`list.type`, `color.value`), escaping rules for `title`, the `position` exclusivity and the tile-link default, and worked examples ("make a heading: {type: "header", heading: {size: "h1"}}"). It stops short of organizing these per-parameter, so it is strong but not maximally scannable.

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?

"Edit xTiles content by its link" states a specific verb (edit) and resource (xTiles content), then immediately defines the addressable target (`url` of a `<page>`/`<tile>` or a block's `nested_url`). It also distinguishes itself from the read-side siblings by naming `xtiles_get_content_by_link` and `xtiles_get_view_content` as the sources of those links, so an agent can tell it apart from the getters 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?

Explicit routing rules are given throughout: use `xtiles_create_nested` for a block with no nested content, use `replace_block` "for when a block becomes something `update_block` cannot make of it", use `update_block` rather than delete-and-reinsert, use the table tools for rows/columns/columns on collection pages, and use `xtiles_search_users` before setting an assignee. It also states a hard precondition — the definition is addressed by readings made with `format: "tags"`, and the default markdown reading shows none of it.

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