Skip to main content
Glama

ScreenAPI

Take a screenshot

take_screenshot
Read-only

Capture a screenshot of a web page (or of raw HTML) and return the image. Cookie banners are removed by default. Each successful capture uses one credit of the ScreenAPI plan.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "take_screenshot"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlNoPublic web page to capture (http or https). Send either url or html.
htmlNoRaw HTML to render instead of a URL.
delayNoWait this many milliseconds before capturing.
widthNoViewport width in pixels (ignored when device is set).
deviceNoDevice preset, e.g. iphone-15-pro, ipad-air, desktop-1920. Call list_devices for all values.
formatNoOutput format. PDF is returned as a file.webp
heightNoViewport height in pixels.
selectorNoCSS selector: capture only this element.
block_adsNo
dark_modeNo
full_pageNoCapture the whole scrollable page instead of the first screen.
block_chatsNoHide chat widgets and popups.
hide_elementsNoComma-separated CSS selectors to hide.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior4/5

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

Annotations cover only readOnly/openWorld, so the description adds real operational context: cookie banners are stripped by default (a hidden page mutation) and each successful capture consumes one credit. It stops short of stating failure/credit-charge behavior or whether capture is synchronous, so it is strong but not complete.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three short sentences with the core capability front-loaded; the billing and cookie-banner notes earn their place. Slightly more could be consolidated, but there is no filler.

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?

With 13 parameters at high schema coverage and no output schema, the definition supplies what the schema cannot: billing cost and the default banner-removal behavior. Missing only edge-case behavior such as failure handling and what a PDF response looks like beyond 'returned as a file'.

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?

Schema description coverage is 85%, so the schema already documents url/html, delay, viewport, device, format, selector and the boolean flags. The description adds only the cookie-banner default, which corresponds to no exposed parameter, so the baseline of 3 applies.

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?

States a specific verb and resource ('Capture a screenshot of a web page (or of raw HTML)') plus the outcome ('return the image'). It also clarifies the two input paths, which distinguishes it cleanly from the only sibling, list_devices.

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?

Usage is implied rather than stated: an agent can infer it is the tool to use when a rendered page image is needed, and the description notes the url-or-html choice. However, no explicit when-to-use/when-not guidance or prerequisites (e.g. credit exhaustion handling) are given.

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.

Resources