Skip to main content
Glama

captureScreenshot

captureScreenshot
Read-onlyIdempotent

Captures a PNG screenshot of any web page using KnockKnock Browser (headless Chromium) with desktop or mobile viewport emulation.

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": "captureScreenshot"
  }
}

Input Schema

NameRequiredDescriptionDefault
geoNoOptional country code for residential proxy routing (e.g. 'US').
urlYesTarget web page URL to capture.
deviceNoViewport profile ('desktop' 1440x900 or 'mobile' 390x844).
devicesNoOptional array of viewports to capture in a single session (e.g. ['desktop', 'mobile']).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.3/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, openWorldHint and destructiveHint=false, so safety is covered. The description adds genuinely new behavioral context — PNG format, headless Chromium rendering, and desktop/mobile viewport emulation — but says nothing about latency, proxying behaviour, or whether the image is returned inline versus as a URL.

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?

A single front-loaded sentence with no filler; the verb, output format, and rendering context all appear immediately.

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

Completeness3/5

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

With four parameters, only one required, and no output schema, the description should say what actually comes back (inline image, base64, or a link) and how a multi-viewport 'devices' request differs from 'device'. Annotations cover the safety profile, but the return contract is left unexplained.

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 100%, so every parameter (url, geo, device, devices) is already documented in the schema, which sets the baseline at 3. The description's mention of 'desktop or mobile viewport emulation' only loosely echoes the device parameter and adds no syntax or interaction detail, such as how device and devices combine.

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 pairs a specific verb ('Captures') with a specific resource ('a PNG screenshot of any web page') and names the rendering stack (headless Chromium) and viewport emulation. That distinguishes it from scrapePage/batchScrape/extractStructuredData, which return data rather than an image, though it never explicitly contrasts itself with those siblings.

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?

There is no when-to-use or when-not guidance and no named alternative such as scrapePage for text extraction. The agent must infer that this tool is for visual capture simply from the noun 'screenshot'; no prerequisites or exclusions are stated.

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