Skip to main content
Glama

web_fetch

Read-only

Fetch content from a public HTTPS URL and return it as readable text. Use this to look up documentation, release notes, Helm chart READMEs, Kubernetes docs, or any public web page the user references. SECURITY: Only HTTPS URLs on public hosts are allowed. Requests to private/internal IPs (10.x, 172.16-31.x, 192.168.x, 127.x, localhost, [::1]) and non-HTTPS schemes are rejected.

Input Schema

NameRequiredDescriptionDefault
urlYesThe HTTPS URL to fetch. Must be a public, HTTPS-only URL. No local/private IPs allowed.
max_lengthNoMaximum number of characters to return. Defaults to 8000.
extract_modeNoHow to extract content: 'text' strips HTML to readable text (default), 'html' returns raw HTML, 'raw' returns the response body as-is.text

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations only declare readOnlyHint=true, so the description carries most of the behavioral burden and does it well: it discloses that only HTTPS/public hosts are allowed and enumerates rejected private ranges (10.x, 172.16-31.x, 192.168.x, 127.x, localhost, [::1]) and non-HTTPS schemes. It does not mention truncation behavior, rate limits, or redirect handling, so not a 5.

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?

Three tight sentences that are front-loaded: purpose first, usage contexts second, security constraints last. The SECURITY sentence is longer but its content is high-value; almost nothing is wasted, though it could be marginally more compact.

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?

For a read-only fetch tool with full schema coverage and no output schema, the description covers purpose, typical sources, output shape (readable text), and the key access constraints. An agent has everything needed to call it correctly.

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 url, max_length, and extract_mode are already documented in the schema, including the enum semantics for extract_mode. The description restates the URL HTTPS/public constraint but adds no syntax, format, or interaction detail beyond the schema, making the baseline 3 appropriate.

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 (Fetch) and resource (content from a public HTTPS URL) plus the transformation applied (return as readable text). This clearly distinguishes it from file-reading siblings like workspace_read_file, github_read_file, and code_context, which operate on non-web sources.

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?

The description explicitly lists triggering contexts: documentation, release notes, Helm chart READMEs, Kubernetes docs, or any public web page the user references. It gives clear when-to-use guidance but does not name alternatives (e.g., workspace_read_file for local files) or state exclusions, so it falls short of a 5.

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.

Resources