Skip to main content
Glama

Scrape a URL (paid)

scrape_url
Read-only

PAID, $0.001-$0.025 USDC. Any web page as clean, LLM-ready Markdown (boilerplate stripped) for your agent's context, e.g. url=https://example.com. Fetches the URL live (typically 1-5 s; stealth tier longer) and returns clean Markdown, JSON-LD, HTML tables and links as JSON. Tiers: cached_intel $0.001 (recent cached copy), static_scrape $0.005 (live fetch, default for normal pages), stealth_browser $0.025 (headless browser for JavaScript or Cloudflare-protected pages). An unpaid call returns the exact x402 price. Returns JSON with clean Markdown, JSON-LD, HTML tables, and links from the fetched page.

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>"
    },
    "name": "scrape_url"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlYesAbsolute page URL to fetch. Format: https:// host and path. Example: https://example.com. Required.
tierNoFetch tier. Format: one of the allowed values. Example: static_scrape. Default: auto, which picks static_scrape for a normal page. cached_intel is the recent cached copy, static_scrape is a live fetch, and stealth_browser is a headless browser. Allowed values: auto, cached_intel, static_scrape, stealth_browser.auto
api_keyNoOptional payment credential. Format: a prepaid key sk_scrapling_... or a catalog pass token sdp_... from pass_day or pass_month. Example: sdp_... . When omitted on a paid tool, the call is unpaid and the server answers with x402 PaymentRequired; retry the same call with the signed payment in params._meta['x402/payment'].
css_selectorNoOptional CSS selector that limits extraction to one part of the page. Format: a CSS selector. Example: article. Omit to extract the whole page.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changed
    • changedInput schema / properties / api_key / description
      Previous value: -"Optional prepaid key (sk_scrapling_...) or catalog pass token (sdp_..., from pass_day/pass_month). Otherwise pay per call with x402 via _meta['x402/payment']."New value: +"Optional payment credential. Format: a prepaid key sk_scrapling_... or a catalog pass token sdp_... from pass_day or pass_month. Example: sdp_... . When omitted on a paid tool, the call is unpaid and the server answers with x402 PaymentRequired; retry the same call with the signed payment in params._meta['x402/payment']."
    • changedInput schema / properties / css_selector / description
      Previous value: -"Optional CSS selector to scope extraction."New value: +"Optional CSS selector that limits extraction to one part of the page. Format: a CSS selector. Example: article. Omit to extract the whole page."
    • addedInput schema / properties / tier / description
      Added value: +"Fetch tier. Format: one of the allowed values. Example: static_scrape. Default: auto, which picks static_scrape for a normal page. cached_intel is the recent cached copy, static_scrape is a live fetch, and stealth_browser is a headless browser. Allowed values: auto, cached_intel, static_scrape, stealth_browser."
    • changedInput schema / properties / url / description
      Previous value: -"Page to scrape."New value: +"Absolute page URL to fetch. Format: https:// host and path. Example: https://example.com. Required."
  2. Changed4 schema fields changed
    • changedInput schema / properties / api_key / description
      Previous value: -"Optional payment credential. Format: a prepaid key sk_scrapling_... or a catalog pass token sdp_... from pass_day or pass_month. Example: sdp_... . When omitted on a paid tool, the call is unpaid and the server answers with x402 PaymentRequired; retry the same call with the signed payment in params._meta['x402/payment']."New value: +"Optional prepaid key (sk_scrapling_...) or catalog pass token (sdp_..., from pass_day/pass_month). Otherwise pay per call with x402 via _meta['x402/payment']."
    • changedInput schema / properties / css_selector / description
      Previous value: -"Optional CSS selector that limits extraction to one part of the page. Format: a CSS selector. Example: article. Omit to extract the whole page."New value: +"Optional CSS selector to scope extraction."
    • removedInput schema / properties / tier / description
      Removed value: -"Fetch tier. Format: one of the allowed values. Example: static_scrape. Default: auto, which picks static_scrape for a normal page. cached_intel is the recent cached copy, static_scrape is a live fetch, and stealth_browser is a headless browser. Allowed values: auto, cached_intel, static_scrape, stealth_browser."
    • changedInput schema / properties / url / description
      Previous value: -"Absolute page URL to fetch. Format: https:// host and path. Example: https://example.com. Required."New value: +"Page to scrape."
  3. Changed4 schema fields changed
    • changedInput schema / properties / api_key / description
      Previous value: -"Optional prepaid key (sk_scrapling_...) or catalog pass token (sdp_..., from pass_day/pass_month). Otherwise pay per call with x402 via _meta['x402/payment']."New value: +"Optional payment credential. Format: a prepaid key sk_scrapling_... or a catalog pass token sdp_... from pass_day or pass_month. Example: sdp_... . When omitted on a paid tool, the call is unpaid and the server answers with x402 PaymentRequired; retry the same call with the signed payment in params._meta['x402/payment']."
    • changedInput schema / properties / css_selector / description
      Previous value: -"Optional CSS selector to scope extraction."New value: +"Optional CSS selector that limits extraction to one part of the page. Format: a CSS selector. Example: article. Omit to extract the whole page."
    • addedInput schema / properties / tier / description
      Added value: +"Fetch tier. Format: one of the allowed values. Example: static_scrape. Default: auto, which picks static_scrape for a normal page. cached_intel is the recent cached copy, static_scrape is a live fetch, and stealth_browser is a headless browser. Allowed values: auto, cached_intel, static_scrape, stealth_browser."
    • changedInput schema / properties / url / description
      Previous value: -"Page to scrape."New value: +"Absolute page URL to fetch. Format: https:// host and path. Example: https://example.com. Required."
  4. Changed4 schema fields changed
    • changedInput schema / properties / api_key / description
      Previous value: -"Optional payment credential. Format: a prepaid key sk_scrapling_... or a catalog pass token sdp_... from pass_day or pass_month. Example: sdp_... . When omitted on a paid tool, the call is unpaid and the server answers with x402 PaymentRequired; retry the same call with the signed payment in params._meta['x402/payment']."New value: +"Optional prepaid key (sk_scrapling_...) or catalog pass token (sdp_..., from pass_day/pass_month). Otherwise pay per call with x402 via _meta['x402/payment']."
    • changedInput schema / properties / css_selector / description
      Previous value: -"Optional CSS selector that limits extraction to one part of the page. Format: a CSS selector. Example: article. Omit to extract the whole page."New value: +"Optional CSS selector to scope extraction."
    • removedInput schema / properties / tier / description
      Removed value: -"Fetch tier. Format: one of the allowed values. Example: static_scrape. Default: auto, which picks static_scrape for a normal page. cached_intel is the recent cached copy, static_scrape is a live fetch, and stealth_browser is a headless browser. Allowed values: auto, cached_intel, static_scrape, stealth_browser."
    • changedInput schema / properties / url / description
      Previous value: -"Absolute page URL to fetch. Format: https:// host and path. Example: https://example.com. Required."New value: +"Page to scrape."
  5. Changed4 schema fields changed
    • changedInput schema / properties / api_key / description
      Previous value: -"Optional prepaid key (sk_scrapling_...) or catalog pass token (sdp_..., from pass_day/pass_month). Otherwise pay per call with x402 via _meta['x402/payment']."New value: +"Optional payment credential. Format: a prepaid key sk_scrapling_... or a catalog pass token sdp_... from pass_day or pass_month. Example: sdp_... . When omitted on a paid tool, the call is unpaid and the server answers with x402 PaymentRequired; retry the same call with the signed payment in params._meta['x402/payment']."
    • changedInput schema / properties / css_selector / description
      Previous value: -"Optional CSS selector to scope extraction."New value: +"Optional CSS selector that limits extraction to one part of the page. Format: a CSS selector. Example: article. Omit to extract the whole page."
    • addedInput schema / properties / tier / description
      Added value: +"Fetch tier. Format: one of the allowed values. Example: static_scrape. Default: auto, which picks static_scrape for a normal page. cached_intel is the recent cached copy, static_scrape is a live fetch, and stealth_browser is a headless browser. Allowed values: auto, cached_intel, static_scrape, stealth_browser."
    • changedInput schema / properties / url / description
      Previous value: -"Page to scrape."New value: +"Absolute page URL to fetch. Format: https:// host and path. Example: https://example.com. Required."
  6. Changed1 schema field changed
    • changedInput schema / properties / api_key / description
      Previous value: -"Optional prepaid key (sk_scrapling_...). Otherwise pay per call with x402 via _meta['x402/payment']."New value: +"Optional prepaid key (sk_scrapling_...) or catalog pass token (sdp_..., from pass_day/pass_month). Otherwise pay per call with x402 via _meta['x402/payment']."
  7. First observed

