Skip to main content
Glama

Fetch a web page

web_fetch
Read-only

Render one public web page in a fresh browser and return it as Markdown (default), HTML, plain text or a full-page PNG screenshot encoded as base64, with url, title, content and the status_code the site returned. Narrow the content with target_selector or remove_selector. Alpha. Requires an API key.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
urlYesPublic http:// or https:// URL on the standard port, without credentials
localeNoBrowser locale; default en-US
user_agentNoUser-Agent to send
wait_untilNoNavigation event to wait for; default domcontentloaded
with_linksNoHow Markdown writes links; default inlined
with_iframeNoInclude direct child frames before extraction; default false
with_imagesNoHow Markdown writes images; default all
page_timeoutNoSeconds for browser operations; default 30
respond_withNoOutput format; default markdown. screenshot returns a base64 PNG
remove_selectorNoCSS selector removed before extraction, e.g. "nav, footer"
target_selectorNoCSS selector to extract; falls back to the full page when nothing matches
with_shadow_domNoExpand open shadow roots before extraction; default false
wait_for_selectorNoCSS selector to wait for after navigation

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already convey readOnlyHint and openWorldHint, and the description does not contradict them. It adds meaningful behavioral context beyond those: a fresh browser per request, Alpha maturity, API-key auth requirement, and the fact that returned status_code comes from the site. No rate-limit or failure-mode disclosure, but annotations lower the burden.

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?

Two dense sentences front-load the core action and output options, then add the most useful parameter hints and caveats. Every clause contributes; there is no filler or repetition of schema details.

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 tool with 13 parameters and no output schema, the description covers the essential output shape, the main output-format parameter, content-narrowing parameters, auth, and maturity. It does not cover every edge case, but combined with the parameter descriptions in the schema it is sufficient for correct invocation.

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. The description adds value by mapping output formats to respond_with, mentioning the default format, and explaining target_selector/remove_selector for narrowing content. This goes beyond the bare schema descriptions and helps an agent choose parameters correctly.

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?

Description uses a specific verb ('Render') and resource ('one public web page') and details return formats (Markdown, HTML, text, screenshot) and fields (url, title, content, status_code). This clearly separates it from sibling search tools, which return search results rather than fetching a known page.

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?

The description implies usage by describing what the tool does, but it never explicitly says when to prefer web_fetch over the sibling search tools. It adds useful constraints—'public web page', 'Alpha', and 'Requires an API key'—but stops short of naming alternatives or exclusion conditions.

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.