Skip to main content
Glama

Agent Data API

web_fetch

Fetch any URL (web scraping / URL fetch) and get the raw content: HTML/JSON/text as text, images and PDFs as base64 (for multimodal LLM input), or markdown. Final URL after redirects, status, content type, size. Fetched from Cloudflare's edge (fallback for sites that block it), up to 5 MB. Error statuses are not charged. Price: $0.002 per call (x402, USDC).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
urlYes
formatNoauto | text | base64 | markdown

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does well: it discloses the 5 MB cap, Cloudflare edge fetching with a fallback, that error statuses are free, and the per-call price. It omits timeout behavior, redirect limits, and auth mechanics beyond the x402 price mention.

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?

Dense but front-loaded: purpose first, then formats, then return fields, then limits and pricing. Every clause carries information, though the run-on structure packs several distinct concerns into one long sentence.

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?

Complete for a two-parameter fetch tool with no output schema: it describes return values (final URL, status, content type, size), the format-dependent payload behavior, size limit, and cost model. An agent has enough to call it correctly and predict the response shape.

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 only 50%, so the description adds real meaning by mapping formats to outcomes (images/PDFs become base64 for multimodal input, alternatives include markdown, text, JSON). The 'auto' format value is not explained, and the required URL parameter gets no extra constraints.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb (fetch) and resource (any URL) and clarifies it returns raw content rather than extracted text. That implicitly separates it from siblings like web_read and web_search_read, but no sibling is named and the 'web scraping' framing is slightly redundant.

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?

Clear conditions for use: when raw HTML/JSON/text, base64 for images/PDFs, or markdown is needed. There is no explicit when-not guidance or named alternative, so an agent must infer that web_read is the readability-extraction sibling.

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