Skip to main content
Glama

Scrape a web page

scrape_url
Read-onlyIdempotent

Fetch one public web page with a real browser and return it as clean markdown, HTML or links. JavaScript is rendered. Costs 1 credit.

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
urlYesFull public URL of the page, starting with http:// or https://.
formatNoWhat to return: clean markdown (default), cleaned HTML, or the list of links on the page.markdown
wait_msNoExtra milliseconds to wait for JavaScript to render before reading the page (0 to 10000).
main_content_onlyNoTrue (default) strips navigation, footers and ads; False returns the whole page.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnly, openWorld, idempotent and non-destructive, so the safety profile is covered structurally. The description goes beyond them with information the annotations cannot convey: JavaScript is rendered by a real browser, each call costs 1 credit, and only public pages are supported (implying auth-walled content will fail). It does not discuss failure modes or rate limits, which keeps it at 4.

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 output formats, followed by the rendering caveat and the cost note. Every sentence carries distinct, decision-relevant information with no filler.

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?

An output schema exists, so return values need not be described, and annotations cover the safety profile; the description fills the remaining gaps (cost, JS rendering, public-only scope). What is missing is routing guidance relative to the other scrape_* tools, which leaves a small hole for a four-parameter tool in a crowded family.

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 the format enum and the wait_ms range, are already documented in the schema. The description echoes the three output formats and the 'clean markdown' default but adds no syntax, interaction, or performance guidance (e.g. when to raise wait_ms). Baseline 3 is appropriate.

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 names a specific verb and resource ('Fetch one public web page') and enumerates the return formats (markdown, HTML, links) plus the fact that a real browser renders JavaScript. That is far more specific than the title alone. It stops short of contrasting itself with siblings such as map_site or scrape_collect_key, so an agent must infer which tool handles multi-page or collection work.

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?

'One public web page' implicitly scopes the tool to single-page fetches, and 'Costs 1 credit' gives a decision-relevant cost signal. However, there is no explicit when-to-use/when-not guidance and no named alternative for crawling a whole site or batching many URLs, so the usage boundary is only implied.

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