Skip to main content
Glama

Rapier - Markdown Editor & Art

Edit Rapier

edit
Destructive

Apply unique exact-text changes atomically and return an undoable act, rereading on conflict, with fenced blocks as their guide says and painting only in an open editor with operation_id.

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": {
      "document": "<document>",
      "revision": "<revision>"
    },
    "name": "edit"
  }
}

Input Schema

NameRequiredDescriptionDefault
noteNo
agentNoDisplay only, grants no authority.
labelNo
fieldsNoNote fields, without changes.
changesNo
turn_idNoGroups acts for undo.
documentYes
filenameNo
revisionYesFrom the latest read or open, sha256 for a Note.
operation_idNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed6 schema fields changed
    • changedInput schema / properties / agent / description
      Previous value: -"Your display name on acts. Never grants authority."New value: +"Display only, grants no authority."
    • changedInput schema / properties / fields / description
      Previous value: -"Note fields, with note and without changes."New value: +"Note fields, without changes."
    • changedInput schema / properties / fields / properties / reminder / description
      Previous value: -"App only, with {at} in ms."New value: +"App only, at in ms."
    • removedInput schema / properties / label / description
      Removed value: -"Short description of this edit in history."
    • changedInput schema / properties / revision / description
      Previous value: -"From your latest read or open. A Note's is its sha256."New value: +"From the latest read or open, sha256 for a Note."
    • changedInput schema / properties / turn_id / description
      Previous value: -"Groups acts for undo {turn_id}."New value: +"Groups acts for undo."
  2. Changed3 schema fields changed
    • changedInput schema / properties / agent / description
      Previous value: -"Your display name on acts; never grants authority."New value: +"Your display name on acts. Never grants authority."
    • changedInput schema / properties / fields / properties / reminder / description
      Previous value: -"App only; {at} in ms."New value: +"App only, with {at} in ms."
    • changedInput schema / properties / revision / description
      Previous value: -"From your latest read or open; a Note's is its sha256."New value: +"From your latest read or open. A Note's is its sha256."
  3. First observed

TDQS

B3/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true, readOnlyHint=false and idempotentHint=false, so the description needn't restate the safety profile. It goes meaningfully beyond them by disclosing atomic application, that the result is an undoable act, that conflicts trigger a reread, and that an open editor plus operation_id are required — real behavioral context for a tricky mutation.

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?

It is a single sentence with the core action front-loaded, so it is not bloated. But the back half is densely elliptical ("fenced blocks as their guide says", "painting") and forces the reader to decode rather than absorb; clarity is traded away for brevity.

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

Completeness2/5

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

For a 10-parameter, destructive, nested-schema mutation with no output schema, the description covers only the atomic/undo/conflict core. It omits that the tool can also rewrite note metadata via `fields` and says nothing about how revision staleness or turn_id grouping affect outcomes — gaps an agent cannot recover from the structured data alone.

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

Parameters2/5

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

Schema coverage is only 40% across 10 parameters, and the description fills little of the gap: it never explains the three mutually exclusive change shapes (old/new, after/insert, bare text), nor revision, turn_id, note, label or filename. The one genuine addition is the operation_id prerequisite. The large nested `fields` object (tags, colour, pinned, trashed, archived) is not mentioned at all.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

"Apply unique exact-text changes atomically" gives a verb and a resource, but the wording is cryptic ("unique exact-text", "painting") and never plainly states that this edits the text of a note/document. The trailing clause "with fenced blocks as their guide says" points at another tool's documentation rather than clarifying scope, and no sibling is named to contrast against read/show/undo.

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

Usage Guidelines3/5

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

"painting only in an open editor with operation_id" implies a precondition (the document must be open, an operation_id supplied), which is useful directional guidance. However there is no explicit when-to-use vs when-not, no mention of undoing or of reading first to obtain a revision, and no alternatives are named despite six siblings.

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.