Skip to main content
Glama

Resolve a Folio link to the page it shows

resolve_folio_url
Read-onlyIdempotent

Convert a pasted Folio URL or /s/ path into the exact page it displays—space home, page, or folder index—so you can read or edit that page and add child pages under its parent path.

Instructions

Turns a Folio URL or path the user pasted into the concrete page it displays: /s/<space> (no /p/) is the SPACE HOME PAGE (its index.md), not "the whole space"; /s/<space>/p/<pageId> is that page; /s/<space>/d/<dir> is the folder's index page. Call it whenever a message contains a Folio link, then read/edit THAT page (its id) and create new pages under parentPathForChildren.

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": "resolve_folio_url"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlYesFull Folio URL or an app path starting with /s/

Output Schema

NameRequiredDescriptionDefault
idYesPage id
iconNoEmoji icon, if the page has one
kindYesPage kind: doc, board, table, form, base, canvas, artifact, pdf or office
noteYesReminder to work within this page
pathYesPath relative to the space root
coverNoCover image URL, if the page has one
orderYesPosition among its siblings
spaceYesSpace slug the page belongs to
titleYesPage title
statusYesPage status
updatedAtYesLast change, ISO timestamp
parentPathForChildrenYesPass as parentPath to create_page to add a child under this page

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already cover safety (readOnly, idempotent, non-destructive, closed-world), so the description's contribution is the resolution semantics: which URL shape maps to which page, and the non-obvious warning that a bare `/s/<space>` is the space index rather than a container. It does not discuss invalid/malformed URL handling, which is the remaining behavioral gap.

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

Conciseness4/5

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

The action and the guidance are front-loaded in a single dense sentence with no filler. The parenthetical path enumeration is long but every clause carries distinct mapping information, so it earns its length.

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 one-parameter resolver with a full output schema and four annotations, the description supplies the trigger, the input grammar, the tricky resolution rule, and the downstream next step. Nothing an agent needs in order 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% and the single `url` parameter is already documented, so the baseline is 3. The description adds real value by spelling out the accepted path grammar (`/s/<space>`, `/s/<space>/p/<pageId>`, `/s/<space>/d/<dir>`) that the schema only summarizes as 'an app path starting with /s/'.

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 ('turns a Folio URL or path ... into the concrete page it displays') and enumerates the three path shapes with their exact resolutions, including the important edge case that `/s/<space>` means the space home page, not the whole space. An agent can tell this is a resolver, not a reader or page CRUD tool.

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

Usage Guidelines4/5

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

Gives an explicit trigger ('call it whenever a message contains a Folio link') and a concrete follow-up workflow (read/edit THAT page via its `id`, create children under `parentPathForChildren`). It does not name a sibling by name as an alternative or state when not to use it, so it falls just short of a 5.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.