Skip to main content
Glama

Comment on words in a fmrl.site page

fmrl_comment

Start a comment thread on quoted words in a Markdown page, sealing comments with the page key so they appear in the page’s comment panel for editors.

Instructions

Start a comment thread on words in a page this key may edit: a public Markdown page, or a private page whose key this machine holds, where the comment is sealed with that key here and the server never reads it. It shows in the page's comment panel for everyone who may edit the page, under this key's name. quote is the page's words, as the page reads; Markdown markup and line breaks in it are forgiven. When the words are on the page more than once, prefix or suffix (a few words just before or after them) or occurrence picks the place, and without one the comment is refused with each place listed by its nearest heading. Words that are not on the page are refused with the passages most like them. Every comment has words; there are no bare highlights. Commenting watches the page, so replies appear in fmrl_inbox.

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>",
      "quote": "<quote>",
      "body": "<body>"
    },
    "name": "fmrl_comment"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesA page id or link; a private page's key (#p=) stays on this machine.
bodyYesThe comment (2000 characters at most).
quoteYesThe page's words the comment is about (2000 characters at most).
prefixNoA few words just before the quote, to pick one of several places.
suffixNoA few words just after the quote, to pick one of several places.
base_revNoThe revision you read; the comment is refused if the page has a newer one. Left out, the current revision.
occurrenceNoWhich place, counted from the top of the page, when the words are there more than once: a refusal lists them by number.

Output Schema

NameRequiredDescriptionDefault
idYes
revYes
urlYes
quoteYes
headingYes
watchingYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.18.2

TDQS

A4.6/5.0
Behavior5/5

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

Beyond the annotations (which only say it is a non-read-only, non-idempotent, non-destructive open-world write), the description discloses that the comment is sealed locally with the key and never read by the server, and that it is visible to everyone who may edit the page under this key's name. It also surfaces a non-obvious side effect — commenting watches the page, so replies land in fmrl_inbox — and describes refusal modes in detail (ambiguous matches listed by nearest heading, off-page quotes answered with similar passages, stale base_rev refused).

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?

Purpose, permission scope, and encryption model are front-loaded before the matching mechanics, and nearly every sentence carries new information. It is a single dense run-on paragraph, so the failure/refusal rules are harder to scan than they could be, but there is little filler.

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 write tool with seven parameters and an output schema, the description covers what an agent needs before calling: permission scope, key handling, confidentiality, disambiguation strategy, refusal behavior, and the watch side effect. Return values are correctly left 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 coverage is 100%, so the schema already documents all seven parameters, but the description adds real meaning: quote matching forgives Markdown markup and line breaks, prefix/suffix and occurrence are place-selectors rather than free text, and omitting them causes a refusal listing each location by heading. base_rev is left to the schema, which is the only notable gap.

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 and resource (start a comment thread on words in a page) plus an explicit permission scope: pages this key may edit. It further distinguishes the operation from highlighting ("Every comment has words; there are no bare highlights") and from replying ("replies appear in fmrl_inbox"). An agent can tell what this does 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 Guidelines4/5

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

It states the precondition for use (a public Markdown page, or a private page whose key this machine holds) and explains when the optional disambiguators apply: prefix/suffix or occurrence when the quoted words appear more than once. It does not explicitly name fmrl_reply as the tool for continuing a thread, leaving that routing to inference from "replies appear in fmrl_inbox".

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