Skip to main content
Glama

Web screenshot: render a page in headless Chrome and return the image

web_screenshot
Read-onlyIdempotent

Use when an agent must see how a page looks (layout, charts, visual QA, previews), not just its text. Input: url, width (320-1920, default 1280), full_page=1 for the whole page, format png or jpeg (default). Output: JSON imageBase64 (decode to the image), contentType, bytes, viewport. Renders JavaScript. Daily cap or bad URL refused before payment. Use instead: render_png for your own HTML or Markdown; render_pdf for a PDF. Example: ?url=https://example.com/ Price: $0.01 per call, paid in USDC (Base, Monad, Polygon, Arbitrum or Solana) via x402.

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

Input Schema

NameRequiredDescriptionDefault
urlYesPublic http(s) page URL
widthNoViewport width in px (default 1280; height = 0.625 x width)
formatNoImage format (default jpeg)
full_pageNo1 = capture the whole scrollable page

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • removedInput schema / additionalProperties
      Removed value: -false
  2. Changed1 schema field changed
    • addedInput schema / additionalProperties
      Added value: +false
  3. Changed1 schema field changed
    • removedInput schema / additionalProperties
      Removed value: -false
  4. Added

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, openWorld and non-destructive, so the safety profile is covered. The description adds genuinely new behavior: JavaScript is rendered, a daily cap or bad URL is refused before payment, and the call costs $0.01 in USDC via x402 across named chains. It does not discuss latency or failure modes beyond the cap/URL case, so it stops short of a 5.

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?

Front-loads the use case, then uses labeled segments (Input, Output, Use instead, Example, Price) so an agent can scan quickly. It is dense and slightly overpacked with payment detail, but nearly every clause carries actionable information.

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 shape (JSON with imageBase64 to decode, contentType, bytes, viewport), which is exactly what an agent needs to consume the result. Combined with the input constraints and cost model, nothing essential is missing for a 4-parameter read tool.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3, but the description adds a constraint the schema lacks: width is bounded to 320-1920 with default 1280, and format is png or jpeg with jpeg as default. It also restates full_page=1 semantics, which the schema already covers, so the gain is real but partial.

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 ('render a page in headless Chrome and return the image') and frames the intent as visual inspection (layout, charts, visual QA, previews) rather than text. This clearly separates it from text-oriented siblings like web_read and from render_png/render_pdf.

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

Usage Guidelines5/5

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

Gives an explicit when-to-use condition ('must see how a page looks... not just its text') and names alternatives with their selecting conditions: render_png for your own HTML or Markdown, render_pdf for a PDF. Nothing is left to inference about routing.

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