Skip to main content
Glama

browser_watch

Records console messages, exceptions, network requests, and navigations from the active tab, then returns captured events on poll and stops capture on stop.

Instructions

Record page events from the active tab. start begins capturing console messages, exceptions, network requests/responses and navigations (events: console, network, navigation, all). poll returns and clears events since the last poll, plus memory readings. stop ends capture and returns what remains. Keeps the newest 5,000 events. Bound to the tab that was active at start — switching tabs or restarting the browser stops the capture.

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": {
      "action": "<action>"
    },
    "name": "browser_watch"
  }
}

Input Schema

NameRequiredDescriptionDefault
actionYesstart=begin recording, poll=get events since last poll, stop=cleanup
eventsNoEvent types to capture (default: all)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.0.4

TDQS

A3.8/5.0
Behavior4/5

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

With no annotations supplied, this description carries the full behavioral burden and does substantial work: it discloses that poll is destructive-by-clearing ('returns and clears events since the last poll'), the 5,000-event retention cap, and the critical constraint that capture is bound to the tab active at start and dies on tab switch or browser restart. It omits any statement of permissions, error behavior, or what an event/reading actually looks like.

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?

Front-loads the one-line purpose, then sequences the three actions in invocation order, then closes with retention and binding constraints. Every sentence carries distinct information; nothing is padding.

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?

For a stateful, multi-action recorder with no annotations and no output schema, the definition covers lifecycle, retention limit, and the tab-binding failure mode — the facts an agent most needs. The remaining gap is return-value shape (event fields, memory readings format), which the absence of an output schema pushes partly onto the description.

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%, and the enum descriptions already explain 'start=begin recording, poll=get events since last poll, stop=cleanup' plus the events filter and its 'all' default. The description restates those meanings rather than adding syntax, defaults, or edge cases beyond the schema, so baseline 3 applies.

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 ('Record page events from the active tab') and enumerates its three sub-operations, so the agent knows this is a continuous event recorder rather than a one-shot inspector. It never names the adjacent siblings it overlaps with (e.g. browser_console, browser_network), so differentiation from those must be inferred from the 'record/capture' framing.

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 start/poll/stop lifecycle implies the intended workflow (begin capture, repeatedly drain, stop), and 'poll returns and clears events since the last poll' hints at a loop pattern. However, there is no explicit when-to-use guidance and no stated alternatives for getting console or network data, which the listed siblings clearly also do.

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