Skip to main content
Glama

web_fetch

Fetch a web page and extract its full content, converting HTML to structured Markdown while preserving text, images, links, and tables.

Instructions

Fetches and extracts complete content from a URL, returning it as a structured Markdown document.

**Key Features:**
    - **Full Content Extraction:** Retrieves and parses all meaningful content (text, images, links, tables, code blocks).
    - **Markdown Conversion:** Converts HTML structure to well-formatted Markdown with preserved hierarchy.
    - **Content Fidelity:** Maintains 100% content fidelity without summarization or modification.

**Edge Cases & Best Practices:**
    - Ensure URL is complete and accessible (not behind authentication or paywalls).
    - May not capture dynamically loaded content requiring JavaScript execution.
    - Large pages may take longer to process; consider timeout implications.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
urlYesValid HTTP/HTTPS web address pointing to the target page. Must be complete and accessible.
Behavior4/5

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

With no annotations, the description carries the full burden. It discloses key behaviors: full content extraction, markdown conversion, 100% content fidelity without summarization, and limitations (dynamic content, large page timeouts). This is useful transparency for a fetch tool, though it does not explicitly state read-only nature or error handling on invalid URLs.

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 description is well-organized with headers and bullet points, front-loading the main purpose. It is concise, though there is minor redundancy between 'Full Content Extraction' and 'Content Fidelity' (both imply completeness). Overall, it is compact and scannable.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given no output schema and no annotations, the description explains the return type (structured Markdown) and mentions edge cases (dynamic content, timeouts). However, it lacks explicit differentiation from sibling tools and does not address error handling (e.g., invalid URLs) or whether any side effects occur. It is adequate but not exhaustive.

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?

The schema already provides a complete description of the 'url' parameter (valid HTTP/HTTPS web address, must be complete and accessible) with 100% coverage. The tool description repeats this accessibility guidance but adds no new parameter semantics, so the baseline of 3 applies.

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?

The description clearly states the action ('Fetches and extracts complete content from a URL') and the output (structured Markdown). It is distinct from web_search (which searches) and web_map (which likely maps links) by focusing on a single URL. The purpose is unambiguous and immediately understandable.

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?

The description implies its use (when you have a specific URL and want its content) but does not explicitly state when to use this tool over alternatives like web_search. It provides edge cases (accessibility, dynamic content) but no exclusions or routing to siblings, leaving the choice largely to inference.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/zhehaosun717/sunami-grok-search'

If you have feedback or need assistance with the MCP directory API, please join our Discord server