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 must carry the behavioral burden. It discloses that 'The body is discarded,' which indicates no persistence, but it does not mention any other side effects, permissions, or limitations. The schema descriptions cover some behaviors (e.g., 'no disk access'), but the tool description itself is nearly silent on how the tool behaves or what side effects it has.

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 a single sentence, which is concise and front-loaded with the primary purpose. However, it is so terse that it omits crucial details, making it underspecified rather than efficiently informative. It earns a middle score for brevity but loses points for content.

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?

With 9 optional parameters and no required fields, the description is far too incomplete. It does not explain how to invoke the tool, what return value to expect (no output schema exists), or how to select the correct parameter for JSON validation. The description's ambiguity around 'body' and its silence on the other parameters leave an agent without enough context to use the tool 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?

The schema provides 100% coverage with descriptive text for each parameter, so the baseline is 3. The tool description does not add useful parameter semantics; instead, the term 'body' is ambiguous and not mapped to any schema parameter. It does not clarify which parameter represents the JSON to validate, nor does it explain how multiple parameters should be handled.

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 specific verb and resource ('Check whether a body is valid JSON'), which gives a basic sense of purpose. However, it is ambiguous about what 'body' refers to and does not differentiate this from the many sibling shape-check tools. The presence of 9 unrelated parameters (url, city, zone, etc.) suggests the tool may have broader validation scope, which the description fails to mention.

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?

There is no guidance about when to use this tool versus alternatives. The description does not mention any scenario, exclusions, or related tools. An agent is left to infer the usage from the name alone, which is insufficient given the diversity of sibling tools.

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.