json_validate
Validate a JSON string; on error returns line/column and message.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | JSON document to validate |
Validate a JSON string; on error returns line/column and message.
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | JSON document to validate |
Changes observed during successful MCP inspections.
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
No annotations are provided, so the description carries the full burden. It usefully discloses the error-path return shape (line/column and message), but says nothing about the success-path response, whether it is pure/read-only, or whether validation is strict or lenient (e.g. trailing content).
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?
A single compact sentence with the core action front-loaded and the error behavior appended where it is most useful. No filler.
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 one-parameter, no-annotation, no-output-schema tool this covers the essentials. The remaining gap is the success return value (boolean? parsed object? empty?), which the agent would need to know to consume the result.
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?
Only one parameter, and schema_coverage is 100% with the schema already describing 'text' as 'JSON document to validate'. The description adds nothing beyond that, so the baseline 3 applies.
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 ('Validate a JSON string'), which is immediately distinguishable from siblings like json_format and json_minify. It stops short of explicitly naming those siblings as alternatives, so differentiation is inferred from the verb rather than stated.
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?
Usage is implied by the word 'validate' against a syntax-checking sibling set, but the description never says when to pick this over json_format or json_minify, nor that it performs no reformatting. An agent must infer the routing.
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.