Skip to main content
Glama

xtiles_get_content_by_link

Read-onlyIdempotent

Resolve any xTiles link to the content it points at. Use this whenever the user pastes an xTiles URL instead of guessing which id it contains — the same URL can address a whole page or a single tile depending on its query string. Handles page links (/{viewId}, /doc/{viewId}, /embed/{viewId} — any xTiles domain, public or custom), tile links (?nvi=, ?wfm=, ?scrollTo=) and "copy link" links (/links/{linkId}). The URL is parsed and resolved against your own xTiles content by our API — it is never fetched from the host it names, so this only ever reaches the caller's own xTiles resources. Returns resource_type (what the link turned out to be), the ids it resolved to, and the content of THAT resource — for a tile link, the tile's own markdown, not the whole page. To read the full page a tile belongs to, follow up with xtiles_get_view_content using the returned view_id. A link to a collection card resolves to that card and returns ITS content — a card and a tile are the same item wearing two hats, so the type is TILE. A block's nested_url is an xTiles link too: it reads the content nested in that block — its tile, page or sub-project — which the page itself does not show. A block without one has nothing nested; xtiles_create_nested gives it a tile. The response states what you may do with the resource; respect it before offering to edit. Leftover tracking parameters (utm_*, im_ref, …) are ignored — paste the link as-is. Errors: 400 the string is not an xTiles link; 422 the link is a recognised shape we cannot resolve yet (public forms, task screens, workspace links); 404 the page or link no longer exists; 403 no access — which is also the answer for an unknown collection row, since telling those two apart would leak whether a private id exists. Report a 403 as "no access, or it no longer exists", not as a definite refusal. READ FORMAT: by default (format: "markdown") the content is plain markdown, the text xtiles_patch_view_content edits. Pass format: "tags" to read it as tags instead — a <page> with its url, <tile data-id> tags holding one tag per block, each table a <table url=… schema=…> tag, a collection page with its collection URL — with the ids, data-versions and links that xtiles_update_content, xtiles_create_nested and the table tools take. To edit by id, or to work with a table or a collection, read with format: "tags" first, and take every id, version and link from that reading. If you are going to edit, or to work with a table or a collection, and xtiles_update_content and the table tools are in your tool list, read with format: "tags" straight away. The markdown reading is for reading only, or for a client that does not have them.

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

Input Schema

NameRequiredDescriptionDefault
urlYesAny xTiles link, passed EXACTLY as the user gave it — do NOT strip the query string. The query string is what distinguishes a link to a single tile from a link to the whole page: `https://xtiles.app/6740858058af8a09bf6096e6` is the page, while `https://xtiles.app/6740858058af8a09bf6096e6?nvi=eyJ2IjoxLC4uLg` addresses one tile inside it. Accepted: page links (`/{viewId}`, `/doc/{viewId}`, `/embed/{viewId}`), tile links (`?nvi=`, `?wfm=`, `?scrollTo=`) and "copy link to tile" links (`/links/{linkId}`). Any host works — public and custom xTiles domains included. A bare id is NOT a link and is rejected: an id alone does not say whether it names a page, a project or a task. If you already have a `viewId`, call `xtiles_get_view_content` instead. Returns the content of whatever the link addresses: for a tile link, that tile's content, not the page's.
formatNoHow the content is read. `"markdown"` (default): plain markdown. `"tags"`: the page as `<page>` / `<tile data-id>` tags holding one tag per block, with the ids, `data-version`s and links (`url`, `nested_url`) that `xtiles_update_content` and `xtiles_create_nested` take, and each table as a `<table url=… schema=…>` tag whose `url` the table tools take. Read with `"tags"` before calling any of those tools.

Output Schema

NameRequiredDescriptionDefault
idsYes
urlYes
titleNo
accessNo
contentNo
page_urlNo
collectionNo
page_titleNo
resource_urlNo
project_titleNo
resource_typeYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / format
      Added value: +{
      +  "description": "How the content is read. `\"markdown\"` (default): plain markdown. `\"tags\"`: the page as `<page>` / `<tile data-id>` tags holding one tag per block, with the ids, `data-version`s and links (`url`, `nested_url`) that `xtiles_update_content` and `xtiles_create_nested` take, and each table as a `<table url=… schema=…>` tag whose `url` the table tools take. Read with `\"tags\"` before calling any of those tools.",
      +  "enum": [
      +    "markdown",
      +    "tags"
      +  ],
      +  "type": "string"
      +}
  2. First observed

TDQS

A4.7/5.0
Behavior5/5

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

Beyond the readOnly/idempotent annotations, it discloses a non-obvious mechanism — the URL is parsed and resolved server-side against the caller's own content and "is never fetched from the host it names" — which matters because annotation openWorldHint=false would otherwise be unexplained against an arbitrary URL input. It also documents the full error taxonomy (400/422/404/403) and a security-sensitive nuance: report 403 as "no access, or it no longer exists" because distinguishing the cases would leak private-id existence.

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?

The opening and the error section are well front-loaded and earn their space, but the `tags`-format advice is restated three separate times (in READ FORMAT and again in the two closing sentences), and the card/tile "two hats" aside and nested_url digression lengthen an already dense block. It is informative but noticeably repetitive for a two-parameter tool.

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, so return shape need not be explained, yet the description still tells the agent what to expect (`resource_type`, resolved ids, and that a tile link yields the tile's markdown rather than the page). Combined with error semantics, format routing, and the card-as-TILE edge case, nothing needed to call it correctly is missing.

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; the description still adds real decision value the schema only partly carries, namely the operational rule to read with `format: "tags"` up front when editing or touching tables/collections, plus the note that utm/tracking params can be pasted as-is. It stops short of adding new format mechanics beyond the schema's own enum descriptions.

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 states a specific verb and resource ("Resolve any xTiles link to the content it points at") and immediately explains the ambiguity it removes (page vs. single tile depending on query string). It names the sibling it is not — "To read the full page a tile belongs to, follow up with `xtiles_get_view_content`" — so an agent can pick correctly without comparing schemas.

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 trigger ("use this whenever the user pastes an xTiles URL"), explicit follow-up path to `xtiles_get_view_content`, and explicit precondition for the `tags` format (editing, or working with a table/collection). The closing line even carves out the client that lacks the editing tools, so when-not-to-use is covered too.

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