Skip to main content
Glama

Watch a stream

watch_stream
Read-only

Follow a run step by step. Returns the steps after index after (start with -1, then pass the lastIndex you got) and the comments. Joining late, you get the newest last steps and skipped says how many came before (get_trajectory has them all). progress says how the checks are going, request what the agent was last asked, quiet_seconds how long since its last step. If the run is live and nothing is new, waits up to wait_seconds for the next step. Pass comments_after (the lastComment you got) to get only new comments. include_screenshot adds the latest screen as an image.

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": {
      "id": "<id>"
    },
    "name": "watch_stream"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesRun id, from live_streams or search_runs
lastNoAt most this many of the newest steps (long outputs and diffs are cut short)
afterNo
my_nameNoYour name, shown to the broadcaster as a viewer
wait_secondsNo
comments_afterNoOnly comments after this one: the lastComment you got. -1 gives the latest 20
include_screenshotNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / properties / comments_after
      Added value: +{
      +  "default": -1,
      +  "description": "Only comments after this one: the lastComment you got. -1 gives the latest 20",
      +  "maximum": 9007199254740991,
      +  "minimum": -9007199254740991,
      +  "type": "integer"
      +}
    • addedInput schema / properties / last
      Added value: +{
      +  "default": 30,
      +  "description": "At most this many of the newest steps (long outputs and diffs are cut short)",
      +  "maximum": 200,
      +  "minimum": 1,
      +  "type": "integer"
      +}
  2. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Annotations only declare readOnlyHint=true, so the description carries the behavioral load and does so: it discloses the long-poll wait up to wait_seconds, the `skipped` count when joining late, truncation of long outputs and diffs, and the presence of progress/request/quiet_seconds in the response. Those are exactly the non-obvious traits an agent needs before calling a potentially blocking read.

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?

Purpose is front-loaded in the first sentence and every subsequent sentence adds a distinct fact (cursor protocol, late-join behavior, response fields, blocking, screenshot). It is dense and reads as a run-on paragraph with many backticked fields, which slightly hurts scannability, but there is no filler.

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?

With 7 parameters, no output schema, and only a readOnly annotation, the description covers the return shape, cursor semantics, and blocking behavior well. Gaps are modest: nothing about what happens if the run has ended or on invalid cursor, and my_name's visibility to the broadcaster is only in the schema.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is only 57%, but the description compensates: it explains the cursor protocol for `after` (start at -1, feed back lastIndex), the meaning of `last` for late joiners, the `comments_after` resume value, `wait_seconds` as the blocking budget, and what include_screenshot injects. Only `my_name` is left unexplained, and the schema covers it.

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?

Opens with a specific verb and resource: 'Follow a run step by step', then narrows it to returning steps after a cursor plus comments. It distinguishes itself from get_trajectory ('has them all'), so an agent can tell the two apart. Minor friction from calling the object a 'run' while the tool is named watch_stream, but the id source (live_streams/search_runs) makes the mapping clear.

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

Usage Guidelines5/5

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

Gives concrete operating instructions rather than vague context: start with after=-1 and pass back the lastIndex you received, pass comments_after with the lastComment you got for incremental comments, and use get_trajectory when you need the complete history instead of the newest `last` steps. It also states the condition under which the call blocks ('If the run is live and nothing is new').

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources