Skip to main content
Glama
alterlab-mcp-server

alterlab-mcp-server

Capture Screenshot

alterlab_screenshot
Read-onlyIdempotent

Capture full-page PNG screenshots of any URL in a real headless browser to verify layout, charts, or visual proof; use when page appearance matters more than text content.

Instructions

Get a full-page PNG image of one URL, rendered in a real headless browser, when you need to see the page rather than read its text. Use when layout, charts or visual proof matter; for text content use alterlab_scrape. Cost: $0.004 per screenshot (browser tier). Use wait_for to wait for an element and wait_until to control load timing. Pass actions (for example dismiss_consent or evaluate) to prepare the page; the screenshot is captured after they run and action_results is returned. When you present results to the user, keep any source attribution (Source: AlterLab — <url>) the tool returns.

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

Input Schema

NameRequiredDescriptionDefault
urlYesURL to take a screenshot of
cookiesNoInline cookies for a one-off authenticated screenshot
timeoutNoRequest timeout in seconds (1-300, API default 90)
locationNoGeo-targeting parameters for localized content scraping. Controls proxy country routing, Accept-Language header, and browser locale.
wait_forNoCSS selector to wait for before taking screenshot
use_proxyNoRoute through AlterLab's premium proxy (+$0.0002)
session_idNoUUID of a stored session, to screenshot a logged-in page
wait_untilNoPage load event to wait for before screenshotnetworkidle
proxy_countryNoISO country code for proxy geo-targeting. Requires use_proxy=true

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed7 schema fields changedv1.9.0
    • addedInput schema / properties / cookies
      Added value: +{
      +  "additionalProperties": {
      +    "type": "string"
      +  },
      +  "description": "Inline cookies for a one-off authenticated screenshot",
      +  "type": "object"
      +}
    • addedInput schema / properties / location
      Added value: +{
      +  "additionalProperties": false,
      +  "description": "Geo-targeting parameters for localized content scraping. Controls proxy country routing, Accept-Language header, and browser locale.",
      +  "properties": {
      +    "country": {
      +      "description": "ISO 3166-1 alpha-2 country code for geo-targeting (e.g., 'US', 'DE', 'JP'). Routes request through a proxy in the specified country.",
      +      "maxLength": 2,
      +      "minLength": 2,
      +      "type": "string"
      +    },
      +    "language": {
      +      "description": "ISO 639-1 language code (e.g., 'en', 'de', 'ja'). Sets the Accept-Language header and browser locale.",
      +      "maxLength": 5,
      +      "minLength": 2,
      +      "type": "string"
      +    }
      +  },
      +  "type": "object"
      +}
    • addedInput schema / properties / proxy_country
      Added value: +{
      +  "description": "ISO country code for proxy geo-targeting. Requires use_proxy=true",
      +  "type": "string"
      +}
    • addedInput schema / properties / session_id
      Added value: +{
      +  "description": "UUID of a stored session, to screenshot a logged-in page",
      +  "format": "uuid",
      +  "type": "string"
      +}
    • addedInput schema / properties / timeout
      Added value: +{
      +  "description": "Request timeout in seconds (1-300, API default 90)",
      +  "maximum": 300,
      +  "minimum": 1,
      +  "type": "integer"
      +}
    • addedInput schema / properties / url / maxLength
      Added value: +2083
    • addedInput schema / properties / use_proxy
      Added value: +{
      +  "description": "Route through AlterLab's premium proxy (+$0.0002)",
      +  "type": "boolean"
      +}
  2. First observedv1.5.0

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare read-only, idempotent, non-destructive, open-world, so the description does not need to restate safety. It adds genuinely new context: per-call pricing ($0.004, browser tier), the ordering guarantee that the capture happens after any page-preparation actions run, that action_results is returned, and a source-attribution obligation when presenting to the user. The only weakness is that the referenced 'actions' parameter and 'action_results' output are not present anywhere in the schema.

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 purpose, then usage routing, then cost, then parameter tips and attribution. Six sentences with almost no filler, though the trailing attribution sentence could be shortened without losing meaning.

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?

There is no output schema, so the description must cover returns; it does name the PNG image, action_results, and the attribution string. For a 9-parameter, nested-object tool with full annotation coverage, that is nearly complete; the gaps are the phantom 'actions' parameter and no mention of failure behavior or image dimensions.

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 the baseline is 3 and the schema already documents url, cookies, timeout, location, wait_for, wait_until, session_id, use_proxy and proxy_country. The description only adds relational meaning ('use wait_for to wait for an element and wait_until to control load timing'), which largely restates the schema, and it references an 'actions' parameter that does not exist in the input schema, which risks an invalid call.

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 (full-page PNG of one URL rendered in a real headless browser) and immediately frames the distinction as seeing the page versus reading its text, naming alterlab_scrape as the text alternative. An agent can route between the two siblings without opening 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 Guidelines5/5

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

Gives an explicit positive condition ('when layout, charts or visual proof matter') and an explicit exclusion with the alternative ('for text content use alterlab_scrape'). Nothing about when-not-to-use is left to inference.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.