Skip to main content
Glama

Rapier

Decide a comparison

document.compare_decide
Destructive

Applies the person's decision to this exact comparison and workspace version.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
actionYes
documentYesThe MCP document capability from rapier.open. Keep it private and pass it to later calls.
changeIdsNo
compareIdYes
editorKeyYesThe editor key from the Apps UI resource, held by the host and editor alone.
decisionIdYes
expectedVersionYes
expectedRevisionYes

Output Schema

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

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

C2.6/5.0
Behavior3/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 mutation risk is covered structurally. The description adds the useful constraint that the decision applies only to 'this exact comparison and workspace version,' hinting at the optimistic-concurrency semantics. It stops short of saying what becomes irreversible or what happens on a stale revision.

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

Conciseness3/5

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

A single front-loaded sentence with no filler, which is good. But for an 8-parameter destructive tool it is arguably under-specified rather than concise, so the brevity is not fully earned.

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

Completeness2/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 not be described. But for a destructive, non-idempotent mutation with seven required parameters, two concurrency tokens and an action enum, the one-line description leaves key behavior (staleness handling, changeIds, decisionId role) undocumented.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is only 25%: just 'document' and 'editorKey' are documented. The description's phrase 'this exact comparison and workspace version' vaguely gestures at compareId, expectedVersion and expectedRevision, but it never explains the action enum, changeIds, or decisionId, so the uncovered parameters remain unexplained.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a verb ('applies') and the object of the action (a decision tied to a comparison and workspace version), which is more specific than restating the title. However, it never clarifies what a 'decision' is (accept/reject/close) and does not differentiate itself from the closely related sibling document.review_decide.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

No when-to-use guidance, no prerequisites, and no mention of alternatives such as document.compare (which presumably produces the comparison) or document.review_decide. The agent is left to infer the workflow entirely.

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.