Skip to main content
Glama

x402 Structured Data & Headless Scraper

extract_from_url

Read-only

Fetch a public static webpage URL, strip HTML/navigation boilerplate, and return strict typed JSON matching target_schema in one atomic step ($0.01/call). Best for static HTML pages, docs, and articles. For React/Next.js/Vue SPAs, use extract_dynamic_url.

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

Input Schema

NameRequiredDescriptionDefault
urlYesPublic HTTP or HTTPS webpage URL to fetch and parse.
preview_tokenNoOptional 300s preview token returned by preview_extract to immediately return the unmasked snapshot without re-fetching.
target_schemaYesJSON object defining desired output keys and expected types.
include_metadataNoWhen true, wraps output in { data, meta: { resolved_url, status, block_reason, cached } }.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint and openWorldHint, so the safety profile is covered; the description adds non-obvious context: fixed pricing ($0.01/call), atomic single-step behavior, and that HTML/navigation boilerplate is stripped. It does not discuss failure handling (e.g. block_reason) or caching semantics beyond what the schema already mentions.

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

Conciseness5/5

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

Three short sentences, front-loaded with the core action and followed by scope and the sibling routing hint. No filler and every sentence carries decision-relevant information.

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 fetch-and-extract tool with no output schema, the description covers what it returns conceptually (strict typed JSON matching target_schema) plus cost and scope. Minor gap: no mention of what happens on blocked or failed pages, though one could argue preview_extract and include_metadata cover this.

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 four parameters including preview_token and include_metadata are already documented. The description adds only the framing that target_schema governs the typed output, which the schema largely conveys already; baseline 3 is appropriate.

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 chain (fetch, strip boilerplate, return typed JSON) against a specific resource (public static webpage URL) and names the sibling it is not suited for, so an agent can distinguish it from extract_dynamic_url immediately.

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

Usage Guidelines5/5

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

Gives both the positive case ('Best for static HTML pages, docs, and articles') and the exclusion with a named alternative ('For React/Next.js/Vue SPAs, use extract_dynamic_url'). Nothing is left to inference.

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.