Skip to main content
Glama

x402 Structured Data & Headless Scraper

extract_dynamic_url

Read-only

Render a JavaScript-heavy webpage (React, Next.js, Vue, dynamic pricing tables, SPAs) in headless Chromium on Cloudflare's edge, wait for client-side hydration, and return strict typed JSON matching target_schema ($0.05/call or 5 prepaid credits).

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_dynamic_url"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlYesPublic HTTP or HTTPS URL requiring full JavaScript browser rendering.
wait_msNoOptional extra delay in milliseconds (0-3000) after network idle for late client renders.
preview_tokenNoOptional 300s preview token returned by preview_extract to immediately return the pinned unmasked snapshot without re-rendering in Chromium.
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

A3.7/5.0
Behavior4/5

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

Beyond readOnlyHint/openWorldHint, the description discloses the rendering engine, edge location, hydration-wait behavior, strict schema-conformant output, and per-call pricing ($0.05 or 5 prepaid credits), all of which matter for an open-world fetch. It does not cover failure modes (anti-bot blocking, timeouts) or the caching behavior implied by the meta.cached field.

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?

One dense sentence front-loads the core action and appends engine, location, and price without preamble. The parenthetical framework list is slightly overstuffed but earns its place by defining 'JavaScript-heavy' concretely.

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 5-parameter tool with a nested target_schema and no output schema, the description adequately specifies the return contract (typed JSON keyed to target_schema, optional metadata wrapper) and the cost model. What is missing is failure/blocking behavior and rate limits, which matter given openWorldHint and the block_reason field.

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 coverage is 100%, so every parameter is already documented with constraints such as the 0-3000ms wait_ms range and the 300s preview_token lifetime. The description adds only that target_schema drives strict typed output, which is marginal beyond the schema itself; baseline 3 applies.

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?

States a precise verb chain — render a JS-heavy page in headless Chromium on Cloudflare's edge, wait for hydration, return typed JSON matching target_schema — with concrete examples (React, Next.js, Vue, SPAs) that define the domain. It never names a sibling, so the contrast with extract_from_url or extract_structured_data must be inferred from the 'JavaScript-heavy' framing.

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?

Usage is only implied: the tool is for pages that need full browser rendering, which lets an agent infer that simpler fetches belong elsewhere. The preview_token parameter gestures at a preview_extract-then-extract workflow, but the description never states when to skip rendering via that token or when to prefer the cheaper static siblings.

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.