Skip to main content
Glama

CallMeter

transform.json_schema

Read-onlyIdempotent

Draft a JSON Schema from a sample object, or validate an instance against a schema, in one call. Call before writes when you need a deterministic schema or a cheap validity check — cheaper and more predictable than asking an LLM to invent types. Inputs: mode=draft|validate|both; sample for draft; schema+instance for validate. Outputs schema and/or validation result. Paid (~2 credits / $0.02) via prepaid key or x402.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
modeNodraft | validate | both. Example: draft
draftNoLegacy boolean alias to request drafting. Example: true
sampleNoSample value to draft a schema from. Example: {"orderId":"A1","total":12.5}
schemaNoJSON Schema document (required for validate/both). Example: {"type":"object"}
instanceNoValue to validate. Example: {"a":1}

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.7/5.0
Behavior5/5

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

Annotations already establish read-only, idempotent, non-destructive behavior, and the description adds meaningful cost information (paid, ~2 credits / $0.02), the batch capability, and the output shape. This is useful context beyond the structured metadata.

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?

Three sentences cover purpose, usage context, mode/input mapping, output, and cost with no filler. The most important information is front-loaded in the first sentence.

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

Completeness5/5

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

Given the moderate complexity (5 parameters, mode enum, output schema), the description covers the overall workflow, parameter selection, output, and cost in a compact way. The output schema and input schema take care of the remaining structural detail.

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?

The schema already covers all 5 parameters, and the description adds a useful mode-to-parameter mapping: 'sample for draft; schema+instance for validate'. It doesn't explain the legacy 'draft' boolean or the 'both' combination in depth, but the schema fills those details.

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?

The description clearly states both actions ('Draft a JSON Schema from a sample object', 'validate an instance against a schema') and says they can happen in one call. It is immediately distinguishable from the sibling tools, none of which cover JSON Schema generation or validation.

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?

The 'Call before writes' guidance gives an explicit use case, and the comparison to LLM inference tells an agent when this tool is a better fit. It does not explicitly cover exclusion cases or name alternatives, so it misses the top criterion.

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