Skip to main content
Glama

fetchpage

Retrieve content from JavaScript-heavy web pages using browser automation, with automatic cookie management and CSS selector extraction for targeted results.

Instructions

Fetch web pages using browser automation with full JavaScript rendering. Supports automatic cookie management, localStorage, CSS selectors, and dynamic content. Cookies are automatically loaded from local storage if available.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
urlYesThe URL to fetch
timeoutNoTimeout in milliseconds (default: 30000)
waitForNoCSS selector to extract specific content only (optional, extracts only content within this selector)
headlessNoRun browser in headless mode (optional, default: true)
Behavior3/5

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

With no annotations, the description carries full burden. It discloses automatic cookie loading from local storage and JS rendering, but omits details like error handling, detection risks, or headless default behavior (default true is only in 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?

Two concise sentences with the primary action front-loaded. No redundant information; every phrase adds value.

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?

Given 4 parameters and no output schema, the description covers core functionality (browser automation, JS rendering, cookie management) but lacks details on output format or error behavior. Still, it is largely complete for a web-fetch tool.

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?

All 4 parameters have schema descriptions (100% coverage), so the description adds minimal extra meaning. It mentions CSS selectors and dynamic content, which align with waitFor and headless, but does not significantly enhance the schema.

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 description clearly states it fetches web pages with browser automation and full JavaScript rendering, distinguishing it from simple HTTP fetches. It lists specific capabilities (cookie management, localStorage, CSS selectors, dynamic content) that narrow its purpose.

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 use for pages requiring JavaScript rendering but provides no explicit when-to-use or when-not-to-use guidance. No sibling tools are listed, so direct comparison is absent.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/kaiye/mcp-fetch-page'

If you have feedback or need assistance with the MCP directory API, please join our Discord server