Skip to main content
Glama

snapshot

Capture a bounded accessibility tree for a specified tab and return a truncation flag, so automation can detect incomplete page structure data.

Instructions

Return a bounded accessibility snapshot and its truncation flag.

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": {
      "tab_id": "<tab_id>"
    },
    "name": "snapshot"
  }
}

Input Schema

NameRequiredDescriptionDefault
tab_idYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.3/5.0
Behavior3/5

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

With no annotations, the description carries the load: 'bounded' and 'truncation flag' usefully disclose that the snapshot is size-capped and that truncation is reported, which is real behavioral value. It omits whether the tab must exist/be active, what happens on error, and whether the call is read-only (implied but unstated).

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?

One front-loaded sentence with no filler; the scoping concept ('bounded') and the truncation flag are both packed into a single clause.

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?

An output schema exists, so return shape need not be described, and the tool is simple with one required parameter. Still, an agent lacks any statement of the tab_id semantics or the precondition that the target tab be open, leaving a meaningful gap for a browser-automation call.

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% for the single parameter, so the description must compensate and does not explain tab_id at all (format, whether it must be an existing/active tab, whether it defaults). This is a small penalty area, but the criterion calls for compensating on low coverage and the description adds nothing 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?

States a specific verb and resource ('Return a bounded accessibility snapshot') plus a distinguishing detail ('its truncation flag'), so the agent knows this yields DOM/accessibility structure rather than an image or text dump. It does not explicitly differentiate itself from text/link-extraction siblings, but the resource is concrete enough to be actionable.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

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

No when-to-use guidance is given: nothing says to prefer this over fetch_text, fetch_links, or screenshot, nor any precondition such as the tab needing to be loaded. The only implied usage is that an agent wanting page structure would call it, which is inference rather than guidance.

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