Skip to main content
Glama

Copyworthy

Rewrite text to clear the gate

fix_output

Rewrites text to address check_output findings, then re-scans deterministic patterns. Reports the pattern result separately and marks the rewrite for human review because claim review is not rerun.

Cost: about 104 credits (~$0.104) per call.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "text": "<text>"
    },
    "name": "fix_output"
  }
}

Input Schema

NameRequiredDescriptionDefault
textYesThe text to rewrite.
instructionsNoOptional extra constraints for the rewrite (tone, length, things to keep verbatim).
source_factsNoFacts supplied by the caller for comparison: figures, dates, names, and capabilities, one per line. The legacy "verified" label means supported by these supplied facts only, never independently researched or established as true. Omit facts and every claim is at best "unverified".

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior5/5

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

Goes well beyond the annotations (readOnly/openWorld/destructive all false) by disclosing concrete cost (~104 credits per call), the two-step behavior (rewrite then re-scan deterministic patterns), the fact that the pattern result is reported separately, and the crucial limitation that claim review is NOT rerun, so output is flagged for human review. That is exactly the kind of side-effect and trust caveat an agent needs.

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: the first front-loads what the tool does and its review caveat, the second isolates cost. No filler, and the most decision-relevant facts appear first.

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 no output schema, the description does the work of explaining what comes back (a rewrite plus a separately reported pattern result) and the review flag. It could be slightly more complete on the output shape (e.g., whether the rewritten text is returned alongside the original) or failure modes, but nothing critical is missing.

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 already explains text, instructions, and the meaning of source_facts including the legacy 'verified' label. The description adds no additional parameter-level meaning, so the baseline of 3 is appropriate.

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

Purpose5/5

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

Names a specific verb ('rewrites') plus the resource ('text') and the trigger ('to address check_output findings'), which also cleanly separates it from the check_output sibling that only detects problems. An agent can tell what this does without opening the schema.

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?

Usage is clearly implied through the workflow: run check_output, then call this to fix the findings. It stops short of explicit exclusions (e.g., when to hand-edit instead of paying 104 credits) or naming alternatives, so it is strong context rather than full when/when-not guidance.

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.

Resources