Skip to main content
Glama

check_rewrite_preservation

Read-onlyIdempotent

Compare before and after text to verify that numbers, URLs, formulas, code spans, and negation or condition markers remain preserved. Flag missing or changed critical tokens with deterministic checks.

Instructions

Check before/after text blocks for preserved numbers, URLs, formulas, code spans and negation/condition markers. Deterministic token checks do not prove semantic preservation.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "check_rewrite_preservation"
  }
}

Input Schema

NameRequiredDescriptionDefault
afterNo
editsNo
beforeNo
reasonNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already declare readOnly, idempotent, non-destructive, closed-world behavior. The description adds that checks are deterministic token checks and warns this does not prove semantic preservation, which is useful scope and limitation context; it does not describe output or failure behavior.

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, front-loaded purpose and a single caveat; no redundant wording.

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?

For a four-parameter tool including an edits array and no output schema, the definition leaves input semantics and return behavior unexplained. The purpose and caveat are covered, but an agent lacks enough context to call it confidently.

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 coverage is 0% and four parameters exist, but the description only loosely identifies 'before' and 'after' as text blocks. It says nothing about the edits array, edit ids/reasons, optionality, or how the parameters interact.

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?

Uses a specific verb ('Check') and names the resource ('before/after text blocks') plus the exact token classes inspected. It does not name a sibling as an alternative, so differentiation is limited, but the operation itself is clear.

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 explicit when-to-use guidance, prerequisites, or when-not conditions; it does not mention rewriting workflows or alternatives despite related sibling checks. Usage is only implied by the before/after framing.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.