Skip to main content
Glama

Screenshot API

screenshot
Read-only

Capture any URL as a PNG screenshot. Returns image_base64 (base64 PNG; decode to get raw bytes). Full JS rendering via Playwright, works on SPAs and dynamic content. Params: url (required), width px (default 1280), height px (default 800), full_page boolean, wait_ms. Price: $0.009 USDC per call, paid inside this MCP call via x402 (USDC on Base, Solana, Polygon or Arbitrum). x402 MCP clients such as @x402/mcp pay automatically. Free sample: call with the example input {"url":"https://example.com","width":1280,"height":800}.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
urlYesThe URL to capture
widthNoViewport width in pixels
heightNoViewport height in pixels
wait_msNoWait time after page load in ms
full_pageNoCapture full page height

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior5/5

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

Goes well beyond the annotations by disclosing the return format (image_base64, base64 PNG that must be decoded), the rendering engine (Playwright), and critically the paid-call model: $0.009 USDC per call via x402 on Base/Solana/Polygon/Arbitrum, with auto-payment by compatible clients. That cost/auth behavior is exactly the kind of context annotations cannot convey.

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?

Well front-loaded: verb+resource first, then return format, rendering capability, params, pricing, and a free-sample hint. Dense but each sentence carries useful information; the pricing sentence is long but necessary given the payment requirement.

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

Completeness5/5

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

With no output schema, the description still explains the return value (base64 PNG) and how to consume it, covers the payment prerequisite, and notes dynamic-content support. An agent has everything needed to invoke it correctly.

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 coverage is 100%, so the schema already documents all five parameters and their defaults. The description largely restates them and adds little beyond noting url is required and the default viewport size, so the baseline of 3 is appropriate.

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?

States a specific verb and resource ('Capture any URL as a PNG screenshot') with a clear output format, so an agent knows exactly what it produces. It does not, however, distinguish itself from adjacent siblings like webpage_reader, page_extract, or html_to_pdf, leaving that differentiation to inference.

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: 'Full JS rendering via Playwright, works on SPAs and dynamic content' hints at when this tool is the right choice (JS-heavy pages needing visual capture). No alternative sibling is named and there is no explicit 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