Skip to main content
Glama

scrape_webpage

Scrape any webpage and return content as markdown, html, text, or json. Pay-per-call web scraping for AI agents.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
urlYesThe URL to scrape (http or https)
formatNoOutput format (default: markdown)
wait_msNoMilliseconds to wait after page load (max 10000)
viewportNoViewport size (default: desktop)
wait_forNoCSS selector to wait for before extracting

TDQS

C2.9/5.0
Behavior2/5

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

Annotations only include a title, providing no read-only or destructive hints, so the description must bear the full burden. It discloses the pay-per-call cost model, which is a useful behavioral trait, but it omits critical behaviors like whether JavaScript is executed, how errors are handled, rate limits, or handling of dynamic content. For a scraping tool, these gaps are significant, making the description only minimally transparent.

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 description is two sentences long and front-loaded with the intended purpose. The first sentence states the core action and output formats; the second provides the pay-per-call context. Every word earns its place, with no fluff or redundancy.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With no output schema and only a minimal annotation, the description carries the burden of explaining what the agent gets back. It only says 'return content' without detailing the JSON structure, error behavior, or limitations. While the parameter schema is rich, the description lacks essential context for a tool with 5 parameters, making it incomplete for reliable invocation.

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?

The input schema has 100% coverage with descriptions for all parameters, so the baseline is 3. The description adds no extra meaning beyond the schema: it only repeats the output formats already listed in the format parameter and provides no context for wait_ms, viewport, or wait_for. Thus, the parameter semantics add no value beyond the structured definition.

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 clearly states the tool's function: scraping any webpage and returning content in markdown, html, text, or json. It uses a specific verb (scrape) and resource (webpage), making the purpose unambiguous. However, it does not explicitly distinguish itself from sibling tools like extract_structured_data or extract_metadata, 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 Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides no explicit guidance on when to use this tool versus alternatives. It mentions 'pay-per-call web scraping for AI agents' which hints at cost-sensitive usage, but it doesn't state any context or exclusions relative to sibling tools such as screenshot_webpage or extract_structured_data. This leaves the agent without clear selection criteria.

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.

TDQS

A3.7/5.0
Disambiguation5/5

Each tool has a clearly distinct purpose: session creation, metadata extraction, structured data extraction, multi-step workflows, general scraping, and screenshots. Despite some conceptual overlap between extract_* and scrape_webpage, the descriptions make the boundaries clear.

Naming Consistency5/5

All tool names follow a consistent verb_noun pattern (create_browser_session, extract_metadata, extract_structured_data, run_workflow, scrape_webpage, screenshot_webpage). The style is uniform with lowercase and underscores throughout.

Tool Count5/5

Six tools is well-scoped for a web scraping server. Each tool covers a distinct capability without unnecessary redundancy, and the count feels right for the domain.

Completeness5/5

The tool set provides comprehensive coverage for scraping workflows: stateless scraping, stateful sessions, metadata extraction, AI-powered structured extraction, multi-step automation, and screenshots. There are no obvious missing operations that would hinder typical scraping tasks.

Resources