Skip to main content
Glama

Scrape HTML

scrapeHtml

Retrieve the raw HTML of a page. Browser rendering is optional.

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

Input Schema

NameRequiredDescriptionDefault
urlYesAbsolute HTTP or HTTPS URL of the page to process.
proxyNoCustom proxy URL used to load the page.
superNoWhether to route the request through real devices.
geoCodeNoTwo-letter country code to load the page from, sent in lowercase.us
timeoutNoPage load timeout in seconds, from 1 to 300. The HTTP request allows 30 additional seconds.
waitUntilNoNavigation completion event to wait for: domcontentloaded, load, networkidle0, or networkidle2.domcontentloaded
warmStartNoWhether to enable warm start for more reliable scraping, at the cost of additional latency.
maxRetriesNoMaximum number of retries, as a nonnegative integer. Omit this parameter for no limit.
saveResultNoWhether to save the result to the dashboard Result tab.
proxyCountryNoTwo-letter country code of the proxy server, sent in lowercase.us
returnCookieNoWhether to include browser session cookies in the response.
blockResourcesNoWhether to block images, fonts, and stylesheets while loading the page.
waitForSelectorNoWait for the page to contain the specified CSS selector before returning the result.
browserRenderingNoWhether to render the page in a browser before returning the result.

Output Schema

NameRequiredDescriptionDefault
dataYesParsed response JSON or text.
errorNo
headersYesResponse headers with credentials removed.
status_codeYesUpstream HTTP status, or null for a network failure.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

C2.9/5.0
Behavior2/5

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

Annotations already declare openWorldHint=true, destructiveHint=false, and readOnlyHint=false, but the description adds no behavioral context beyond 'raw HTML.' It says nothing about side effects such as saveResult writing to the dashboard, the retry/timeout budget, proxy and geo routing, or the latency cost of warmStart — all relevant for a tool whose annotations flag it as non-read-only.

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?

Two short sentences, front-loaded with the core action and free of filler. It is efficient, though for a 14-parameter tool the brevity edges toward under-specification rather than true conciseness.

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

Completeness2/5

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

With 14 optional parameters, an output schema, and sibling alternatives, the tool's description should explain the proxy/geo/retry semantics and when to prefer other scrape variants. Annotations and the 100%-covered schema carry most of that burden, but the description leaves an agent without guidance on the many optional knobs or on choosing between siblings.

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 including browserRendering, waitUntil, and proxy already carries its own description. The description's phrase 'browser rendering is optional' merely restates what the schema documents, adding no syntax, defaults, or interaction guidance. 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 states a specific verb and resource: 'Retrieve the raw HTML of a page.' The word 'raw' implicitly separates it from siblings like scrapeMarkdown and scrapeJson, but no sibling is named, so an agent must infer the boundary rather than read it.

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

Usage Guidelines2/5

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

There is no when-to-use guidance, no prerequisites, and no routing to alternatives. 'Browser rendering is optional' hints at a decision point but never says when rendering should be enabled, when a different scraping sibling is preferable, or what happens with 14 configurable parameters.

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.