Skip to main content
Glama

minia2a — hosted x402 API marketplace (HTTP)

x402-escape-special-chars

Escape Special Chars: Escapes characters such as backslash, caret, dollar and brackets in text with a backslash 🆓 5 free trial calls per signed wallet

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": {
      "input": "<input>",
      "text": "<text>"
    },
    "name": "x402-escape-special-chars"
  }
}

Input Schema

NameRequiredDescriptionDefault
textYes
inputYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / required
      Added value: +[
      +  "input",
      +  "text"
      +]
  2. Changed2 schema fields changed
    • removedInput schema / properties / input / description
      Removed value: -"Input to process"
    • removedInput schema / properties / text / description
      Removed value: -"Text to process"
  3. First observed

TDQS

C2.8/5.0
Behavior3/5

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

No annotations exist, so the description carries the full burden; it does disclose the core mechanism ('with a backslash'), which is the key behavioral fact. It says nothing about how already-escaped characters are treated, whether the input is mutated or a new string returned, or what the response looks like, so disclosure is partial at best.

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?

The functional sentence is short and front-loaded, which is good. The appended promo line ('🆓 5 free trial calls per signed wallet') is noise for tool selection and the description is otherwise too thin to earn its brevity.

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?

With no annotations, no output schema, and two fully undocumented required parameters, the definition leaves an agent unable to call the tool correctly without guessing. At minimum the input/text distinction and the return shape need coverage here.

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 0% for two required string parameters named 'input' and 'text', and the description only vaguely maps to 'text'. An agent cannot tell what 'input' is meant to hold or whether it duplicates 'text', and no examples or formats are given to compensate.

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 and resource ('Escapes characters ... in text') and names the character class handled (backslash, caret, dollar, brackets). It is distinguishable from most siblings, though it does not explicitly separate itself from x402-escape-html, x402-escape-json or x402-escape-regex, which handle overlapping concerns.

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?

There is no guidance on when to pick this over the escape-html/escape-json/escape-regex siblings, nor any precondition or exclusion. The agent must infer applicability purely from the listed character set.

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.