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.3/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 burden. It does state that the input is 'discarded', which gives some transparency about side effects (non-persistent). But it does not say what happens on invalid versus valid JSON, what the response value looks like, whether any external calls or rate limits are involved, or whether auth is needed. This leaves critical unknown aspects of the tool's behavior.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is very compact—two sentences with no filler—which scores highly for emotional structure. It front-loads the action and immediately states the side effect. The downside is that it's so concise that it fails to cover important required context, but that is a completeness matter per the dimension definitions; conciseness itself is efficient.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness1/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

The tool has 9 parameters, no required ones, no output schema, and no annotations. The description only says 'Check whether a body is valid JSON' without explaining which parameter represents the body, what sub-parameters may affect the validation, what a result looks like, or any error behavior. For such a multi-input tool, the description is far too thin—it would leave an agent uncertain about how to invoke it correctly.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so the baseline is 3; each parameter already has a description mentioning its role and lifecycle. The tool description adds the vague term 'body' without linking it to a specific parameter, which could mislead an agent into passing 'body' or wondering which of several fields is the JSON. It does not add useful parameter semantics; the useful information is in the schema, not the description, and the inconsistency in terminology is not an improvement.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states a clear action ('Check whether a body is valid JSON') and the resource (JSON), so it's not a tautology. However, it never maps 'body' to a parameter in the schema (the closest is 'json'), and it does not distinguish this tool from several shape-check sibling tools that also validate forms (e.g., 'file-path-ok', 'browser-url-ok'). The ambiguity over what 'body' refers to prevents a higher score.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines1/5

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 the many shape- and format-checking siblings. There is no mention of which of the 9 parameters must be filled, whether any are mutually exclusive, or what context calls for this specific validator. An agent cannot determine, from the description alone, when to select this tool.

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.