Skip to main content
Glama

Web Fetch

web_fetch
Read-onlyIdempotent

Fetch one public web page and return its readable text as clean markdown or plain text, with navigation, scripts, headers and footers stripped. When to use: you have a specific URL (from web_search or the user) and need what the page actually says - 'read this article', 'summarise this docs page', 'turn this URL into markdown'. Do not use: to crawl or mirror a site, to fetch a page behind a login or paywall, to read API/RPC endpoints, or for book text inside CyberLibrary (use cyberlibrary_get_chapter). Returns: {url, final_url, status, title, content, chars, truncated, fetched_at, source (direct|provider), cached, took_ms, _metering}. The response is capped at 12000 characters per call; raise max_chars (up to 20000) when you need more. Reads one public URL only, respects robots.txt, and does not bypass login or paywall. Direct fetch is tried first; pages blocked from this node are fetched through a provider and marked source=provider. Metered: all web tools share 10 free calls/day per IP (the same shared pool as every other tool), then 1 credit per call over x402 - there is no API key; the 402 answer carries accepts[].

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
ocrNoForce OCR on scanned PDFs/images (auto-detected by default; set false to skip).
urlYesThe http(s) URL to read (max 2048 chars).
formatNoOutput format. Default markdown.
max_charsNoTruncate the returned content to this many characters (2000-20000). Default 8000.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Annotations already cover safety (readOnly, openWorld, idempotent, non-destructive), and the description still adds substantive behavior: robots.txt is respected, login/paywall is not bypassed, direct fetch is attempted first with a provider fallback flagged as source=provider, and metering is disclosed (10 free calls/day shared pool, then 1 credit via x402 with accepts[] in the 402 response). The 12000-character cap and truncation flag are the kind of operational limits an agent cannot infer from annotations.

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?

Well front-loaded and segmented into purpose, when-to-use, do-not-use, returns, limits, and metering, so an agent can scan the relevant section quickly. It is dense and the metering paragraph is verbose, but each block carries information the agent needs before spending a call.

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?

With no output schema, the description correctly enumerates the return fields (url, final_url, status, title, content, chars, truncated, fetched_at, source, cached, took_ms, _metering), so an agent knows exactly what it will receive. Limits, fallback path, and payment behavior are all covered for a tool with a provider-fallback and metering surface.

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 adds real guidance by explaining when to raise max_chars (up to 20000) rather than leaving it to the enum/range alone. There is a mild tension between the stated 'capped at 12000 characters per call' and the schema's default of 8000, which leaves the effective default ceiling slightly ambiguous.

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 one public web page and return its readable text as clean markdown or plain text') plus the transformation applied (navigation, scripts, headers and footers stripped). The phrase 'one public web page' plus 'read one public URL only' cleanly separates it from web_crawl and web_fetch_batch.

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?

Explicit 'When to use' clause with realistic trigger phrases ('read this article', 'summarise this docs page') and an explicit 'Do not use' list that excludes crawling, login/paywall pages, API endpoints, and CyberLibrary book text, routing the latter to cyberlibrary_get_chapter. This is the when/when-not/alternative pattern at full strength.

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.