x402-is-json
Is JSON: Validate whether a string is valid JSON. Provide value or input; returns true if it parses, false otherwise.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| input | No | Input to process | |
| value | No | Value to process |
Is JSON: Validate whether a string is valid JSON. Provide value or input; returns true if it parses, false otherwise.
| Name | Required | Description | Default |
|---|---|---|---|
| input | No | Input to process | |
| value | No | Value to process |
Changes observed during successful MCP inspections.
Input schema / properties / inputAdded value: +{
+ "description": "Input to process",
+ "type": "string"
+}Input schema / properties / valueAdded value: +{
+ "description": "Value to process",
+ "type": "string"
+}Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations, the description carries some burden but does disclose the key behavioral trait: it returns true if the string parses and false otherwise, which is valuable given no output schema. It does not mention error behavior, size limits, or that it is a pure read-only check, so the disclosure is partial.
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?
Two short sentences, front-loaded with the purpose and followed by the return semantics. No filler, though the duplicate-parameter ambiguity is left unaddressed rather than resolved efficiently.
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 trivial single-string validator, the description covers what it does and what it returns, which is adequate with no output schema. However, with zero required parameters and two interchangeable-optional inputs, it leaves the agent guessing how to actually supply the string.
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 coverage is 100%, so the baseline is 3, but the schema descriptions are generic ('Input to process'/'Value to process'). The description adds a little value by clarifying that either 'value' or 'input' can carry the string, though it doesn't explain why two accept-any aliases exist or whether one takes precedence.
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 (validate) and resource (a string as JSON) with a clear outcome. It does not, however, distinguish itself from the sibling x402-json-validate, which appears to serve the same purpose.
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?
No guidance on when to use this versus x402-json-validate or other JSON tools. Usage is only implied by the name and the sentence itself.
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.