Skip to main content
Glama

Rapier

Replace the working document

document.open_text
Destructive

Replaces the working document when the person requests a new document here, retiring old handles and comparisons.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
textYesThe whole new document.
agentNoThis assistant's display name.
docKindNomarkdown, text or code; the filename decides when absent.
documentYesThe MCP document capability from rapier.open. Keep it private and pass it to later calls.
filenameNoIts name; the extension sets the kind.
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
docKindNomarkdown, text or code; the filename decides when absent.
outcomeYes
changeIdNo
documentNoThe MCP document capability from rapier.open. Keep it private and pass it to later calls.
filenameNo
reviewIdNo
editCountNo
structureNo
documentIdNo
transactionNo
representationNo
documentRevisionNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

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 adds genuine side-effect context beyond the annotations by noting it 'retires old handles and comparisons', which tells the agent prior handles are invalidated.

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?

A single well-formed sentence that front-loads the core action ('Replaces the working document') followed by the triggering condition. No filler or redundancy.

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 and annotations carrying the destructive/safety profile, the description need not explain return values. It covers what the tool does, when to use it, and key side effects, leaving only sibling differentiation as a minor gap.

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%, and the schema richly documents all six parameters, including operation_id retry/replay semantics and docKind enum behavior. The description adds no parameter-level meaning beyond the schema, 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+resource ('Replaces the working document'), which is clear about the operation. However, the tool name 'document.open_text' and title create a mild naming mismatch with 'replace', and the description does not clearly distinguish this from siblings like document.create_return or document.save.

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 usage trigger ('when the person requests a new document here'), which is clear context for selection. It stops short of naming alternatives (e.g., create_return or apply_edits) or stating when not to use it, so it falls short of a 5.

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.