Skip to main content
Glama

Rapier

Edit inspected text

document.apply_edits
Destructive

Applies requested changes to inspected passages as one batch, using handles from read_context or find. A pending outcome leaves the batch unapplied.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
noteNoA sentence for the person about this change.
agentNoThis assistant's display name.
editsYesUp to 16 edits, settled together.
labelNoA short name the person sees for this change.
documentYesThe MCP document capability from rapier.open. Keep it private and pass it to later calls.
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
pendingNo
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 carry the safety profile (destructiveHint=true, idempotentHint=false), so the bar is lower. The description adds real value beyond that: all edits settle atomically as one batch, and a pending outcome leaves the batch unapplied. It stops short of noting reversibility or the 16-edit ceiling, but the atomic/pending semantics are useful context.

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, zero filler, and the core action is front-loaded in the first clause. Every element (batch semantics, handle provenance, pending outcome) earns its place.

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?

With an output schema present, return values need no explanation, and the description covers batch atomicity, handle provenance, and the pending-outcome case. It is nearly complete, missing only the relationship to propose_edits and any note about reversibility/undo.

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 every parameter, including placement and per-edit text semantics. The description adds one useful detail — that context_handle values originate from read_context or find — which is exactly the baseline-plus value expected when the schema does the heavy lifting.

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?

States a specific verb and resource ('Applies requested changes to inspected passages as one batch') and ties the operation to a handle source. It is clear against most siblings, but it never distinguishes itself from the closest sibling, document.propose_edits, leaving the apply-vs-propose boundary unstated.

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?

It gives a concrete prerequisite — handles must come from read_context or find — which is genuine workflow guidance. However, it offers no when-to-use/when-not guidance and does not say how this differs from propose_edits or when a change should be proposed rather than applied.

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.