Skip to main content
Glama

x402 Structured Data & Headless Scraper

preview_extract

Read-only

FREE schema & DOM preview (3 calls/hour per IP). Runs the exact same headless Chromium + LLM extraction pass as paid runs so null/missing fields match 1:1, while masking populated values and returning a 300s preview_token to eliminate snapshot drift.

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": {
      "target_schema": "<target_schema>"
    },
    "name": "preview_extract"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlNoPublic HTTP/HTTPS URL to test extraction against.
dynamicNoUse headless Chromium (default true). Set false for static HTML fetch.
wait_msNoOptional extra delay in ms (0-3000) after network idle.
raw_textNoOptional raw text snippet instead of a URL.
target_schemaYesJSON schema to test against the page.
include_metadataNoWhen true, returns { data, meta } envelope with resolved_url, status, block_reason, and preview_token.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior5/5

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

With readOnlyHint and openWorldHint already declaring the safety profile, the description still adds substantial behavior: a concrete rate limit (3 calls/hour per IP), that populated values are masked, that a 300s preview_token is returned to prevent snapshot drift, and that null/missing fields match paid runs 1:1. That is exactly the kind of operational context annotations cannot convey.

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?

A single dense sentence with the most decision-relevant facts front-loaded (free, rate limit, equivalence to paid runs). It is information-rich rather than padded, though the packing of masking, token lifetime, and drift rationale into one clause makes it slightly harder to scan.

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?

For a 6-parameter tool with one required param and no output schema, the description covers the essentials an agent needs: cost model, rate limit, that output values are masked, and that a TTL-bound token is returned. Minor gaps remain around exactly what the masking looks like and what the preview_token is used for downstream, but the core contract is clear.

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 schema already explains url, dynamic, wait_ms, raw_text, target_schema, and include_metadata. The description adds no per-parameter syntax or constraints beyond alluding to schema testing and the preview_token; baseline 3 is appropriate when the schema does the heavy lifting.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description opens with a specific noun phrase, 'FREE schema & DOM preview', and states it runs the same headless Chromium + LLM extraction pass as paid runs, so an agent can tell this is a dry-run/preview of extraction rather than a real extraction. It does not name or distinguish itself from any specific sibling (extract_structured_data, validate_compliance), which keeps it short of a 5.

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?

The phrase '3 calls/hour per IP' and 'preview' imply this is a pre-flight tester to run before committing to paid extractions, so the use context is inferable. However, it never explicitly says when to choose this over extract_structured_data or validate_compliance, nor does it state exclusions or a when-not condition.

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.