Skip to main content
Glama

SiteCheck Agent Intel & Dev

Agent Intel Agent Json Schema Guard

agent_intel_agent_json_schema_guard
Read-only

Checks an agent's JSON output against a JSON Schema (draft 2020-12 keywords: type, properties, required, additionalProperties, items, enum, const, length, pattern, minimum/maximum, item counts). Returns valid yes/no, each error with its path and the value with disallowed fields removed. $ref, allOf/anyOf/oneOf, if/then and format return an error instead of passing silently. Price: $0.001 in USDC per successful call, paid with x402 (Base, Solana or Arc); failed calls are not charged.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
valueYesThe JSON value to check (any JSON)
schemaYesThe JSON Schema

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
noteNo
validNo
errorsNo
sourceNo
checkedAtNo
sanitizedNo
removedFieldsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior5/5

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

Goes far beyond the read-only/open-world annotations by disclosing the return contract (valid yes/no, error paths, sanitized value), unsupported keyword behavior (returns error instead of silently passing), and payment semantics including that failed calls are not charged.

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?

Front-loads the core operation, then packs supported keywords, return behavior, unsupported-feature behavior, and pricing into a compact block. The keyword list is long but earns its place by defining the validation boundary.

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

Completeness4/5

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

Complete enough for an agent to call correctly: purpose, supported keyword set, return shape, limitations, and payment model are covered. The output schema exists, so return-value detail is supplemental rather than required, and no major gap remains.

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 coverage is 100%, so the input schema already documents that 'value' is any JSON and 'schema' is the JSON Schema. The description reinforces the schema context but adds no syntax, formatting, or parameter-specific meaning beyond the structured fields.

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

Purpose5/5

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

States a specific verb and resource: checks an agent's JSON output against a JSON Schema. It also names the supported draft and keyword set, distinguishing clearly what the tool validates.

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

Usage Guidelines4/5

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

Implies use for JSON Schema validation and explicitly lists which schema keywords are supported and which unsupported features will return an error. It does not name alternative sibling tools or when-not-to-use cases, but the supported/unsupported boundary is clear.

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