Skip to main content
Glama

OnchainCheck Web

Web fetch

web_fetch
Read-onlyIdempotent

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

Output Schema

NameRequiredDescriptionDefault
msNonumber, e.g. 8
urlNostring, e.g. "https://example.org/"
bodyNostring, e.g. "<!doctype html><html lang=en><head><meta charset=utf-8><lin
bytesNonumber, e.g. 577
notesNostring, e.g. "One GET from Cloudflare's network, redirects followed (each
statusNonumber, e.g. 200
headersNoobject
finalUrlNostring, e.g. "https://example.org/"
fetchedAtNostring, e.g. "2026-11-10T13:43:24.367Z"
redirectsNoarray
truncatedNoboolean, e.g. false
contentTypeNostring, e.g. "text/html; charset=utf-8"

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A5/5.0
Behavior5/5

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

Annotations already cover the read-only, idempotent, open-world, non-destructive profile, and the description adds genuinely new behavior: a 500 KB body cap, a public-URL-only restriction, and a paid invocation costing $0.002 USDC on Base via x402. Cost and payload limits are exactly the facts an agent cannot infer from annotations or schema.

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 dense sentences, front-loaded with the core action and return shape, then the alternative, then the hard constraints and pricing. No filler; each clause carries a distinct operational fact.

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?

Despite an output schema existing, the definition still summarizes the return payload, and it covers the non-obvious prerequisites (public URLs, 500 KB ceiling, paid x402 call). For a single-parameter fetch tool, nothing an agent needs before invoking is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Only one parameter, and the schema already documents it at 100% coverage with a matching non-whitespace pattern. The description reinforces the constraint semantically ('public http(s) URLs only'), clarifying that authenticated or internal addresses are out of scope, which goes slightly beyond the schema's generic 'Public http(s) URL' note.

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 (a URL), then enumerates exactly what comes back: status, content type, headers, redirect chain, timing, raw body up to 500 KB. It explicitly separates itself from the extraction sibling by calling out raw-as-sent output, so an agent can pick it without opening the 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 affirmative use case (agents that parse pages or call public JSON endpoints themselves) and names the alternative with its selection condition (use /web/extract for clean Markdown). The 'public http(s) URLs only' line further bounds when the tool applies.

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