Skip to main content
Glama

Zorqelio — Data Reliability for AI Agents

json_schema_validate

Validate a JSON document against a supplied JSON Schema and return actionable validation errors. Example: {json: '{"quantity":7}', schema: '{"type":"object","properties":{"quantity":{"type":"integer"}}}'}.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "json": "<json>",
      "schema": "<schema>"
    },
    "name": "json_schema_validate"
  }
}

Input Schema

NameRequiredDescriptionDefault
jsonYesJSON document encoded as text.
schemaYesJSON Schema defining the accepted structure of the data.
operationIdNoStable unique request identifier. Reuse it only for an exact retry.
workspaceTokenNoSecret API token for the workspace; keep it private.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changed
    • addedInput schema / properties / json / description
      Added value: +"JSON document encoded as text."
    • addedInput schema / properties / operationId / description
      Added value: +"Stable unique request identifier. Reuse it only for an exact retry."
    • addedInput schema / properties / schema / description
      Added value: +"JSON Schema defining the accepted structure of the data."
    • addedInput schema / properties / workspaceToken / description
      Added value: +"Secret API token for the workspace; keep it private."
  2. First observed

TDQS

A3.7/5.0
Behavior3/5

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

Annotations already declare destructiveHint=false, openWorldHint=false, and idempotentHint=false, so the safety profile is largely carried by structured fields; the description adds the useful fact that the response contains actionable validation errors. It does not discuss authentication via workspaceToken, size limits (the schema allows 256k/64k payloads), or that validation itself does not modify stored data — noteworthy since readOnlyHint=false sits oddly with a pure validation operation, though the description does not directly contradict it.

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?

Two sentences: the capability statement is front-loaded, and the compact inline example earns its space by illustrating the exact call shape. No filler, no restatement of the tool name.

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?

For a four-parameter, no-output-schema tool with full schema coverage and annotations present, the definition covers what it does and roughly what it returns. Remaining gaps are authentication and payload-size behavior, which an agent could need before calling it with large documents.

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 is 3, but the worked example adds real value by demonstrating that both json and schema are passed as JSON-encoded strings rather than objects — a common failure mode. It still says nothing about operationId's retry semantics or workspaceToken's secret-handling expectations beyond what the schema already states.

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 verb+resource pair ("Validate a JSON document against a supplied JSON Schema") plus the deliverable ("actionable validation errors"). It clearly reads as schema validation rather than diffing or formatting, though it never distinguishes itself from the sibling contract_validate, which by name plausibly covers overlapping validation territory.

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?

Usage is only implied: the example shows the intended input shape, which hints at the use case, but there is no explicit "use this when..." statement and no exclusion against alternatives such as json_diff, json_format, or contract_validate. An agent must infer the routing from the name and description alone.

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