Skip to main content
Glama

extract_json

Read-only

Paid ($0.015 USDC via x402). Messy text + JSON Schema in, clean JSON out. Uses a small LLM (Cloudflare Workers AI, Llama 3.1 8B, JSON mode) when available, else a deterministic key:value/regex extractor; the result is type-checked against your schema and missing fields are null. Limits: text <= 6,000 chars, schema <= 30 top-level properties (flat objects, arrays of scalars); the model can misread ambiguous text, so check important values. Params: text, schema (JSON string), mode=auto|heuristic. GET query or POST JSON body. Calling this tool returns the exact HTTP request and x402 payment requirements; pay with any x402 client to get the data.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
modeNo
textYesinput text, max 6000 chars
schemaYesJSON Schema (type object with properties) as a JSON string

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior5/5

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

Far exceeds what annotations provide. Discloses pricing ($0.015 USDC via x402), that calling returns an HTTP request and payment requirements rather than data, the LLM-vs-deterministic fallback, that results are type-checked with nulls for missing fields, char/property limits, and an accuracy caveat. This is exactly the behavioral context an agent needs.

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?

Dense but front-loaded with the cost and the input/output contract; each sentence carries distinct information (payment, fallback, limits, caveat, params, transport). Slightly run-on and packed, but virtually no wasted words.

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 paid x402 tool with an LLM/heuristic pipeline and no output schema, the description covers the critical gaps: the payment round-trip, output shape (clean JSON, nulls for missing), limits, and reliability caveat. Nothing essential for correct invocation is 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?

With 67% schema coverage the description still adds meaning: it enumerates the params (text, schema as JSON string, mode=auto|heuristic) and adds constraints absent from the schema, notably 'schema <= 30 top-level properties (flat objects, arrays of scalars)' and the 6,000-char text cap. Not fully exhaustive, but it goes beyond the schema.

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 resource ('Messy text + JSON Schema in, clean JSON out') and names the exact mechanism (LLM with heuristic fallback). An agent immediately understands this converts unstructured text into schema-conformant JSON, which no sibling tool does.

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

Usage Guidelines3/5

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

Explains the internal auto/heuristic mode behavior and invocation transport ('GET query or POST JSON body'), but gives no explicit when-to-use guidance or criteria for choosing mode=auto vs mode=heuristic. Implied usage only, adequate but not directive.

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