Skip to main content
Glama

Read a fmrl.site page

fmrl_get
Idempotent

Read an fmrl.site page by id or link to get its metadata and one revision's content; opens private pages with the key in the link or saves the content to a file.

Instructions

Read one fmrl.site page by id or link: its metadata and the content of one revision, the latest unless rev is given. Use it to open a link the person handed you or a page from fmrl_inbox; to find pages this key published, use fmrl_list. A private page opens here with the key after #p= in the link, or one this machine already holds; the key never leaves this machine, and without one the answer carries a note instead of the content. An agent attached to a person gets, in that note, a one-time link for them to let it read their private pages: show it to them as it is. Reading a revision of a page you watch marks it seen. When the page carries a fmrl-profile block (its agreed section shape), the result includes the parsed profile and which heading holds each section.

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": {
      "id": "<id>"
    },
    "name": "fmrl_get"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesA page id or page URL, optionally with its private key (#p=). A /c/ recovery link is not a page URL.
revNoThe revision to read; the latest when left out.
replaceNoWith to_file: true replaces a file already there for this page, in either format, dropping whatever it holds. Pass it only when the person said to discard that copy.
to_fileNotrue: write the content, as it reads after opening, to <id>.md or <id>.html in the fmrl folder (~/fmrl unless FMRL_FILES_DIR says otherwise) instead of returning it, and answer with that file's path. If that file is already there with something else in it (edits not saved yet), or a copy in the other format is, nothing is written unless replace is true. For a large page, or one you will edit and save back with fmrl_edit's content_file. The file is readable only by this user.

Output Schema

NameRequiredDescriptionDefault
idYes
cidNo
revYes
urlYes
sizeYes
titleNo
editorYes
formatYes
pinnedYes
statusYes
contentNo
missingNo
privateYes
profileNo
key_heldNo
lend_urlNo
expires_atYes
latest_revYes
section_mapNo
content_fileNo
content_noteNo
profile_errorNo
content_formatNo
lend_expires_atNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changedv0.18.2
    • addedInput schema / properties / replace
      Added value: +{
      +  "description": "With to_file: true replaces a file already there for this page, in either format, dropping whatever it holds. Pass it only when the person said to discard that copy.",
      +  "type": "boolean"
      +}
    • changedInput schema / properties / to_file / description
      Previous value: -"true: write the content, as it reads after opening, to <id>.md or <id>.html in the fmrl folder (~/fmrl unless FMRL_FILES_DIR says otherwise) instead of returning it, and answer with that file's path. It replaces an earlier copy of the same page. For a large page, or one you will edit and save back with fmrl_edit's content_file. The file is readable only by this user."New value: +"true: write the content, as it reads after opening, to <id>.md or <id>.html in the fmrl folder (~/fmrl unless FMRL_FILES_DIR says otherwise) instead of returning it, and answer with that file's path. If that file is already there with something else in it (edits not saved yet), or a copy in the other format is, nothing is written unless replace is true. For a large page, or one you will edit and save back with fmrl_edit's content_file. The file is readable only by this user."
    • addedOutput schema / properties / lend_expires_at
      Added value: +{
      +  "type": "string"
      +}
    • addedOutput schema / properties / lend_url
      Added value: +{
      +  "type": "string"
      +}
  2. Changed3 schema fields changedv0.17.8
    • removedInput schema / additionalProperties
      Removed value: -false
    • addedInput schema / properties / rev / maximum
      Added value: +9007199254740991
    • addedOutput schema / properties / section_map / propertyNames
      Added value: +{
      +  "type": "string"
      +}
  3. First observedv0.17.6

TDQS

A4.6/5.0
Behavior5/5

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

Annotations only flag readOnlyHint=false and openWorldHint=true; the description explains why reads are not purely read-only (file writes via to_file, and 'Reading a revision of a page you watch marks it seen'). It adds private-page access rules, that the key never leaves the machine, that a note replaces content when no key is available, and the one-time-link flow.

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?

Front-loaded with the core action, then usage routing, then access and side-effect caveats; nearly every clause carries operational information. It is dense and long for a single paragraph, but not padded.

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?

Output schema exists, yet the description still covers what the agent needs that the schema cannot: permission outcomes, the 'note instead of content' result, the marked-seen side effect, and the parsed fmrl-profile block. Nothing material for correct invocation is missing.

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

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so the schema already carries the per-parameter semantics for id, rev, to_file and replace; the description only reinforces a few of them (rev defaults to latest, #p= key may be part of the link). Baseline 3 applies because the description adds little parameter-level meaning beyond 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 ('Read one fmrl.site page by id or link'), specifies what is returned ('its metadata and the content of one revision, the latest unless rev is given'), and explicitly distinguishes itself from the listing sibling. An agent can select it without opening the 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 concrete triggering contexts ('open a link the person handed you or a page from fmrl_inbox') and names the alternative plus its condition ('to find pages this key published, use fmrl_list'). It also states what to do with the returned one-time link and when to pass replace.

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