Skip to main content
Glama

Capture screenshot

capture_screenshot

Capture a screenshot of a web page (the current 'before' state of a UI or website) and store it; returns a signed URL. The AI can browse to the exact pages that need a before/after and grab them automatically. Pair the URL with an 'after' (generate_image or a later screenshot) via add_before_after. Uses this tenant's configured screenshot provider (set_screenshot_provider — browserless or cloudflare); if none, falls back to function secrets.

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

Input Schema

NameRequiredDescriptionDefault
urlYesAbsolute http(s) URL of the page to capture
widthNoViewport width in px (default 1280)
heightNoViewport height in px (default 800)
full_pageNoCapture the full scrollable page (default false = just the viewport)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior4/5

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

Beyond the annotations, the description discloses that the image is persisted, that a signed URL comes back, and that rendering depends on a tenant-configured provider (browserless or cloudflare) with a fallback to function secrets. That provider dependency and fallback are real behavioral context an agent cannot infer from openWorldHint/readOnlyHint alone. It does not mention failure modes such as an unconfigured provider or slow pages.

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?

The core purpose, side effect, and return value are front-loaded in the first sentence, and the closing provider note is useful. The sentence 'The AI can browse to the exact pages that need a before/after and grab them automatically' is soft, motivational phrasing that partly restates the usage guidance already given.

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 four-parameter tool with no output schema, the description covers purpose, storage, return format, downstream pairing, and provider configuration, which is most of what an agent needs. The remaining gap is error/failure behavior when the provider is unset or the page cannot be reached.

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 url, width, height, and full_page are already fully documented with their defaults. The description adds no additional semantics such as valid ranges or how full_page interacts with fixed dimensions, leaving the schema to do all the work.

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'), plus the side effect (stores it) and the return value (signed URL). It also implicitly separates itself from generate_image by casting the output as the 'before' state, so an agent can tell the two apart without reading either schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

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

Explicitly frames the use case: grab the 'before' state, then pair it with an 'after' via add_before_after, naming generate_image as the alternative for the after side. It stops short of stating when not to use this tool (e.g. non-http schemes, pages requiring auth), so it is strong context rather than full when/when-not guidance.

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