Skip to main content
Glama

Rapier

Undo your change

document.undo_agent_change
Destructive

Reverses a requested agent change while preserving later human work. Select change_id or the latest change under this call's agent name.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
agentNoThis assistant's display name.
documentYesThe MCP document capability from rapier.open. Keep it private and pass it to later calls.
change_idNoThe changeId to reverse. Omit it to reverse the latest change under this call's agent name.
operation_idYesA fresh random id for this call (a UUID works). Resend it only to retry this call; the retry replays the recorded result.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
causeNo
reasonNo
outcomeYes
changeIdNo
documentNoThe MCP document capability from rapier.open. Keep it private and pass it to later calls.
reviewIdNo
editCountNo
structureNo
documentIdNo
transactionNo
representationNo
documentRevisionNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior4/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 safety profile is covered. The description adds genuinely non-obvious behavior: the reversal is selective and preserves later human work, which is important context an agent could not infer from the schema. It does not cover auth requirements or whether the undo is itself reversible, keeping it below 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.

Conciseness5/5

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

Two tight sentences with the core action front-loaded and the parameter selection rule second. No filler, no repetition of the title.

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?

An output schema exists, so return values need no explanation, and annotations carry the safety profile. The description covers the action and the change-selection rule; only secondary details (auth, whether the undo itself can be reverted) are absent, which is acceptable at this complexity.

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 description coverage is 100%, so the schema already documents all four parameters, including the change_id omit-default behavior that the description restates. The description adds no syntax or format detail beyond what the schema provides, so the baseline 3 applies.

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 ("Reverses") and resource ("a requested agent change"), and adds a scope qualifier ("preserving later human work") that separates it from generic edit siblings like apply_edits or commit. It is clear what the tool does, though it never names an explicit alternative sibling.

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?

"Select change_id or the latest change under this call's agent name" gives selection guidance for the target, but there is no explicit when-to-use/when-not guidance or comparison to siblings such as show_changes or commit. Usage is implied rather than stated.

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.