Skip to main content
Glama

mechacut

validate_json

Validate a payload against a JSON Schema (draft 2020-12). Returns valid or precise errors.

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": {
      "payload": "<payload>",
      "schema": "<schema>"
    },
    "name": "validate_json"
  }
}

Input Schema

NameRequiredDescriptionDefault
schemaYes
payloadYesany JSON

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.4/5.0
Behavior3/5

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

With no annotations, the description carries the full behavioral burden. It does disclose the return contract at a high level ('valid or precise errors') and the schema dialect, which is useful and beyond the schema fields, but says nothing about read-only safety, whether remote $refs are fetched, error count limits, or the actual error shape.

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 short sentences with zero filler. The purpose is front-loaded and the second sentence delivers the return behavior compactly.

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 simple, deterministic two-parameter validation tool with no output schema, the definition covers the essentials: what goes in, which schema dialect, and the valid/error outcome. What's missing is modest — the error response shape and any draft-version edge cases.

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 50%; the payload parameter is described as 'any JSON' and the schema parameter is undocumented. The description compensates slightly by specifying the accepted JSON Schema draft, which constrains what the schema parameter may contain, but it adds nothing about payload size, encoding, or expected structure.

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 and resource: validate a payload against a JSON Schema, with the dialect pinned to draft 2020-12. That is unambiguous enough for an agent to select it over siblings like json_query or json_patch, though it doesn't explicitly distinguish itself from other validators in the family.

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

Usage Guidelines2/5

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

No when-to-use guidance, no prerequisites, and no named alternatives. The agent must infer from the name and the sibling list that this is the schema-conformance check rather than one of the format-specific validators; the description offers no routing help.

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.