Skip to main content
Glama

fetch_raw_page_as_html

Fetches a URL via HTTP and returns raw HTML without JavaScript rendering; use only when raw markup is required, otherwise choose Markdown extraction.

Instructions

Fetch a URL via HTTP and return the raw HTML. [!] DO NOT use this tool unless you absolutely need the raw HTML. In most cases, using fetch_as_markdown is the right way to go. The output of this tool may be extremely long, use it only when truly required.

This is a lightweight fetch (no JavaScript rendering). For JS-heavy pages, use browser_navigate + browser_get_html instead.

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

Input Schema

NameRequiredDescriptionDefault
urlYes
headersNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.2/5.0
Behavior4/5

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

With no annotations, the description carries the burden and does disclose key traits: no JavaScript rendering, potentially extremely long output, and plain HTTP fetching. It does not cover error/failure behavior, redirects, or whether headers are passed through verbatim, but the major cost and capability limits are surfaced.

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?

The core action is front-loaded and the warning is prominent, which suits a costly tool. The caution is restated three times ('DO NOT use... unless you absolutely need', 'In most cases... is the right way', 'only when truly required'), which is mildly redundant but arguably justified emphasis.

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-value explanation is not required, and the tool's complexity is low. The remaining gap is the undocumented headers parameter and the absence of any failure-mode note, which keeps it short of fully complete.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0% for two parameters, so the description must compensate and largely does not. The 'url' meaning is inferable from 'Fetch a URL', but 'headers' is never mentioned — no guidance on what headers are accepted, whether they override defaults, or whether auth can be supplied this way.

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?

States a specific verb and resource ('Fetch a URL via HTTP and return the raw HTML') and immediately contrasts it with the two plausible alternatives, fetch_as_markdown and browser_navigate + browser_get_html. An agent can distinguish this tool from its siblings without opening any 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?

Explicitly routes the agent: default to fetch_as_markdown, use this only when raw HTML is genuinely required, and switch to browser_navigate + browser_get_html for JS-heavy pages. Both the when-not and the alternatives-with-conditions are stated.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.