Skip to main content
Glama

screenshot_page

Capture a screenshot of the current page or navigate to a URL first, saving it to the sandbox and returning the image when under 200 KB or its file path otherwise.

Instructions

Screenshot the current page (or navigate to url first), saved under the sandbox dir. Up to 200 KB it is also returned as an image; a bigger one only as its file path (inline: false).

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "screenshot_page"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlNo
pathNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/5.0
Behavior4/5

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

Annotations only give readOnlyHint=false and openWorldHint=true; the description adds genuinely new behavior — output is written under the sandbox dir, returned inline as an image when ≤200 KB, and otherwise only as a file path, plus the navigation side effect. It omits rate/limit or wait/render-timing details, keeping it below 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?

Two compact sentences, front-loaded with the action and its conditional variant. The '(inline: false)' aside is slightly cryptic, but nothing is wasted.

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

Completeness3/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 does cover the return channel and size threshold well. However, for a page-rendering tool with an unexplained `path` parameter and no mention of render timing or capture scope (viewport vs full page), an agent still lacks information needed to call it reliably.

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 0%, so the description must carry both parameters. It explains `url` clearly (optional pre-navigation) and hints at the destination directory, but the `path` parameter is never named or explained, leaving half the surface undocumented.

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?

Uses a specific verb+resource ('Screenshot the current page') and adds the conditional navigation behavior, which is enough to tell it apart from save_page_pdf or get_page_html by name alone. It stops short of explicitly naming or contrasting a sibling, so a 4 rather than a 5.

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?

The parenthetical '(or navigate to `url` first)' implies the optional-URL usage pattern, but there is no explicit statement of when to screenshot versus read_page, page_elements, or save_page_pdf. Usage is inferable but not guided.

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