TDQS

A4.1/5.0
Behavior5/5

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

Goes well beyond the readOnlyHint/openWorldHint annotations by disclosing price per tier ($0.001 to $0.025 USDC), latency expectations (1-5 s, longer for stealth), and the exact failure mode of an unpaid call returning an x402 PaymentRequired with the price. That is the kind of cost and payment-flow detail an agent needs before calling a paid endpoint.

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

Conciseness3/5

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

Pricing and payment terms are correctly front-loaded, but the return payload is stated twice ("clean, LLM-ready Markdown... JSON-LD, HTML tables and links as JSON" at the start and again in the final sentence), which wastes space in an otherwise dense description.

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?

With no output schema, the description carries the return-value burden and does so adequately, covering payload contents, cost, latency, tier tradeoffs and the payment retry flow. It is silent on practical limits such as page size truncation or rate limits, which is a minor gap for a paid fetch tool.

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?

Schema coverage is 100%, so the baseline is 3, but the description adds real meaning the schema does not carry: the price attached to each tier, the fact that auto resolves to static_scrape, and that omitting api_key makes the call unpaid rather than failing outright. It does not add anything for css_selector beyond what the schema already says.

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 specific verb and resource (fetch/scrape any web page) and the exact output shape: clean Markdown with boilerplate stripped, plus JSON-LD, tables and links. It is clear what the tool does, but it never mentions the sibling scrape_text, so an agent must infer the difference (Markdown vs plain text) rather than being told.

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?

Gives clear selection context for the tier parameter: cached_intel for a recent cached copy, static_scrape as the default for normal pages, stealth_browser for JavaScript or Cloudflare-protected pages. It also explains the unpaid-call path and the retry mechanism. The gap is the absence of explicit guidance on when to prefer this tool over scrape_text.

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.