x402-escape-json
Escape JSON: Escapes text for embedding inside a JSON string by JSON-serializing it and stripping the outer quotes 🆓 5 free trial calls per signed wallet
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | No | ||
| input | No |
Escape JSON: Escapes text for embedding inside a JSON string by JSON-serializing it and stripping the outer quotes 🆓 5 free trial calls per signed wallet
| Name | Required | Description | Default |
|---|---|---|---|
| text | No | ||
| input | No |
Changes observed during successful MCP inspections.
Input schema / properties / input / descriptionRemoved value: -"Input to process"Input schema / properties / text / descriptionRemoved value: -"Text to process"Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
No annotations are provided, so the description carries the full burden, and it does disclose the exact transformation ('JSON-serializing it and stripping the outer quotes'), which tells the agent precisely what the output shape will be. It omits error behavior on invalid input, so it is not exhaustive.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The core sentence is single, front-loaded and waste-free. The trailing '5 free trial calls per signed wallet' promo is filler that does not help an agent invoke the tool.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
For a simple pure text transform with no output schema, the description covers what it does and how. However, the duplicated text/input parameters are left unexplained, leaving a real ambiguity an agent must resolve on its own.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema description coverage is 0% with two string parameters ('text' and 'input'), and the description mentions neither by name nor explains why two overlapping input fields exist. It only loosely implies the text parameter, so it fails to compensate for the coverage gap.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
States a specific verb and resource ('Escape JSON', 'Escapes text for embedding inside a JSON string') and even names the mechanism. It does not explicitly distinguish itself from the sibling x402-unescape-json, but the intent is unambiguous 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.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The phrase 'for embedding inside a JSON string' implies the use case, but there is no explicit when-to-use guidance and no mention of the inverse tool x402-unescape-json as the alternative. Usage is inferable rather than stated.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
Add one secure layer between your agents and this server.