Skip to main content
Glama

Agent Toolkit (all-in-one)

Messy-to-Clean Converter: turn any messy text, email, chat, page or PDF into strict JSON that matches your schema

structure_to_json

[Web Reader Pro] Send text (or a url) and a JSON Schema (or a simple field list). Returns data that is validated against the schema: numbers cleaned, dates as YYYY-MM-DD, enums matched, required fields checked; if the first try fails it is fixed and re-checked automatically. Each field is marked found_in_source, derived or empty, and missing values are null instead of guesses. Not charged if valid JSON cannot be produced. Price 0.01 USDC per call; first 3 calls per day free.

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

Input Schema

NameRequiredDescriptionDefault
urlNoInstead of text: a page, PDF, Word or Excel URL
textNoThe messy input (max 200,000 chars). Or use url.
schemaYesJSON Schema ({type: object, properties: {...}}) or a field list like ["name", {"name": "total", "type": "number"}]
strictNoDefault true: error (no charge) if output cannot match the schema
paymentNoOptional x402 payment (base64 X-PAYMENT header value). Not needed while the free daily sample lasts.
instructionsNoOptional extra rules

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

With no annotations, the description carries the full burden and does so: it discloses validation and automatic retry/fix, per-field provenance marking (found_in_source/derived/empty), null instead of guesses, no charge on failure, price of 0.01 USDC, and three free calls per day. These are exactly the behavioral and cost facts an agent needs before invoking a paid mutation-like tool.

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?

The most important facts, the input-output contract and the validation guarantee, come first, and pricing is placed last. It is a dense single paragraph with semicolon-separated clauses that borders on long, but nearly every clause adds usable information.

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?

For a six-parameter tool with a nested schema object and no output schema, the description explains the return contract (validated JSON, per-field provenance, nulls) and the cost/failure model. Nothing essential to calling it correctly appears to be missing.

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 the baseline is 3, but the description adds real meaning: it clarifies the schema parameter also accepts a plain field list, explains that strict causes an uncharged error, and notes payment is unnecessary while the free daily sample lasts. That goes beyond the schema's own text for at least two parameters.

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 gives a specific verb and resource: turn messy text, email, chat, page or PDF into strict JSON matching a supplied schema, with validation and repair. That is concrete enough to separate it from generic readers like read_url or extract_tables without opening the 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?

It states the inputs to supply (text or a url, plus a JSON Schema or a simple field list) and explains the strict flag's default behavior. It does not explicitly say when to prefer it over siblings such as extract_fields, so guidance is clear but lacks exclusion rules.

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.