Skip to main content
Glama

Rapier - Markdown Editor & Art

Undo Rapier work

undo
Destructive

Use this when the person wants a change of yours in Rapier taken back. Undo one act or one turn (act or turn_id, not both), preserving 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
actNoFrom edit. Pass act or turn_id.
agentNoYour display name on acts. Never grants authority.
turn_idNoUndo a whole turn. Pass act or turn_id.
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: +"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."
  2. Changed1 schema field changed
    • removedInput schema / oneOf
      Removed value: -[
      -  {
      -    "required": [
      -      "act"
      -    ]
      -  },
      -  {
      -    "required": [
      -      "turn_id"
      -    ]
      -  }
      -]
  3. Changed2 schema fields changed
    • addedInput schema / oneOf
      Added value: +[
      +  {
      +    "required": [
      +      "act"
      +    ]
      +  },
      +  {
      +    "required": [
      +      "turn_id"
      +    ]
      +  }
      +]
    • addedInput schema / properties / agent / description
      Added value: +"Your display name on acts; never grants authority."
  4. Added
  5. Removed
  6. Changed2 schema fields changed
    • addedInput schema / properties / act / description
      Added value: +"From edit; pass act or turn_id."
    • addedInput schema / properties / turn_id / description
      Added value: +"Undo a whole turn; pass act or turn_id."
  7. Added
  8. Removed
  9. Added

TDQS

A4/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 safety profile is covered. The description still adds real value beyond them by disclosing that later work is preserved during the undo and that scope is limited to one act or one turn. It does not say whether the undo itself is reversible or how conflicts are handled.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two short sentences with no waste: the usage trigger comes first, then the parameter constraint and preservation guarantee. Every clause carries information.

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, non-idempotent mutation with no output schema, the description covers the trigger, the exclusive parameter choice, and the preservation behavior. Remaining gaps are minor but real: the purpose of document and operation_id, and what the tool returns or how failures surface.

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%, so the baseline is 3. The description usefully adds the 'act or turn_id, not both' mutual exclusion that the schema hints at but never states, though document, operation_id, and agent receive no clarification in the description.

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 states a specific verb (undo) and a precise resource scope (one act or one turn in Rapier), and frames it as reverting 'a change of yours,' which distinguishes it from the edit/convert siblings. It stops short of naming an alternative tool, so it is clear but not sibling-routing.

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 gives an explicit trigger: 'Use this when the person wants a change of yours in Rapier taken back,' plus a selection rule that act and turn_id are mutually exclusive. There is no explicit when-not guidance or named alternative (e.g., re-apply via edit), leaving that to inference.

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.