Skip to main content
Glama

browser_diff_snapshot

Compare the current browser page state with a prior snapshot to detect added or removed elements, text deltas, and URL changes, helping track page differences.

Instructions

Calculate structural changes (added/removed elements, text deltas, URL changes) between the current page state and a previous snapshot.

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

Input Schema

NameRequiredDescriptionDefault
passiveNoWhether to take the new comparison snapshot in zero-JS passive mode.
previous_snapshotNoOptional previous snapshot text to diff against. If omitted, diffs against the last captured snapshot.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.13.0

TDQS

A3.5/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full behavioral burden. It discloses what the diff reports, but it omits that the operation also captures a new snapshot as a side effect (revealed only indirectly by the 'passive' parameter's schema text) and says nothing about permissions, cost, or failure modes; the 'optional' framing around comparing against the last snapshot is left to 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?

One front-loaded sentence with the diff scope stated first and the diff categories enumerated; there is no filler. It is terse to the point of leaving the snapshot-capture side effect unstated, but nothing is redundant.

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 explain the return values; it does so by naming the three delta categories. It does not explain the default path when previous_snapshot is omitted, though the schema itself covers this, so the gap is modest for a zero-required-parameter tool.

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 both parameters (passive, previous_snapshot) are already documented in the input schema. The description adds no syntax, default behavior, or format detail beyond what the schema states, which is the expected baseline when the schema does the heavy lifting.

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 states a specific verb ('Calculate') and resource ('structural changes ... between the current page state and a previous snapshot') and enumerates the diff categories: added/removed elements, text deltas, URL changes. That is clearly distinct from a plain browser_snapshot, though it does not name any sibling 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 by the phrase 'between the current page state and a previous snapshot', which tells the agent this is a change-detection tool rather than a state-capture tool. There is no explicit when-to-use or when-not-to-use guidance, and no mention of the alternative browser_snapshot or browser_compare_screenshots for visual comparison.

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