Skip to main content
Glama

Fetch a web page (verified)

fetch_page
Read-only

Fetch a public URL and get its content only if it really loaded. Use it when a page comes back as a block page, CAPTCHA, login wall or empty JavaScript shell, or when you need to know the content is real. It checks the page, retries through other routes (including a headless browser) automatically, and bills only on success. Works without a key up to a free daily allowance; a free key (500 credits) lifts it. Returns markdown by default. If ok is false, the reason says why (e.g. blocked:cloudflare, http_404, expect_text_missing): don't retry the same URL with the same settings.

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_page"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlYesPublic http(s) URL
modeNomarkdown (default, main content), html (raw page), rendered (always use a browser)
max_costNoMost credits to pay: 1 static only, 2 (default) allows a browser, 10-25 allows premium unblocking (needs a key)
expect_textNoText that must appear on the page for it to count as loaded, e.g. a product name
expect_selectorNoCSS selector that must match

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / max_cost / description
      Previous value: -"Most credits to pay: 1 static only, 2 (default) allows a browser, 10-25 allows premium unblocking"New value: +"Most credits to pay: 1 static only, 2 (default) allows a browser, 10-25 allows premium unblocking (needs a key)"
  2. Changed1 schema field changed
    • changedInput schema / properties / max_cost / description
      Previous value: -"Most credits to pay: 1 static only, 5 (default) allows a browser, 10-25 allows premium unblocking"New value: +"Most credits to pay: 1 static only, 2 (default) allows a browser, 10-25 allows premium unblocking"
  3. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Annotations only declare readOnlyHint and openWorldHint, but the description adds substantial behavior: automatic retries through other routes including a headless browser, success-only billing, a keyless free daily allowance, and a paid key. It also discloses the failure contract (ok is false plus a coded reason such as blocked:cloudflare), which an agent cannot infer from annotations or schema.

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?

The load-verification promise is front-loaded, followed by when-to-use, fallback behavior, billing, and the failure contract in tight order. There is no filler; even the cost and key sentences carry decision-relevant information.

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, single-sibling tool with no output schema, the description still explains the default return format (markdown), the error shape, and the retry economics. An agent has everything it needs to call this correctly and to interpret a failure.

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 meaning beyond the field text: billing happens only on success, so max_cost is a cap rather than a charge, and expect_text/expect_selector failures surface as expect_text_missing rather than retries. That connects the parameters to observable outcomes.

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 description opens with a specific verb and resource ('Fetch a public URL') and adds a distinguishing scope: content is returned only if the page genuinely loaded. That is far more specific than a plain fetch. It does not, however, distinguish itself from the only sibling, domain_reliability, so it stops short of a 5.

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?

It names the exact situations to reach for this tool: block pages, CAPTCHA, login walls, empty JavaScript shells, or when content authenticity matters. It also gives explicit negative guidance ('don't retry the same URL with the same settings' when ok is false), which is the rare when-not clause most definitions omit.

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.