Skip to main content
Glama

Koon Web Fetch

koon_fetch

Fetches web pages and PDFs that block ordinary requests by impersonating browsers, then converts HTML to clean Markdown for reading and citation.

Instructions

Fetches content from a URL using browser-impersonating HTTP client (bypasses Cloudflare, Akamai, and other bot detection). Converts HTML to clean markdown. Handles JSON, plain text, and binary content. When a site turns away the request as Chrome, tries Firefox and Safari; if all three are turned away, names the bot protection that answered. Stack Overflow and other Stack Exchange question links return the question with its top answers through the official API. PDFs: returns their text marked by page number; a long PDF from page 1 on up to about 16,000 characters plus its outline, further pages with pages (e.g. "5-8", up to 20 per call, from a working copy kept for the session). A paper that names a DOI or arXiv id also gets title, authors, year and DOI. save: true keeps the PDF in /pdf/ (papers named "Author et al. - Year - Title.pdf"); save only when the user wants to keep the file. Includes 15-minute caching. Use this instead of WebFetch for all web requests.

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": "koon_fetch"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlYesThe URL to fetch. HTTP URLs are auto-upgraded to HTTPS.
saveNoPDF only: keep the PDF permanently, in <project>/pdf/ unless save_dir is given. Also works for a PDF fetched earlier in the session.
pagesNoPDF only: pages to return as text, e.g. "5", "3-7" or "1,4,9-11" (up to 20 per call). A PDF fetched earlier in the session is read from its working copy.
promptNoOptional prompt describing what information to look for. The content is returned as-is for Claude to process.
save_dirNoPDF only: folder for save, absolute or relative to the project folder.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.1.4

TDQS

A4.6/5.0
Behavior5/5

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

With no annotations supplied, the description carries the full behavioral burden and does so unusually well: it discloses the browser-fallback ladder, that failures name the bot protection encountered, 15-minute caching, HTML-to-markdown conversion, and the session-scoped PDF working copy. It also documents side effects of `save` (where files land and how papers are named), which is exactly the kind of context annotations would otherwise provide.

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?

It is front-loaded with the core purpose and every sentence carries substantive information — bot handling, PDF paging, save semantics, caching, and the WebFetch routing rule. It is dense enough to be hard to scan, though; the PDF and save details would read better as separate sentences or bullets rather than one long block.

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?

For a tool with five parameters, no annotations, and no output schema, the description compensates thoroughly: it describes return shapes for HTML (markdown), JSON, plain text, binary, Stack Exchange questions, and PDFs (page-numbered text plus outline and DOI/arXiv metadata). An agent has enough to predict both behavior and output for every documented content type.

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 100%, so the baseline is 3, but the description adds real meaning beyond it: the `pages` syntax examples and the 20-page cap, the fact that earlier-fetched PDFs are read from a session working copy, and the naming convention applied when `save` is true. The `prompt` parameter's 'content is returned as-is' caveat is also clarified only in the schema, not the description, which keeps this from a 5.

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?

The opening sentence states a specific verb and resource (fetch content from a URL) plus the differentiator (browser-impersonating client that bypasses bot detection). Subsequent sentences enumerate the content types handled and the special-case behaviors, so an agent knows exactly what class of operation this is 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 Guidelines4/5

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

It gives an explicit routing instruction — 'Use this instead of WebFetch for all web requests' — and a conditional guard for the save flag ('save only when the user wants to keep the file'). What it lacks is any when-not guidance: nothing says whether authenticated pages, POST requests, or non-public URLs are out of scope.

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

Deploy Server

Other Tools