Skip to main content
Glama

UK Data: Utilities

json_validate

Read-onlyIdempotent

Parse JSON and validate against a simple JSON Schema (type, required, properties, items, enum, min/max, pattern). (cost: 1 credit)

Input Schema

NameRequiredDescriptionDefault
jsonNostring or object, required
schemaNoobject

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, non-destructive, and openWorld. The description adds genuinely useful context beyond that: the supported validation keyword subset and a 1-credit cost. However, it never says what the call returns (boolean vs. error list) despite there being no output schema, which is the key behavioral fact for a validator.

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

Conciseness5/5

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

A single front-loaded sentence naming the action, the supported keyword scope, and the cost. No filler, no repetition of annotation-declared traits.

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

Completeness3/5

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

For a two-parameter tool with no nesting and no output schema, the description covers inputs and scope adequately, and annotations cover safety. The missing piece is the result shape — an agent cannot tell whether it receives a pass/fail boolean or a list of validation errors, which is central to using a validator correctly.

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

Parameters4/5

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

Schema coverage is 100%, so baseline would be 3, but the schema's own parameter notes are thin and inconsistent — both params are typed as string while described as 'string or object' and 'object'. The description compensates by making clear that the first param is JSON to be parsed and the second is a JSON Schema defining the validation rules.

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?

States a specific pair of verbs (parse, validate) and the resource (JSON against a JSON Schema), and enumerates the supported keyword set. It does not explicitly distinguish itself from siblings, but the sibling list (hash_text, qr_code, ssl_check, etc.) makes collisions unlikely, so a 4 is fair.

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

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no explicit when-to-use or when-not-to-use guidance and no named alternative. The parenthetical keyword list ('simple JSON Schema (type, required, properties, items, enum, min/max, pattern)') implicitly signals a scope limit — no $ref, allOf, or format keywords — but the agent must infer that this is the boundary.

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.

Resources