Skip to main content
Glama

cleanup_text

Strip machine typography from text without rewriting a word: smart quotes, em dashes and the rare glyphs AI models overuse become plain keyboard characters. Returns the cleaned text. It does not rewrite your words and will not make text read less AI.

Input Schema

NameRequiredDescriptionDefault
textYesThe text to clean

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.7/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does real work: it declares the operation is character-level normalization, that it preserves wording, that it returns the cleaned text, and that it will not defeat AI detection. It omits idempotency and how whitespace/formatting is handled, but the scope boundaries are unusually explicit.

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

Conciseness4/5

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

Front-loaded with the core action and sized appropriately for a one-parameter tool. The second and third sentences restate the same no-rewrite guarantee ('without rewriting a word' / 'it does not rewrite your words'), which is minor 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?

For a simple single-string transform with no output schema, the description covers the operation, the return value, and the guarantees, which is nearly everything an agent needs. Only edge behavior (idempotency, handling of already-clean or mixed-encoding input) is left unstated.

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 coverage is 100% with a single documented 'text' parameter, so the baseline is 3. The enumeration of character classes adds some semantic flavor about what the transform touches, but every parameter is already explained in the schema.

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 (strip) and resource (machine typography) and enumerates concrete targets: smart quotes, em dashes, rare overused glyphs. It clearly contrasts with the scan-oriented siblings by being a transformation, though it never names or routes against them explicitly.

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?

Usage is implied (you have text with machine typography and want plain characters), and the description draws a useful boundary that it will not rewrite words or lower AI-detection scores. However, it gives no explicit when-to-use vs. the sibling scanning tools or prerequisites, leaving routing to inference.

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.