Skip to main content
Glama

validate-json

Check whether a body is valid JSON. The body is discarded.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
refNoGit ref name; discarded after the shape check
urlNoHTTPS URL to normalize or cite
cityNoCity name for a public weather hint; discarded after the call
feedNoPublic RSS or Atom URL; titles discarded
hostNoPublic hostname
jsonNoJSON text to validate; discarded after the check
pathNoFile path to check; no disk access
zoneNoIANA timezone name
queryNoSearch text; discarded after the length check

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. First observed

TDQS

C2.6/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full behavioral disclosure burden. It does disclose that the body is discarded, but it omits any outcome for invalid JSON, return behavior, error handling, and those schema-level side-effect hints such as 'no disk access' are not carried into the tool description.

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 description is very short and front-loaded, which is structurally clean. But for a tool with nine parameters and no output schema, this brevity under-specifies the operation; a genuinely effective description would compensate for its brevity with clarifying examples or parameter mapping.

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?

Given the nine-parameter schema and the absence of an output schema, the description should at least identify the required input (the `json` field) and state what the result of valid/invalid JSON is. It does neither, leaving the agent to guess how to invoke the tool despite well-described parameters in the schema.

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 coverage is 100%, which normally warrants a baseline of 3, but the description adds no extra meaning and introduces the unbounded word 'body' rather than mapping to the actual `json` parameter. The per-parameter schema descriptions were not carried here, and the tool description does not help disambiguate why a JSON validator accepts `url`, `city`, `host`, `zone`, and `query`.

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?

The description uses a concrete verb ('check whether') and a specific object ('a body is valid JSON'), so the core purpose is clear and distinct from the shape-checking sibling tools. However, the description refers to a 'body' while the only matching input property in the schema is named `json`, which creates mapping ambiguity for an agent.

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 when-to-use or when-not-to-use guidance, and no alternative tools are mentioned. An agent is not told which parameter holds the 'body' JSON text or how this tool differs from sibling validation tools such as `wiki-title-ok`, `jira-key-shape`, or `github-repo-shape`.

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.