Skip to main content
Glama

Extract structured data

extract
Read-only

Give it a URL or text plus either a JSON schema or a simple list of field names, and it returns JSON that matches. Good for turning product pages, job posts, invoices, articles or profiles into structured records. Missing values come back as null instead of being made up. Paid tool: $0.01 per call in USDC via x402 at POST https://x402-tools.com/v1/extract. Calling it here returns the endpoint, price and how to pay.

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": "extract"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlNoURL to extract from (use this or text).
textNoText to extract from, up to 25000 characters.
fieldsNoSimple alternative to schema: a list of field names, or an object of field name to type/description.
schemaNoA JSON schema for the output object.
instructionsNoOptional extra guidance, e.g. 'prices in EUR'.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior5/5

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

Beyond readOnlyHint and openWorldHint, it discloses two traits that materially change agent behavior: absent values return null rather than being fabricated, and the operation is paid at $0.01 per call via x402, with a local call returning only the endpoint, price, and payment instructions rather than performing extraction. That last point is exactly the kind of non-obvious runtime behavior annotations cannot express.

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?

It is front-loaded with the core contract, then examples, then the null behavior, then payment mechanics; every sentence carries information an agent needs. The final sentence compresses pricing, payment rail, endpoint, and call-here behavior into one dense clause, which is efficient but slightly overloaded.

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?

There is no output schema, yet the description states the return shape (JSON matching the supplied schema or field list) and the null convention, covering the main ambiguity for a nested-object input. Remaining minor gaps, such as which of url/text is mandatory when none are marked required, are partially implied by 'URL or text' but never stated outright.

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 the five parameters are already documented, and this sets the baseline at 3. The description reinforces the either/or relationship between url and text and between fields and schema, and adds the null-for-missing-values contract, but it introduces no format or syntax detail the schema lacks.

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 opening sentence names a concrete input pair (URL or text plus a JSON schema or field list) and a concrete output (JSON matching that shape), which is a specific verb-plus-resource statement. It is immediately distinguishable from summarize, markdown, or translate, which transform content rather than structure it into records.

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 description gives clear positive context with concrete examples of when to reach for it: product pages, job posts, invoices, articles, profiles turned into structured records. It stops short of stating when not to use it or naming an alternative sibling (e.g., summarize for prose reduction, markdown for page conversion), so it lands just below the top band.

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