Skip to main content
Glama

Rapier - Markdown Editor & Art

Edit Rapier

edit
Destructive

Use this to change a document the person is working on in Rapier: the change shows at once, marked as yours, and undoes alone. Apply unique exact-text changes atomically as one undoable act (act is its id string), rename with filename, or set Note fields with note. At a moved numeric revision, literal edits apply if untouched since. Whole-document replacement needs the current revision. A conflict returns current context. Decide afresh. Drawings, painting, Water, comments and HTML objects use fenced text. A rapier-draw diagram stays live for the person, who drags its boxes and retypes its labels in the document. Painting needs an open editor and an operation_id, and its result shows the painting.

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
agentNoYour display name on acts. Never grants authority.
labelNoShort description of this edit in history.
fieldsNoNote fields, with note and without changes.
changesNo
turn_idNoGroups acts for undo {turn_id}.
documentYes
filenameNo
revisionYesFrom your latest read or open. A Note's is its sha256.
operation_idNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. 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."
  2. Changed2 schema fields changed
    • addedInput schema / properties / agent / description
      Added value: +"Your display name on acts; never grants authority."
    • addedInput schema / properties / label / description
      Added value: +"Short description of this edit in history."
  3. Added
  4. Removed
  5. Changed5 schema fields changed
    • changedInput schema / properties / fields / additionalProperties
      Previous value: -trueNew value: +false
    • changedInput schema / properties / fields / description
      Previous value: -"Note controls: tags, pinned, archived, trashed, colour, reminder. See rapier://guide."New value: +"Note fields, with note and without changes."
    • addedInput schema / properties / fields / properties
      Added value: +{
      +  "archived": {
      +    "type": "boolean"
      +  },
      +  "colour": {
      +    "enum": [
      +      "",
      +      "red",
      +      "orange",
      +      "yellow",
      +      "green",
      +      "teal",
      +      "blue",
      +      "purple",
      +      "pink",
      +      "brown"
      +    ],
      +    "type": "string"
      +  },
      +  "pinned": {
      +    "type": "boolean"
      +  },
      +  "reminder": {
      +    "description": "App only; {at} in ms.",
      +    "type": [
      +      "object",
      +      "null"
      +    ]
      +  },
      +  "section": {
      +    "maxLength": 48,
      +    "type": "string"
      +  },
      +  "tags": {
      +    "items": {
      +      "maxLength": 128,
      +      "type": "string"
      +    },
      +    "maxItems": 64,
      +    "type": "array"
      +  },
      +  "trashed": {
      +    "type": "boolean"
      +  }
      +}
    • addedInput schema / properties / revision / description
      Added value: +"From your latest read or open; a Note's is its sha256."
    • addedInput schema / properties / turn_id / description
      Added value: +"Groups acts for undo {turn_id}."
  6. Added
  7. Removed
  8. Added

TDQS

A3.7/5.0
Behavior4/5

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

Annotations only declare destructiveHint=true and non-idempotent; the description adds real substance — the change is visible immediately, attributed to the agent, and "undoes alone" as one atomic undoable act, and a conflict returns current context. It never states what is irrecoverably lost despite destructiveHint=true, which keeps it off a 5.

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 front-loaded with purpose, which is good, but the prose is telegraphic run-ons with clipped fragments ("Decide afresh.", "Drawings, painting, Water, comments and HTML objects use fenced text") that cost more parsing effort than the information saved.

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

Completeness4/5

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

For a destructive, 10-parameter, nested-schema tool with no output schema, the description covers the main modes, revision/conflict behavior, undo granularity, and the live-diagram and painting constraints. Gaps remain around the semantics of the changes variants and what a conflict response actually contains.

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?

With 50% schema coverage across 10 parameters, the description compensates well: it assigns meaning to filename (rename), note/fields (Note fields), revision (must be current for replacement; "a moved numeric revision" still accepts literal edits if untouched), operation_id (painting), and the atomicity/unique-match requirement on changes. It does not explain the three changes variants (old/new, after/insert, text) that the schema itself barely describes.

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

Purpose4/5

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

"Use this to change a document the person is working on in Rapier" gives a specific verb and resource, and the description then enumerates the distinct modes: exact-text changes, rename via filename, Note fields via note, whole-document replacement, and painting. An agent can distinguish those modes, though the compressed phrasing makes the boundaries between them take a second read.

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?

Prerequisites and conditional routing are present: painting needs an open editor plus an operation_id, whole-document replacement needs the current revision, and a conflict means "Decide afresh." What is missing is guidance relative to siblings such as undo, read, or open — nothing says when to re-read versus retry versus call undo instead.

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.