Skip to main content
Glama

Rapier - Markdown Editor & Art

Undo Rapier work

undo
Destructive

Undo your act or turn_id, not both, keeping later work.

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>"
    },
    "name": "undo"
  }
}

Input Schema

NameRequiredDescriptionDefault
actNoAct from edit.
agentNoDisplay only, grants no authority.
turn_idNoWhole turn.
documentYes
operation_idNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • changedInput schema / properties / act / description
      Previous value: -"From edit. Pass act or turn_id."New value: +"Act from edit."
    • 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 / turn_id / description
      Previous value: -"Undo a whole turn. Pass act or turn_id."New value: +"Whole turn."
  2. Changed3 schema fields changed
    • changedInput schema / properties / act / description
      Previous value: -"From edit; pass act or turn_id."New value: +"From edit. Pass act or turn_id."
    • 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 / turn_id / description
      Previous value: -"Undo a whole turn; pass act or turn_id."New value: +"Undo a whole turn. Pass act or turn_id."
  3. First observed

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare destructiveHint=true, idempotentHint=false and readOnlyHint=false, so the risk profile is known. The description adds genuinely new behavior — 'keeping later work' tells the agent that subsequent edits survive the rollback, which is exactly the kind of consequence annotations cannot express. It still omits whether the undo is itself reversible and what happens on a missing or already-undone target.

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?

A single front-loaded sentence with zero filler; the mutual-exclusion rule and the preservation guarantee are both packed in. The extreme compression costs some precision ('your act' is vague about whose act).

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

Completeness3/5

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

For a destructive, non-idempotent mutation with no output schema, the definition covers the essential semantics (scope choice and preserved later work) but leaves error handling and the required document scope unexplained. Adequate to act on, but thin for a rollback tool.

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 coverage is 60%, and the description adds the key cross-parameter constraint that act and turn_id are mutually exclusive. But the required 'document' parameter, plus operation_id and the authority semantics of 'agent', are not explained beyond the schema text. Baseline 3 fits given the partial coverage.

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?

The description names a specific verb (undo) and two precise targets (an act or a turn_id), which is far more than a restatement of the title. 'Rapier work' is internal jargon, but the operation itself is unambiguous. It does not explicitly contrast with the 'edit' sibling it presumably reverses.

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?

'Undo your act or turn_id, not both' gives a real selection rule between the two targeting modes, which is useful usage guidance. However, it never says when to prefer undo over edit/convert, whether prerequisites exist, or what to do if the target no longer exists.

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.