Skip to main content
Glama

Lordevo Shop: website checks for agents (x402)

JSON Schema 2020-12 inferred from sample JSON ($0.0021/call)

json_schema_infer
Read-onlyIdempotent

$0.0021 per call (x402, USDC on Base; free trial: add "trial": true or use try_free). [Data utilities] Infers a JSON Schema (2020-12) from 1-1,000 sample documents: types with null and integer vs number, properties, required (keys present in every sample), array items, string formats (date-time, date, email, uri, uuid, ipv4, ipv6) when every value matches, optional enums and strict mode. Input: json (one document or an array of samples; POST for large input), optional samples, enums, strict. Limits: 1 MB, depth 64. Pair with json-validate. Offline.

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>"
    },
    "name": "json_schema_infer"
  }
}

Input Schema

NameRequiredDescriptionDefault
jsonYesJSON text, up to 1 MB (a JSON value is also accepted in a POST body or MCP arguments)
enumsNoyes: add enum for string fields with at most 10 distinct values, each seen at least twice (default no)no
trialNoOptional. true = free if a trial call is left (3 per IP per UTC day), else the payment terms.
strictNoyes: additionalProperties false on every object (default no)no
samplesNoauto (default): a top-level array of objects is a list of samples; yes: the top-level array is a list of samples; no: the whole input is one sampleauto

Output Schema

NameRequiredDescriptionDefault
toolNo
cacheNo
notesNo
statsNo
_trialNoPresent when the call was a free trial call.
schemaNo
providerNo
price_usdNo
sample_countNo
samples_modeNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / trial / description
      Previous value: -"Optional. true = answer free if a trial call is left (3 per IP per UTC day); otherwise you get the payment terms."New value: +"Optional. true = free if a trial call is left (3 per IP per UTC day), else the payment terms."
  2. Changed2 schema fields changed
    • addedInput schema / properties / trial
      Added value: +{
      +  "description": "Optional. true = answer free if a trial call is left (3 per IP per UTC day); otherwise you get the payment terms.",
      +  "type": "boolean"
      +}
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "anyOf": [
      +    {
      +      "required": [
      +        "tool",
      +        "schema",
      +        "sample_count"
      +      ]
      +    },
      +    {
      +      "properties": {
      +        "accepts": {
      +          "type": "array"
      +        },
      +        "error": {
      +          "type": "string"
      +        },
      +        "resource": {
      +          "type": "object"
      +        },
      +        "x402Version": {
      +          "type": "integer"
      +        }
      +      },
      +      "required": [
      +        "x402Version",
      +        "accepts"
      +      ]
      +    },
      +    {
      +      "properties": {
      +        "charged": {
      +          "type": "boolean"
      +        },
      +        "error": {
      +          "type": "string"
      +        },
      +        "message": {
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "error"
      +      ]
      +    }
      +  ],
      +  "properties": {
      +    "_trial": {
      +      "description": "Present when the call was a free trial call.",
      +      "type": "object"
      +    },
      +    "cache": {
      +      "type": "object"
      +    },
      +    "notes": {
      +      "items": {
      +        "type": "string"
      +      },
      +      "type": "array"
      +    },
      +    "price_usd": {
      +      "type": "number"
      +    },
      +    "provider": {
      +      "type": "string"
      +    },
      +    "sample_count": {
      +      "type": "integer"
      +    },
      +    "samples_mode": {
      +      "enum": [
      +        "array_of_samples",
      +        "single_document"
      +      ],
      +      "type": "string"
      +    },
      +    "schema": {
      +      "type": "object"
      +    },
      +    "stats": {
      +      "type": "object"
      +    },
      +    "tool": {
      +      "type": "string"
      +    }
      +  },
      +  "type": "object"
      +}
  3. Added

TDQS

A3.8/5.0
Behavior3/5

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

Annotations already cover the read-only, idempotent, non-destructive, closed-world profile, so the bar is lower. The description adds real behavior: cost model, trial mechanics via try_free, hard limits (1 MB, depth 64), and what strict/enums actually change in the output. It does not describe failure modes or behavior when samples disagree, which keeps it at 3.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

It is a single compressed block that front-loads the price ahead of purpose, and the price duplicates the title. Every remaining clause carries information, but the missing paragraph breaks and price-first ordering make it harder to scan than it needs to be.

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?

An output schema exists, so return values need not be explained, and inputs, limits, pricing, and trial paths are all covered for a moderately complex tool. Edge cases such as too few or conflicting samples are unaddressed, which is the main remaining gap.

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 100%, so all five parameters already carry descriptions, and the parameter-level notes in the description (samples auto-detection, strict, enums, trial) largely restate them. The genuinely additive content is about inference semantics (required = keys in every sample, formats only when every value matches), which is output behavior rather than parameter meaning. Baseline 3 applies.

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 artifact (infers a JSON Schema 2020-12) plus the input basis (1-1,000 sample documents), which is enough for an agent to distinguish it from json_validate, json_query, or json_repair without opening any schema.

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?

Says to pair it with json-validate and flags the offline/pricing context, giving clear positive guidance. It stops short of explicit when-not-use guidance or naming an alternative tool for adjacent jobs, so it is not a full 5.

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