Skip to main content
Glama

web_fetch

Fetch a URL and convert it to readable Markdown by stripping navigation, ads, and scripts; paginate long pages with start_index for continued reading.

Instructions

Fetch one URL and return it as readable Markdown, with navigation, ads and scripts stripped. JavaScript is not executed, so script-rendered pages come back thin. Login, paywall and bot-challenge pages are reported as errors (LOGIN_REQUIRED / BLOCKED) instead of being returned as content — use the playwright tools for those. Text, JSON and XML are returned as-is; binary content (images, PDFs, archives) is refused with an explanation. Long documents are paginated: call again with start_index to continue reading.

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_fetch"
  }
}

Input Schema

NameRequiredDescriptionDefault
rawNoReturn raw HTML instead of Markdown (default false).
urlYesAbsolute http:// or https:// URL.
max_lengthNoCharacters to return (default 5000, max 100000).
start_indexNoCharacter offset to start from (default 0); use the value from a previous truncation notice.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.9/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full behavioral burden, and it does well on several fronts: no JavaScript execution, typed error outcomes (LOGIN_REQUIRED / BLOCKED) rather than silent empty content, binary content refused, and pagination via start_index. It says nothing about authentication or credential requirements, rate limits, redirect handling, or caching, which are the remaining behaviors an agent would want before calling it repeatedly.

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?

Four short paragraphs, front-loaded with what the tool does, then limitations, then content-type handling, then pagination. Every sentence carries distinct information: no filler, no restatement of the name, and the most consequential caveat (no JavaScript) appears early.

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, so the description must cover return values, and it does: Markdown by default, text/JSON/XML as-is, binaries refused, and errors surfaced as named codes. Combined with the pagination instructions, an agent has everything needed to call this tool correctly and interpret the result.

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 the four parameters are already documented, and the baseline is 3. The description does add one piece of meaning beyond the schema by linking start_index to 'call again with start_index to continue reading' and by framing truncation as pagination, but it never explains raw or max_length semantics.

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 first sentence states a specific verb and resource plus the transformation applied: 'Fetch one URL and return it as readable Markdown, with navigation, ads and scripts stripped.' An agent immediately knows this is a single-URL content retriever, not a search tool. It does not explicitly differentiate itself from the listed siblings (web_search, web_ask, web_context), only from the unlisted playwright tools, so it falls short of a 5.

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?

Clear conditional routing is given for the hardest case: login, paywall and bot-challenge pages 'use the playwright tools for those.' It also sets expectations that script-rendered pages come back thin, which tells the agent when this tool is a poor fit. What is missing is any guidance on when to prefer web_search or web_context over fetching a known URL.

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

Deploy Server

Other Tools