Skip to main content
Glama

xtiles_create_view_from_markdown

Destructive

Create a new view (page) inside an existing xTiles project from Markdown. One ## heading at most — it becomes the view title; ### headings become tiles. A second ## is refused: call this tool once per page (a brand-new project with several pages: xtiles_create_project_from_markdown). Returns the new view_id and resource_url (a link that opens the created page in the xTiles web app). Use xtiles_list_projects to find the projectId. A table may declare its column types with a <table schema='…'> tag — the schema a read prints; it works on a table in a tile and on a collection page (a ## heading with the table right under it). What a collection holds and how to decide it: xtiles://guide/markdown/collections, after xtiles://guide/markdown/overview; the full grammar of the tag: xtiles://guide/markdown/tables. A relation column exists only on a collection page: RELATION(<url of the target collection>), its cells naming target records by the ids a read of that collection returns (Title (id)), never by title alone; a collection created in the same call cannot be a target — create the collection it points at first, then the one with the relation column in a call of its own. 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. A record's details — a description, notes, steps — go into its nested tile, which every record has from the start, never into a column: after the write, read the collection's rows and open each record by its own link.

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": {
      "projectId": "<projectId>",
      "markdown": "<markdown>"
    },
    "name": "xtiles_create_view_from_markdown"
  }
}

Input Schema

NameRequiredDescriptionDefault
markdownYesMarkdown content for the new view. One `##` heading at most — it becomes the view title; `###` headings become tiles. A second `##` is refused — call this tool once per page. Full syntax: read resource `xtiles://guide/markdown/overview` or call `xtiles_get_docs`. Write each tile with its colour and style (`@color` / `@colorSize` under its `###`), so it arrives designed; which values to choose is in `xtiles://guide/markdown/design` — read it after the overview, before writing.
projectIdYesProject (document) ID to create the new view in (use xtiles_list_projects to discover).

Output Schema

NameRequiredDescriptionDefault
view_idNo
project_idNo
resource_urlNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / markdown / description
      Previous value: -"Markdown content for the new view. The first `##` heading becomes the view title; `###` headings become tiles. Full syntax: read resource `xtiles://guide/markdown/overview` or call `xtiles_get_docs`. Write each tile with its colour and style (`@color` / `@colorSize` under its `###`), so it arrives designed; which values to choose is in `xtiles://guide/markdown/design` — read it after the overview, before writing."New value: +"Markdown content for the new view. One `##` heading at most — it becomes the view title; `###` headings become tiles. A second `##` is refused — call this tool once per page. Full syntax: read resource `xtiles://guide/markdown/overview` or call `xtiles_get_docs`. Write each tile with its colour and style (`@color` / `@colorSize` under its `###`), so it arrives designed; which values to choose is in `xtiles://guide/markdown/design` — read it after the overview, before writing."
  2. Changed1 schema field changed
    • changedInput schema / properties / markdown / description
      Previous value: -"Markdown content for the new view. The first `##` heading becomes the view title; `###` headings become tiles. Full syntax: read resource `xtiles://guide/markdown/overview` or call `xtiles_get_docs`."New value: +"Markdown content for the new view. The first `##` heading becomes the view title; `###` headings become tiles. Full syntax: read resource `xtiles://guide/markdown/overview` or call `xtiles_get_docs`. Write each tile with its colour and style (`@color` / `@colorSize` under its `###`), so it arrives designed; which values to choose is in `xtiles://guide/markdown/design` — read it after the overview, before writing."
  3. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare destructive/openWorld/non-idempotent and output schema covers the return, yet the description still adds real behavior: a second `##` is *refused*, relation links forged in the same call are invalid, relations are one-way and the reverse side only appears via the app, and details must go in nested tiles with a follow-up read to verify. The one gap is that it never explains what makes this destructive (no account of existing content being altered or of partial-failure behavior), so it stops just short of a 5.

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 is front-loaded and the sentences are individually tight, but the body is a dense block that mixes core calling rules with extended table/relation doctrine that is also delegated to the `xtiles://guide/markdown/collections` and `tables` resources. Several clauses restate what the schema description already says almost verbatim (one `##` at most, the design guide pointer), so it over-serves at the cost of scanability.

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

Completeness4/5

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

For a tool whose Markdown grammar is intricate and whose output schema already defines `view_id`/`resource_url`, the description covers the failure modes an agent would actually hit: excess `##`, same-call relation targets, and where record details live. What remains unaddressed is the safety angle implied by `destructiveHint: true` and any partial-write behavior, which keeps it off a 5.

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 both parameters are already documented and the baseline is 3. The description nonetheless adds semantics the schema does not carry: what precisely `markdown` may contain structurally, the `RELATION(<url>)` cell syntax with `Title (id)` addressing, and the rule that a record's details belong in its nested tile rather than a column.

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 first sentence gives a specific verb, resource, and scope: creating a view (page) inside an *existing* project from Markdown. It immediately differentiates from the sibling that handles brand-new multi-page projects (`xtiles_create_project_from_markdown`), so an agent can pick between them without opening either 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: one call per page, use `xtiles_create_project_from_markdown` for a new multi-page project, use `xtiles_list_projects` to obtain `projectId`. It also states an ordering constraint that would otherwise cause a failure — the target collection must exist before the collection holding the relation column — which is genuine when-to-use guidance.

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