Skip to main content
Glama

web_fetch

Fetch a URL and get the response as sent: HTTP status, content type, key headers, the redirect chain, timing and the raw body (HTML, JSON, XML or text, up to 500 KB). For agents that parse pages or call public JSON endpoints themselves; use /web/extract for clean Markdown. Public http(s) URLs only. Costs $0.002 USDC on Base via x402.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

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

Input Schema

NameRequiredDescriptionDefault
urlYesPublic http(s) URL

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.5/5.0
Behavior4/5

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

No annotations are supplied, so the description carries the full burden, and it does most of it: raw-response semantics, the 500 KB cap, redirect-chain disclosure, the public-URL restriction, and an explicit price ('$0.002 USDC on Base via x402'). It stops short of explaining payment/auth mechanics, failure modes, or timeout/retry behavior for a paid endpoint, which keeps it below 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.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three tight sentences, front-loaded with the outcome and return payload, then the alternative routing, then the constraints and cost. Every clause carries distinct information with no filler.

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?

No output schema exists, but the description effectively enumerates the return shape (status, content type, headers, redirects, timing, body formats, size cap), plus cost and URL eligibility. For a one-parameter fetch tool, an agent has everything needed to call it and interpret results.

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% and there is only one parameter, so the schema already documents 'url' fully. The description's 'Public http(s) URLs only' reinforces the same constraint but adds no format, encoding, or query-parameter detail beyond it, so the baseline 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?

States a specific verb and resource ('Fetch a URL') and enumerates exactly what comes back: HTTP status, content type, key headers, redirect chain, timing, and raw body up to 500 KB. It distinguishes itself from '/web/extract' by framing itself as the raw-response tool, so an agent can pick it apart from siblings without opening a schema.

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?

Gives an explicit audience and condition ('For agents that parse pages or call public JSON endpoints themselves') and names the alternative with its selection criterion ('use /web/extract for clean Markdown'). It also states a hard eligibility rule ('Public http(s) URLs only'), leaving little to inference.

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