Skip to main content
Glama

fh_fetch_url

Fetch any URL as Markdown with cached retrieval and browser fallback for blocked or script-rendered pages; verify links via title-only output.

Instructions

Fetch a web page as Markdown: the standard fetch tool, cached and hardened. Use it for any URL instead of a plain fetch or a browser. A page fetched in the last 30 days is answered from disk in milliseconds; a page a plain fetch cannot get (403, rate limit, bot wall, script-rendered) is fetched through the configured browsers and unlockers in this one call. PDFs come back as Markdown; XML, JSON and other text as is. To verify a link, title_only returns just its title line. A PubMed, ClinicalTrials.gov, DailyMed or doi.org URL is answered from the library's record of it.

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

Input Schema

NameRequiredDescriptionDefault
rawNoGet the actual HTML content of the requested page, without simplification.
urlYesURL to fetch
max_lengthNoMaximum number of characters to return (default 5000).
title_onlyNoReturn only the page's title line. The whole page is still fetched and stored; use this to verify that a link resolves and what it points to.
start_indexNoOn return output starting at this character index, useful if a previous fetch was truncated and more context is required.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.17

TDQS

A4.4/5.0
Behavior5/5

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

With no annotations provided, the description carries the full burden and does so well: it discloses the 30-day disk cache with millisecond returns, the fallback chain through configured browsers and unlockers for 403/rate-limit/bot-wall/script-rendered pages, and the format conversions (PDF to Markdown, XML/JSON as-is). It also discloses the special-case behavior for scholarly/DOI URLs, which an agent could not infer from the schema.

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?

Roughly five dense sentences, each carrying distinct information, with the core purpose and caching/fallback behavior front-loaded. Slightly encyclopedic in the middle, but no sentence is wasted.

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 five-parameter fetch tool with no annotations and no output schema, the description covers what is returned (Markdown, title line, raw formats), how caching and fallback work, and when the library-record shortcut applies. An agent has enough to call it correctly without further context.

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%, so all five parameters are already documented in the schema. The description reinforces title_only's verification use case but adds no new semantics for raw, max_length, or start_index, 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 web page as Markdown') and immediately positions it as the general-purpose fetch tool ('the standard fetch tool, cached and hardened'), which distinguishes it from the domain-specific library siblings like fh_pubmed_fetch_articles and fh_clinicaltrials_get_study_record.

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?

Explicitly says 'Use it for any URL instead of a plain fetch or a browser,' giving a clear default-selection rule, and notes the title_only path for link verification. It does not explicitly exclude the domain-specific siblings for PubMed/ClinicalTrials/DailyMed URLs, only noting that those are answered from the library's record, so the routing against siblings is implied rather than stated.

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