Skip to main content
Glama

screenshot

Read-onlyIdempotent

Capture the current page or a specific element from the latest snapshot, returning the image and saved file path so users can view exactly what the agent sees.

Instructions

Screenshot the current page, or just one element (ref from the latest snapshot).

The image is returned to you AND saved to a file whose path is included; when the user wants to see something, show them that path.

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": {
      "session_id": "<session_id>"
    },
    "name": "screenshot"
  }
}

Input Schema

NameRequiredDescriptionDefault
refNo
full_pageNo
session_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

B3.4/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, and non-destructive, so safety is covered. The description adds genuinely new behavioral facts: the image is returned inline AND persisted to a file whose path is provided, and that path is what should be surfaced to the user. The remaining gap is that it doesn't say what happens if the ref is stale or the page hasn't loaded.

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 short sentences, front-loaded with the core action and followed by the return-file guidance. There is no filler; the line break mid-sentence is purely cosmetic.

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 the right thing by explaining what comes back (inline image plus saved path). However, it leaves the full_page parameter and the session requirement completely unaddressed, which is a meaningful hole for a three-parameter tool.

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

Parameters2/5

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

Schema description coverage is 0%, so the description carries the full burden, yet it only explains ref (an element reference from the latest snapshot). It says nothing about session_id or the full_page flag, and the difference between a viewport capture and a full-page capture is exactly the kind of semantics an agent needs here.

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?

The description gives a specific verb and resource ("Screenshot the current page") plus a scope variant ("or just one element"). An agent can tell it apart from text-oriented siblings like snapshot or read_text, though it never names an alternative explicitly.

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: the ref must come "from the latest snapshot," which hints at an ordering dependency, and the closing line says to show the user the file path. There is no explicit when-to-use versus when-not guidance, and no comparison to snapshot, which is the most likely competing choice for inspecting a page.

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