Skip to main content
Glama

mechacut

text_decode

Mojibake repair: UTF-8-as-Latin-1 sequences (Café -> Café) fixed only when provably safe; reports repairs and suspicion, never guesses. Free.

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": "text_decode"
  }
}

Input Schema

NameRequiredDescriptionDefault
textYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.4/5.0
Behavior3/5

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

With no annotations, the description carries the full burden, and it does disclose the most important trait: repairs happen "only when provably safe" and it "never guesses," which tells the agent failures are reported rather than silently mangled. However, it omits whether the call can error, whether the call is idempotent, and how "suspicion" is signalled, and "Free" is a cost hint rather than behavioral context.

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?

One dense sentence, front-loaded with the domain (mojibake) and the transformation, followed by the safety policy and output hint. The inline example does heavy lifting in a few characters; the trailing "Free." is a slightly incongruous fragment but is not wasteful for cost-aware agents.

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

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a one-string transformer this is close: purpose, safety policy, and the fact that repairs and suspicion are reported are all present. But with no output schema and no annotations, the description never says what the response actually looks like (repaired text plus a flag list? a status enum?), which is the main gap an agent would want closed.

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 0% and the single parameter is documented only as an untyped-in-name "text" property. The inline Café example implies the parameter should be the raw, possibly corrupted string rather than a pre-cleaned one, but the description never says so directly, leaving the one parameter's expected form largely inferred.

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?

"Mojibake repair: UTF-8-as-Latin-1 sequences (Café -> Café)" is a specific verb-plus-condition with a concrete before/after example, which usefully narrows the generic name text_decode to one exact transformation. It does not distinguish itself from plausible siblings such as text_normalize or text_sanitize, so an agent cannot tell from this text alone which one to reach for when the corruption is not UTF-8-as-Latin-1.

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 rather than stated: the agent must infer "use this when text shows mojibake." There is no explicit when-not guidance (e.g., genuine Latin-1 source text, double-encoded input, or general normalization) and no named alternative among the many text_* siblings, leaving the selection decision 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.