Skip to main content
Glama

webfetch

Fetch content from URLs and convert HTML to Markdown with privacy features like encrypted DNS and client hello enabled by default. Supports proxies and custom headers while protecting against SSRF attacks.

Instructions

Fetch content from a URL and return it as text. HTML pages are automatically converted to Markdown for readability. Features: ECH (Encrypted Client Hello) and DoH (DNS over HTTPS) enabled by default. Supports HTTP and SOCKS5 proxies. SSRF protection blocks private/internal IPs. Default User-Agent mimics Chrome browser. Custom headers supported. For downloading binary files, use the download tool instead.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
urlYesURL to fetch content from (http/https),required
headersNoCustom HTTP headers (e.g. User-Agent, Accept, Authorization, Referer)
max_lengthNoMaximum response length in characters. Default: 100000
timeout_secNoRequest timeout in seconds. Default: 30, Max: 120
proxy_urlNoHTTP or SOCKS5 proxy URL (e.g. http://proxy:8080, socks5://proxy:1080)
no_dohNoDisable DNS over HTTPS. Default: false (DoH enabled)
no_echNoDisable Encrypted Client Hello. Default: false (ECH enabled)
rawNoReturn raw HTML without Markdown conversion. Default: false
Behavior4/5

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

No annotations provided, so description carries full burden. Discloses key behavioral traits: HTML-to-Markdown conversion (with opt-out via 'raw'), security features (ECH/DoH, SSRF protection), network configuration (proxy support, Chrome User-Agent), and privacy defaults. Missing minor details like redirect handling or cookie behavior.

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?

Exceptionally dense and structured. Every sentence conveys distinct information: core function, format conversion, security features, proxy support, SSRF protection, User-Agent, headers, and sibling differentiation. No redundancy or filler.

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?

Comprehensive for an 8-parameter tool with no output schema. Covers return format, security constraints, proxy capabilities, and sibling alternatives. Minor gap regarding error handling or redirect behavior, but sufficient for correct invocation.

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%, establishing baseline 3. Description adds value by explaining the logic behind negative boolean parameters (no_doh/no_ech) through 'enabled by default' framing, and contextualizes headers/proxy params within security/privacy features rather than just mechanical descriptions.

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?

Description opens with specific verb ('Fetch') and resource ('content from a URL'), explicitly states output format ('return it as text'), and clearly distinguishes from sibling 'download' tool ('For downloading binary files, use the download tool instead').

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?

Provides explicit when-not-to-use guidance ('For downloading binary files...') and names the specific alternative tool ('use the download tool instead'). Also implies primary use case through HTML-to-Markdown conversion mention.

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/knewstimek/agent-tool'

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