Skip to main content
Glama

Read web pages

web_fetch
Read-only

Read web pages by URL and convert them into clean Markdown, stripping menus and ads. Add a focus question to return only relevant sections, or continue cut-off pages with a cursor.

Instructions

Read one or more web pages by URL and return their main content as clean Markdown with the page's heading structure, tables, lists and code blocks kept, and menus, ads and other clutter removed. Set focus to a question to get only the most relevant sections. If a page was cut short, pass the returned cursor to read on.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "web_fetch"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlsNoAbsolute http(s) URLs to read.
focusNoOptional question or topic; only the most relevant sections are returned.
cursorNoContinue a page that was cut short, using the cursor from a previous result.
renderNoauto picks the fastest way that works; browser forces Chrome; http skips Chrome.auto
max_tokensNoApproximate size limit for the whole answer, in tokens.
return_imagesNoAlso return the page's main images (for vision models).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint and openWorldHint, but the description adds real behavioral detail beyond them: the output is normalized to Markdown with heading structure retained, navigation/ads are stripped, results can be truncated ('cut short') and resumed via a cursor. It does not cover rate limits, paywalls/auth walls, or robots restrictions, which matters for an open-world fetcher, but the substance is well above the annotation baseline.

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 sentences, front-loaded with the core action and output shape, then the two optional control mechanisms. No filler or restated title text; every sentence carries distinct information.

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?

With no output schema, describing the returned Markdown structure and truncation behavior is essential and is done well. For a tool accepting up to 10 URLs it leaves open how multiple results are delineated and how max_tokens is apportioned, which is the main remaining gap for an agent planning a call.

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% and the per-property descriptions already explain `focus`, `cursor`, `render`, `max_tokens` and `return_images` in comparable terms, so the description largely restates them. It does add a small amount of workflow meaning by framing cursor as a round-trip from a previous result, but does not clarify multi-URL behavior such as whether output is per-URL or merged into one document.

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 ('Read one or more web pages by URL') plus the exact return format (clean Markdown with headings, tables, lists, code blocks preserved, clutter removed). The 'by URL' phrasing cleanly separates it from the web_search sibling, which takes a query rather than a document identifier.

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?

Gives concrete when-to-use instructions for two parameters ('Set `focus` to a question to get only the most relevant sections', 'If a page was cut short, pass the returned `cursor` to read on'), which is genuinely useful workflow guidance. However, it never states when to prefer this tool over web_search or when fetching is inappropriate, so the alternative-selection guidance an agent needs is only implied.

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