Skip to main content
Glama

watch

Monitor a browser tab in the background and queue an event when target text appears, disappears, or matching query lines change; a wait call blocks until an event arrives.

Instructions

Watch a tab in the background and queue an event when text appears or disappears, or when lines matching query change. wait blocks until an event arrives.

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

Input Schema

NameRequiredDescriptionDefault
idNoremove: watch id
allNoremove: all watches
runNoCLI only: shell command to run on each event; it gets REINS_EVENT_FILE
tabNoTab id. Default: your own target tab (each agent session gets its own)
goneNoFire when text disappears
nameNo
onceNoRemove after the first event (default true)
textNo
everyNoSeconds between checks, default 60
queryNoOnly watch lines with these words (a|b = either)
actionNo
reloadNoReload the tab before each check, for pages that do not update live
browserNochrome, edge, ... (only when several browsers are connected)
timeoutNowait: ms, default 60000; 0 = until an event

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.0.0

TDQS

B3.1/5.0
Behavior2/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 background monitoring and event queueing, but it omits material side effects such as shell-command execution via run, watch removal, tab reloads, and the lifecycle or format of queued events.

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?

The definition is two tight, front-loaded sentences with no wasted wording. The second sentence is terse and could be clearer about whether wait refers to an action value or the sibling tool, but the structure is otherwise efficient.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 14-parameter tool with four actions and no output schema or annotations, the description covers only the watch and wait behaviors. It leaves add/list/remove semantics, event output, and lifecycle details unaddressed, so an agent lacks enough context to use all modes confidently.

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 high at 79%, so the schema already documents most parameter meaning. The description maps trigger conditions to text and query, but it adds little about action, id/all, once, every, timeout, reload, or run beyond what the schema provides.

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 (watch) and resource (a tab) plus the trigger conditions: text appears/disappears or matching lines change. It also explains that events are queued and that wait blocks, though the final sentence is ambiguous because wait is both an action and a sibling tool.

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 description implies when to use background watching versus a blocking wait, but it does not explicitly route the agent between this tool and the sibling wait tool. It also omits guidance for the add, list, and remove actions exposed by the schema.

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