Skip to main content
Glama

OnchainCheck Dev Docs

Web fetch

web_fetch
Read-onlyIdempotent

Fetch a URL for an agent 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 public JSON APIs, registry entries, raw source files, feeds and sitemaps. Use /web/extract for a page or PDF as clean Markdown, /docs/package for a package's docs. 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

A4.7/5.0
Behavior5/5

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

Annotations already declare readOnly/openWorld/idempotent/non-destructive, but the description adds genuinely new behavior: a 500 KB body cap, raw as-sent semantics including the redirect chain, and an explicit cost of $0.002 USDC on Base via x402. The x402 payment detail is especially valuable since an agent must know a call has a monetary side effect despite readOnlyHint=true.

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 sentences, zero filler, front-loaded with the return payload before routing and pricing. Each sentence contributes distinct information: what you get, when to use it vs. siblings, and the access/payment constraints.

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?

The tool is simple (one URI parameter, output schema present), yet the description still covers the access model, size limits, cost, and sibling routing. Nothing an agent needs in order to call it or to pick it over web_extract is missing.

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?

Only one parameter and schema description coverage is 100%, so the schema already carries the meaning. The description restates the constraint ('public http(s) URLs only') but adds nothing about URL normalization, scheme handling, or how the 500 KB cutoff is applied. Baseline 3 is appropriate here.

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?

Uses a specific verb ('Fetch') plus resource ('a URL') and enumerates exactly what comes back: HTTP status, content type, key headers, redirect chain, timing, and raw body in HTML/JSON/XML/text up to 500 KB. It also explicitly separates itself from /web/extract (Markdown) and /docs/package (package docs), so an agent can choose without opening either 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?

States the use cases concretely (public JSON APIs, registry entries, raw source files, feeds, sitemaps) and names the alternatives with the condition that selects them ('for a page or PDF as clean Markdown', 'a package's docs'). The constraint 'public http(s) URLs only' further bounds correct invocation.

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