Skip to main content
Glama

snapshot

Capture a compact view of a web page's controls, headings, alerts, or full visible text, scoped by CSS root for targeted UI inspection and testing.

Instructions

Compact page snapshot. mode=interactive (default): controls, headings, alerts. mode=full: also visible text. root=css to scope to part of the page.

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

Input Schema

NameRequiredDescriptionDefault
modeNo
rootNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.2

TDQS

A3.6/5.0
Behavior3/5

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

With no annotations, the description carries the full burden; it does disclose what each mode returns and that root narrows scope, and 'snapshot' implies a read-only capture. It omits whether an open page/session is required, whether output is truncated or size-limited, and whether repeated calls return only changes rather than the whole page.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three telegraphic clauses, front-loaded with the resource, then parameters in schema order. No filler, and the enumerable choice is stated inline where an agent will read it.

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?

For a two-optional-parameter read tool with no output schema and no annotations, the description covers parameters and rough return shape, which is much of what matters. It still leaves out the call prerequisite (an open page) and output size/format behavior, which an agent needs to invoke it correctly the first time.

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 0%, so the description must compensate, and it largely does: it states mode's default value and the concrete content difference between 'interactive' and 'full', and explains that root takes a CSS selector to scope output. It stops short of giving an example selector or clarifying what happens if root matches nothing.

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?

"Compact page snapshot" names the resource and the general operation, and the mode/root clauses reveal that it extracts page structure (controls, headings, alerts, optional visible text) rather than pixels. It does not explicitly distinguish itself from the sibling 'screenshot' or 'evidence', so sibling differentiation is left implicit.

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?

It gives real guidance on choosing a mode (interactive as default, full when visible text is needed) and on scoping with root, which is useful usage guidance. However, there is no statement of when to prefer this over 'screenshot' or 'evidence', and no preconditions such as whether a page must first be opened.

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

Deploy Server

Other Tools