Skip to main content
Glama

Read a URL

fetch
Read-only

Reads a URL in a hidden browser page using its cookies and network, returning rendered HTML as Markdown or other content as text; also performs origin-based API calls and reports bot challenges or blocks.

Instructions

Reads a URL through the browser, with its cookies, fingerprint and network, in a hidden page that never becomes a tab: HTML is rendered and returned as Markdown, anything else as text. A method, headers or a body make it an API call from a page of the URL's origin. Says when a bot challenge or a block got in the way. Needs an open browser (headless is fine).

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

Input Schema

NameRequiredDescriptionDefault
urlYes
bodyNo
modeNoraw: the response as it is, even HTML.
linksNoAlso list every link on the page.
methodNo
headersNo
save_toNoA new file to save the body in (a download, such as a Google Docs export: /export?format=docx); without it a binary body goes to a file under the profile. A text body is saved as the response's text; an HTML page as the Markdown it is rendered to, unless mode is raw. A file that already exists, or a folder that cannot be made, is refused before the request goes out. A failure to write afterwards is said in the answer, which still carries the response.
max_charsNoHow much of the text to return (default 40,000); the rest is saved to a file.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.1.2
    • addedInput schema / properties / save_to
      Added value: +{
      +  "description": "A new file to save the body in (a download, such as a Google Docs export: /export?format=docx); without it a binary body goes to a file under the profile. A text body is saved as the response's text; an HTML page as the Markdown it is rendered to, unless mode is raw. A file that already exists, or a folder that cannot be made, is refused before the request goes out. A failure to write afterwards is said in the answer, which still carries the response.",
      +  "type": "string"
      +}
  2. First observedv0.1.0

TDQS

A3.9/5.0
Behavior4/5

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

Goes well past readOnlyHint=true: it reuses the browser's cookies and fingerprint, reports bot challenges and blocks rather than silently failing, explains truncation past max_chars to a file, and states that save_to refuses an existing file before the request and reports write failures in the answer. The only tension left implicit is that arbitrary method/body values can issue non-GET calls and save_to writes to disk, which sits uneasily with a read-only hint, but the description does disclose both behaviors.

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?

Front-loads the verb and resource, then mechanism, then edge behavior, in five tight sentences with no filler. Dense but every clause carries operational information an agent needs.

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 an eight-parameter tool with no output schema, it covers the important unknowns: output format by content type, truncation, file saving, failure reporting, and the browser prerequisite. What is missing is minor, such as how links=true affects the returned text or what the response envelope looks like.

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 50%, and the description compensates for the undocumented parameters by explaining the interaction: a method, headers or body together make this an API call scoped to the URL's origin. It also clarifies rendering-vs-text defaults that determine what mode produces, adding meaning beyond the bare schema.

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?

States a concrete verb and resource ("Reads a URL through the browser") and pins down the mechanism: a hidden page that never becomes a tab, HTML returned as Markdown, anything else as text. That mechanism implicitly separates it from browser_open/navigate/observe, though no sibling is named explicitly.

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?

Gives a real prerequisite ("Needs an open browser (headless is fine)") and a usage rule (method/headers/body turn it into an API call from the URL's origin). It never says when to prefer this over navigate, observe or screenshot, or when not to use it, so the agent must infer the boundary from the mechanism.

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