Skip to main content
Glama

web_fetch

Read-only

Read URL(s): page, PDF, office doc, JSON API, source file, download; an audio/video file as its transcript. Returns content (markdown; JSON and code as served), title, tier_used, quality.

Instructions

Read URL(s): page, PDF, office doc, JSON API, source file, download; an audio/video file as its transcript. Returns content (markdown; JSON and code as served), title, tier_used, quality. Tier climbs http > browser > stealth > real > warm on its own, learned per domain. github.com is read from its API. Fewer tokens: query, css_selector, json_path, max_tokens + cursor, out_file. Rows: schema or tables. urls reads several in parallel (results in input order, duplicates marked same_text_as); with probe it only checks they exist (status, type, length: a 404 is an answer). Same-site links come back as paths, join them to url. Blocked: read blocked_reason and note, never retry blindly.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

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

Input Schema

NameRequiredDescriptionDefault
urlNoAlso raw:<html>, or file:///path under ~/.svipall/in
bodyNoRequest body
modeNoForce one tier. Leave unset
urlsNoSeveral, instead of url
waitNoSeconds to wait out a visit limit, max 900; 0 never waits
cacheNoauto (default) | read | write | bypass | refresh
freshNoTry again a site that failed in the last 10 min
probeNourls: existence only, no body
proxyNoProxy URL, this call only
queryNoKeep only blocks relevant to these words. Name the fact, not the topic
cursorNoContinue a cut result
methodNoPOST, PUT, DELETE, HEAD (http tier)
mobileNoAsk as a phone
robotsNowarn (default) | obey | ignore
schemaNoRows as `extracted`: "auto", or {name, base_selector, fields:[{name, selector, type, attribute}]}; type text|attribute|number|exists|list|html|markdown
scrollNo"auto" or a round count, for a page that loads as you scroll
tablesNoData tables as {caption, header, rows}
headersNoExtra request headers
out_dirNourls: each page whole, one file each
profileNoCookies of a saved login profile
timeoutNoms, default 60000
isolatedNoThrowaway browser profile
max_tierNoHighest tier to climb to
out_fileNoWrite here, return the path. .md .txt .json .csv .html get text or rows; any other name, or a binary body, the bytes (call again to resume). Relative: ~/.svipall/out/. urls: one .json/.jsonl for the set
json_pathNoFields of a JSON answer: items[:5].{name, owner.login}
text_onlyNoSkip images, fonts, CSS in browser tiers
extractionNomarkdown (default) | text | html
max_tokensNoContent cap, default 25000. A cut result carries `cursor`
css_selectorNoKeep only matching elements
include_linksNoAdd links and images
include_qualityNoAdd quality_detail
include_metadataNoAdd canonical, language, author, dates, OpenGraph, JSON-LD, feeds
max_tokens_totalNourls: cap for all pages together, default 8000
main_content_onlyNoDefault true: drops nav, footer, sidebars
use_site_templateNoStrip what the site repeats on every page; can drop content

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed39 schema fields changedv2.0.0
    • changedInput schema / properties / body / description
      Previous value: -"Request body for POST/PUT (http tier only)."New value: +"Request body"
    • changedInput schema / properties / cache / description
      Previous value: -"auto (default: serve a fresh copy, revalidate a stale one), read, write, bypass, refresh."New value: +"auto (default) | read | write | bypass | refresh"
    • changedInput schema / properties / css_selector / description
      Previous value: -"Keep only the elements this CSS selector matches, e.g. \"article\" or \"#prices\"."New value: +"Keep only matching elements"
    • changedInput schema / properties / cursor / description
      Previous value: -"Continue a truncated response from where it stopped: the `cursor` of the previous result."New value: +"Continue a cut result"
    • changedInput schema / properties / extraction / description
      Previous value: -"markdown (default), text, or html (the raw markup, many times the tokens)."New value: +"markdown (default) | text | html"
    • addedInput schema / properties / fresh
      Added value: +{
      +  "description": "Try again a site that failed in the last 10 min",
      +  "type": "boolean"
      +}
    • removedInput schema / properties / headers / additionalProperties
      Removed value: -{
      -  "type": "string"
      -}
    • changedInput schema / properties / headers / description
      Previous value: -"Extra request headers (http tier only)."New value: +"Extra request headers"
    • changedInput schema / properties / include_links / description
      Previous value: -"Add `links`, split into internal and external, plus images."New value: +"Add links and images"
    • changedInput schema / properties / include_metadata / description
      Previous value: -"Add `metadata`: canonical URL, language, author, dates, OpenGraph, JSON-LD, feeds."New value: +"Add canonical, language, author, dates, OpenGraph, JSON-LD, feeds"
    • changedInput schema / properties / include_quality / description
      Previous value: -"Add `quality_detail`: integrity verdict with reasons, optimisation traits, near-duplicates\nin the cache, provenance (byline, date, citations). For judging a source; the compact\n`quality` field is always present."New value: +"Add quality_detail"
    • changedInput schema / properties / isolated / description
      Previous value: -"A throwaway browser profile for this fetch alone: no cookies in, nothing left behind."New value: +"Throwaway browser profile"
    • addedInput schema / properties / json_path
      Added value: +{
      +  "description": "Fields of a JSON answer: items[:5].{name, owner.login}",
      +  "type": "string"
      +}
    • changedInput schema / properties / main_content_only / description
      Previous value: -"Drop navigation, footers and sidebars. Default true; false returns the whole body."New value: +"Default true: drops nav, footer, sidebars"
    • changedInput schema / properties / max_tier / description
      Previous value: -"Highest tier the ladder may climb to: http, browser, stealth, real, warm (default)."New value: +"Highest tier to climb to"
    • changedInput schema / properties / max_tokens / description
      Previous value: -"Cap on the content returned, cut on block boundaries. Default 25000. A truncated result\ncarries a `cursor`."New value: +"Content cap, default 25000. A cut result carries `cursor`"
    • addedInput schema / properties / max_tokens_total
      Added value: +{
      +  "description": "urls: cap for all pages together, default 8000",
      +  "type": "integer"
      +}
    • changedInput schema / properties / method / description
      Previous value: -"HTTP method for the http tier: GET (default), POST, PUT, DELETE, HEAD."New value: +"POST, PUT, DELETE, HEAD (http tier)"
    • changedInput schema / properties / mobile / description
      Previous value: -"Ask as a phone: phone identity and viewport. Only worth it where a site serves a lighter\npage to phones — a responsive site, which is most of them, returns the same bytes: measured\nbyte-identical on two sites at both the http and browser tiers. It also costs a browser\npage of its own, since no warm page is reused, and rules out the native last resort."New value: +"Ask as a phone"
    • changedInput schema / properties / mode / description
      Previous value: -"Leave unset: auto learns the tier per domain. Forcing one (http, browser, stealth, real,\nwarm) is for debugging and is slower or weaker."New value: +"Force one tier. Leave unset"
    • addedInput schema / properties / out_dir
      Added value: +{
      +  "description": "urls: each page whole, one file each",
      +  "type": "string"
      +}
    • changedInput schema / properties / out_file / description
      Previous value: -"Write the content to this file and return the path instead: measured, a 418-character\nresponse against the 34 746 characters of the page it wrote. Relative paths land in\n~/.svipall/out/. With `schema` or `tables` a .csv, .json or .jsonl name writes the rows in\nthat format."New value: +"Write here, return the path. .md .txt .json .csv .html get text or rows; any other name, or a binary body, the bytes (call again to resume). Relative: ~/.svipall/out/. urls: one .json/.jsonl for the set"
    • addedInput schema / properties / probe
      Added value: +{
      +  "description": "urls: existence only, no body",
      +  "type": "boolean"
      +}
    • changedInput schema / properties / profile / description
      Previous value: -"Profile saved by web_login whose cookies to use. Implies a browser tier."New value: +"Cookies of a saved login profile"
    • changedInput schema / properties / proxy / description
      Previous value: -"Proxy URL for this fetch only; web_route sets one per domain."New value: +"Proxy URL, this call only"
    • changedInput schema / properties / query / description
      Previous value: -"Keep only the blocks relevant to these words (BM25), e.g. \"shipping costs\". The cheapest\nway to read a long page for one fact, and how much it saves is decided by the query, not\nthe page: measured on two long articles, \"robots.txt\" and \"caching headers\" left 6% and\n13% of the page, while \"history of scraping\" left 88%. Name the fact, not the topic."New value: +"Keep only blocks relevant to these words. Name the fact, not the topic"
    • changedInput schema / properties / robots / description
      Previous value: -"robots.txt policy: warn (default: fetch, and say whether robots.txt disallows it), obey\n(refuse a disallowed URL), ignore."New value: +"warn (default) | obey | ignore"
    • removedInput schema / properties / schema / anyOf
      Removed value: -[
      -  {
      -    "description": "\"auto\": read the page's own repeated structure; the schema used comes back as\n`induced_schema`, to pass next time.",
      -    "type": "string"
      -  },
      -  {
      -    "additionalProperties": true,
      -    "description": "Your own: `{\"name\", \"base_selector\", \"fields\": [{\"name\", \"selector\", \"type\", \"attribute\"}]}`,\nas shown on web_fetch.",
      -    "type": "object"
      -  }
      -]
    • changedInput schema / properties / schema / description
      Previous value: -"Rows instead of prose, returned as `extracted`. E.g. `{\"name\": \"products\", \"base_selector\":\n\"div.product\", \"fields\": [{\"name\": \"title\", \"selector\": \"h2 a\"}, {\"name\": \"url\", \"selector\":\n\"a\", \"type\": \"attribute\", \"attribute\": \"href\"}]}`; types text (default), attribute, number,\nexists, list, html, markdown. A named schema is remembered per domain, and a selector a\nredesign breaks is relocated and reported as `healed`."New value: +"Rows as `extracted`: \"auto\", or {name, base_selector, fields:[{name, selector, type, attribute}]}; type text|attribute|number|exists|list|html|markdown"
    • addedInput schema / properties / schema / type
      Added value: +[
      +  "string",
      +  "object"
      +]
    • changedInput schema / properties / scroll / description
      Previous value: -"Scroll a page that loads as you go before reading it: \"auto\" until it stops growing (up to\n40 screens, one \"load more\" click), or a number of rounds. Implies a browser tier."New value: +"\"auto\" or a round count, for a page that loads as you scroll"
    • changedInput schema / properties / tables / description
      Previous value: -"Return the page's data tables as typed rows, `tables: [{caption, header, rows}]`, instead\nof prose: a fraction of the markdown, columns kept. Layout tables are skipped."New value: +"Data tables as {caption, header, rows}"
    • changedInput schema / properties / text_only / description
      Previous value: -"Skip images, fonts, stylesheets and video in browser tiers. Faster on heavy pages; off by\ndefault because some anti-bot scripts notice a page whose images never loaded."New value: +"Skip images, fonts, CSS in browser tiers"
    • changedInput schema / properties / timeout / description
      Previous value: -"Timeout in ms for the whole ladder. Default 60000."New value: +"ms, default 60000"
    • changedInput schema / properties / url / description
      Previous value: -"The page. Also `raw:<html>` for markup you already have (no request is made) and\n`file:///path` for a local file under `~/.svipall/in` or a configured `local_roots` entry."New value: +"Also raw:<html>, or file:///path under ~/.svipall/in"
    • addedInput schema / properties / urls
      Added value: +{
      +  "description": "Several, instead of url",
      +  "items": {
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
    • changedInput schema / properties / use_site_template / description
      Previous value: -"Strip what this site repeats on every page (banners, footers), learned from earlier fetches\nof the same site. Off by default: it can take a word of real content with it. A response it\nchanged says `\"template\": {\"learned_from\": 16, \"removed_blocks\": 3}`."New value: +"Strip what the site repeats on every page; can drop content"
    • addedInput schema / properties / wait
      Added value: +{
      +  "description": "Seconds to wait out a visit limit, max 900; 0 never waits",
      +  "type": "integer"
      +}
    • removedInput schema / required
      Removed value: -[
      -  "url"
      -]
  2. First observedv1.0.3

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare readOnlyHint and openWorldHint, yet the description adds substantial behavior the agent could not otherwise know: per-domain learned tier escalation (http > browser > stealth > real > warm), the github.com API special case, parallel reads returning results in input order with duplicates marked `same_text_as`, cursor-based continuation of cut results, and resumable binary writes via out_file. These are exactly the operational traits that determine whether a call succeeds. It stops short of disclosing throttling, visit-limit costs, or auth requirements beyond the `profile` cookie parameter.

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?

The purpose is front-loaded in the first clause and the paragraph proceeds in order: what it reads, what it returns, then tuning levers, then multi-URL and failure behavior. The telegraphic semicolon style is dense and a few fragments ("Rows: `schema` or `tables`") are terse to the point of ambiguity, but the length is proportionate to a 35-parameter tool and little is wasted.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a zero-required-parameter, 35-property tool with no output schema, the description covers the essentials: it names the return fields (`content`, `title`, `tier_used`, `quality`) and the optional `quality_detail`, explains what out_file produces by extension, and describes the blocked path. The remaining gap is that it never states what a successful versus failed call looks like for the existence-only `probe` case beyond status/type/length.

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?

With schema description coverage at 100%, the schema already carries the burden, so the baseline is 3. The description does add organization beyond the schema by grouping token-saving parameters (`query`, `css_selector`, `json_path`, `max_tokens` + `cursor`, `out_file`) and pairing `schema`/`tables` for row output, which is genuinely useful framing across 35 parameters.

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?

The opening clause gives a specific verb plus resource and enumerates the content classes it handles: page, PDF, office doc, JSON API, source file, download, and audio/video as transcript. An agent can immediately tell this is a universal URL reader rather than a browser driver or search tool. It never names a sibling (browser, web_capture, web_crawl) to route away from, so differentiation is implied rather than stated.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It gives useful in-tool routing: `urls` for several pages in parallel, `probe` for existence-only checks, and explicit failure handling (read `blocked_reason` and `note`, never retry blindly). What it lacks is any statement of when to choose this over the sibling tools such as browser, web_capture or web_crawl; the tier list hints that browser handling is internal but never says so outright.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.