Skip to main content
Glama

x402_schemaguard_post_v1_validate

Validate JSON data against a JSON Schema using common keyword checks to catch payload errors before processing.

Instructions

schemaguard — JSON Schema validation (common keyword subset) [POST /v1/validate] $0.005 USDC on eip155:8453. Example: {"schema":{"type":"object"},"data":{"name":"x"}}

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "x402_schemaguard_post_v1_validate"
  }
}

Input Schema

NameRequiredDescriptionDefault
bodyNoJSON body for POST/PUT/PATCH/DELETE
queryNoQuery parameters, e.g. {base:'USD', quote:'EUR'}
restartNoExplicitly re-run a previously failed/unknown operation. Never set for unknown outcomes unless you know the paid call did not complete.
operationIdNoDurable operation id for this intent. Supply a stable id (e.g. your job/run id) to dedupe retries; omit to derive one from the arguments.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.1

TDQS

B3.3/5.0
Behavior3/5

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

With no annotations supplied, the description carries the full behavioral burden, and it does disclose two things an agent genuinely needs: this is a paid call costing $0.005 USDC on eip155:8453, and support is limited to a common keyword subset of JSON Schema. It does not cover error behavior for invalid schemas, the response payload, or the retry/dedupe implications of the restart and operationId parameters, all of which matter for a paid endpoint.

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?

A single dense line that front-loads the tool's purpose, then the endpoint, price, and a minimal example. Every element earns its place for a paid API call, though the punctuation-heavy packing makes it slightly harder to parse at a glance than separate sentences would be.

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 conceptually simple validation tool with a fully documented 4-parameter schema and no output schema, the description covers the essentials of how to call it. It leaves gaps around what a validation result looks like, how unsupported keywords are treated, and how the paid/retry mechanics work, which an agent would want before spending USDC.

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 example adds real meaning the schema cannot: the body is typed only as a free-form object with additionalProperties {}, and the example {"schema":{"type":"object"},"data":{"name":"x"}} reveals the required schema/data key structure inside that body. That is a concrete clarification beyond the structured fields.

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?

The description states a specific verb and resource: JSON Schema validation, with the qualifier '(common keyword subset)' and an explicit endpoint '[POST /v1/validate]'. An agent can immediately tell this validates a schema against data rather than doing anything the sibling tools (validation of IDs, sessions, image labeling, etc.) do. It stops short of 5 only because differentiation is implicit in the subject matter rather than stated against a named alternative.

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?

There is no statement of when to use this tool versus alternatives, no prerequisites, and no when-not guidance. The example shows a call shape but not the decision criteria, and nothing explains what qualifies as the 'common keyword subset' so an agent cannot tell whether its schema will be supported.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools