Skip to main content
Glama

Take a screenshot of a page

screenshot_url

Render one page in a browser and return a picture of it (JPEG, the visible window), with its title and what it cost. Use it to see a page as a person would: its layout, a chart, a banner, what a page looks like after browser steps. For the page's text use scrape_urls; its formats="markdown,screenshot" gives a link to the picture instead of the picture. Inputs: url, one absolute http(s) URL. viewport 'mobile' renders as a phone. actions are browser steps run first, as in scrape_urls' config, e.g. [{"type": "click", "selector": "#accept"}] or [{"type": "scroll", "times": 3}]. wait_ms waits that long after the steps. Cost: 4 credits for the browser, +1 for the picture; credits in the answer is what this call cost. A render that gives no picture is never charged for the picture, and credits says what it did cost. A page the site refuses is reported as blocked and is free. Errors: no picture comes back with code 'no_screenshot', the reason the browser gave and credits. Needs write access; a read-only connection is refused with code 'read_only'.

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

Input Schema

NameRequiredDescriptionDefault
urlYesThe absolute http(s) URL to picture.
actionsNoBrowser steps run before the picture, as config.actions takes them; omit for none.
wait_msNoMilliseconds to wait after the steps, 0 to 10,000 (default 0).
viewportNo'desktop' (default) or 'mobile', a phone's window and identity.desktop

Output Schema

NameRequiredDescriptionDefault
idNoThe extraction's id; get_job(kind='extract', id=...) reads the page.
urlNoThe page pictured.
codeNoOnly on a failure: no_screenshot (the browser gave no picture; error says why), or the API's code.
bytesNoThe picture's size in bytes.
errorNoOnly when the call failed: what went wrong, in words an assistant can act on.
titleNoThe page's title.
detailNoOnly on a failure: the API's own wording, when the error was rephrased.
statusNoOnly on a failure: the HTTP status code.
creditsNoWhat this call cost, as the API reported it; with no picture, what the render cost without one.
pageStatusNook, thin, blocked or error: how the page read.
request_idNoOnly on a failure: the API's request id, null when none was sent.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedOutput schema / properties / credits / description
      Previous value: -"What the page and its picture cost."New value: +"What this call cost, as the API reported it; with no picture, what the render cost without one."
  2. Added

TDQS

A4.8/5.0
Behavior5/5

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

Annotations only declare write, open-world, non-idempotent, non-destructive; the description adds the full operating profile: the 4-credit browser charge plus 1 for the picture, that a failed render is never charged for the picture, that a site-refused page is reported as 'blocked' and is free, the 'no_screenshot' error with the browser's reason, and that a read-only connection is rejected with 'read_only'. This is exactly the kind of cost, permission, and failure 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?

Front-loaded with the core action, then segmented into Inputs, Cost, and Errors blocks, so an agent can scan to the part it needs. Slightly redundant wording around credits ('credits in the answer is what this call cost' / 'credits says what it did cost') costs it the top mark, but overall every section carries 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?

For a paid, write-access, open-world render tool, the description covers the input contract, side-effect cost model, partial-failure behavior, and the error codes an agent must handle. With an output schema present it need not enumerate return fields, and it correctly limits itself to noting that credits and title come back in the answer.

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 goes beyond it: it explains that viewport 'mobile' renders as a phone's window and identity, warns that url must be an absolute http(s) URL, and supplies concrete actions syntax such as {"type": "click", "selector": "#accept"} and {"type": "scroll", "times": 3} along with ordering semantics (run before the picture, wait_ms after). This meaningfully reduces invocation errors even though the schema already documents each field.

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 one page in a browser and return a picture of it (JPEG, the visible window)' — plus what accompanies the result (title, cost). It is clearly differentiated from scrape_urls, which is named as the text-oriented alternative.

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?

Explicitly says when to reach for this tool ('to see a page as a person would: its layout, a chart, a banner, what a page looks like after browser steps') and when not to ('For the page's text use scrape_urls; its formats="markdown,screenshot" gives a link to the picture instead'). The routing decision is fully resolved inside the description.

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.