Skip to main content
Glama

Scrape One Webpage

web_scrape

Scrapes one public webpage you already have the URL of and returns its content as Markdown: url, final_url, status, title, markdown, outcome (read, no_content, no_main_content, needs_javascript, image_only or access_gate, with reason), the page's own published_at/updated_at when it declares them, and browser (what the browser did). Meaningful image alternative text is included; the reader does not extract text from image pixels. browser=auto (default) reads the page directly and opens it in an isolated headless browser only when the direct read gets no readable content, a JavaScript-only page or an access challenge, or the site refuses it (HTTP 403, 429 or 503); never reads directly only; always uses the browser only (https pages on port 443). include_html adds the browser's rendered HTML. Credits: 1 for a direct read, 5 when the browser read the page; an access challenge, consent or sign-in page is labelled and costs nothing; a failed read costs nothing. auto and always reserve 5 credits and settle at what was used. It does not search: to find pages for a query use web_search; for one file or feed exactly as served (XML, JSON, CSV, gzip) use url_fetch; for the status of many URLs use url_probe; for SEO tags of a page use html_metadata_extractor; for a whole site use site_seo_crawler. This tool runs synchronously. When retention succeeds, retained.run_id reads the completed answer again for free with scraper_run_get; retained.available false says why it could not be kept. Saved synchronous results can be evicted early when storage is needed. The same idempotency_key never charges twice during its replay window.

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

Input Schema

NameRequiredDescriptionDefault
urlYesPublic http or https URL of the page
deviceNoThe device the browser load emulates, which its lab metrics describe: desktop (1365x900, no throttling) or mobile (a phone under Lighthouse's mobile throttling: 4x CPU slowdown, slow 4G; lab.method states it). Same price. mobile needs browser=always.desktop
browserNoauto: direct read, browser only when needed (1 or 5 credits); never: direct read only (1 credit); always: browser only, https pages (5 credits)auto
verbosityNoconcise: short summary of the answer; full: the whole answer. Only shapes the output. Send idempotency_key to read the other form later without a new charge.
include_htmlNoAlso return the browser's rendered HTML (only when the browser read the page)
idempotency_keyNoOptional retry key bound to this customer and these arguments. Matching retries replay the first result and do not reserve a second credit; the replay says so in billing (replayed true, credits_charged_this_call 0, original_credits_used).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / device
      Added value: +{
      +  "default": "desktop",
      +  "description": "The device the browser load emulates, which its lab metrics describe: desktop (1365x900, no throttling) or mobile (a phone under Lighthouse's mobile throttling: 4x CPU slowdown, slow 4G; lab.method states it). Same price. mobile needs browser=always.",
      +  "enum": [
      +    "desktop",
      +    "mobile"
      +  ],
      +  "type": "string"
      +}
  2. First observed

TDQS

A4.7/5.0
Behavior5/5

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

Annotations only say this is not read-only, world-open and non-idempotent; the description goes far beyond by disclosing the browser escalation triggers (no readable content, JS-only, access challenge, HTTP 403/429/503), the credit price per path, the free-of-charge outcomes, credit reservation and settlement for auto/always, and eviction risk for saved results. It also explains the idempotency-key replay window, which reconciles the non-idempotent hint with a safe retry story.

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?

Almost every sentence carries real information, but it is delivered as one undifferentiated block with no breaks, and the browser-mode sentence is badly mangled ('never reads directly only; always uses the browser only'). The final idempotency sentence largely repeats the schema, and the density makes key constraints easy to miss on a first read.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

There is no output schema, and the description compensates fully by enumerating the returned fields (url, final_url, status, title, markdown, outcome with its six labels, published_at/updated_at, browser, retained.run_id) and by explaining retention and how to re-read a saved run via scraper_run_get. For a synchronous, credit-metered scrape, an agent has everything needed to call it and interpret the result.

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, and the description earns one extra point by adding meaning the schema lacks: the precise conditions under which browser=auto escalates, the 'always = browser only, https pages on port 443' restriction, and the note that include_html only yields HTML when the browser actually read the page. It also explains that verbosity only shapes output and can be re-read for free with idempotency_key.

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 first clause gives a specific verb and resource with scope: 'Scrapes one public webpage you already have the URL of and returns its content as Markdown', and it enumerates the exact return fields. It then names the siblings it is not (web_search, url_fetch, url_probe, html_metadata_extractor, site_seo_crawler), so an agent can separate it from neighbouring tools without opening a schema.

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?

The 'It does not search' passage is an explicit when-not with a named alternative for each adjacent task: queries to web_search, exact-as-served files to url_fetch, bulk status to url_probe, SEO tags to html_metadata_extractor, whole sites to site_seo_crawler. That is exactly the routing guidance an agent needs.

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