jsonshelf_validate
Validate JSON against a schema. Returns structured errors with JSON Pointer paths and remedies.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| input | Yes | ||
| schema | Yes |
Validate JSON against a schema. Returns structured errors with JSON Pointer paths and remedies.
| Name | Required | Description | Default |
|---|---|---|---|
| input | Yes | ||
| schema | Yes |
Changes observed during successful MCP inspections. Dates show when Glama detected each change.
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations, the description must disclose behavior. It mentions 'Returns structured errors with JSON Pointer paths and remedies,' which partially explains behavior but omits the success case (what is returned when validation passes), whether it throws, or side effects. This is a moderate level of transparency.
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 description is two short sentences with no redundant words. It is front-loaded with the core purpose, and the second sentence adds valuable detail about the return format. Highly concise and well-structured.
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?
The tool has two required parameters, no annotations, and no output schema, so the description alone must explain behavior fully. It leaves out what happens on successful validation, how invalid JSON input (versus schema failure) is handled, and what 'remedies' specifically entail. This is a significant completeness gap for a validation tool.
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%, so the description must explain the parameters. It implies 'input' is JSON and 'schema' is a schema, but does not explicitly describe their format, types, or nuances (e.g., what constitutes valid JSON, schema draft version). The description adds minimal meaning beyond the parameter names.
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?
The description clearly states the tool validates JSON against a schema with the specific verb 'Validate' and identifies its output: structured errors with JSON Pointer paths and remedies. This distinguishes it from sibling tools like jsonshelf_coerce and jsonshelf_repair, which imply different operations.
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 description gives no guidance on when to use this tool versus alternatives. It doesn't mention conditions like 'use when you need to check data against a schema' or contrast with coercion/repair. There is no explicit when/when-not or alternative selection.
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.
Each tool has a clearly distinct purpose: coerce casts values, example generates examples, repair fixes malformed JSON, and validate checks against a schema. No overlaps or ambiguity.
All tools follow a consistent jsonshelf_ prefix followed by a verb (coerce, example, repair, validate). The pattern is uniform and predictable.
With only 4 tools, the server is well-scoped and each tool earns its place. This is an ideal size for a focused JSON schema utility.
The tool set covers the core schema operations: validate, repair, coerce, and generate examples. A potential gap is schema generation from JSON, but the current set is sufficient for most workflows.