Skip to main content
Glama

Feed one event into a signal session

observe

Forwards an event to a session's observation stream so the session can evaluate it and return a verdict. Use it to feed homogeneous event data matching each session kind's required fields.

Instructions

Forwards one event to the session instance's observe(). Fill only the fields the session's kind uses (see list_signals): herd-phase / activity-phase / vote-brigading / herd-tightness use { identity, ts } (vote-brigading also takes accountCreatedTs); seat-occupancy and room-guard use { type, identity, ts, accountCreatedTs? }; room-hop uses { identity, room, ts }; reconnect-storm uses { source, kind, ts }. ts is a millisecond timestamp. Returns the library's observation object (e.g. { status, counted }). Feed ONE homogeneous stream per session.

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": {
      "sessionId": "<sessionId>"
    },
    "name": "observe"
  }
}

Input Schema

NameRequiredDescriptionDefault
tsNoMillisecond timestamp of the event.
kindNoreconnect-storm only: socket event kind.
roomNoroom-hop only: the room joined.
typeNoseat-occupancy / room-guard only: the seat-lifecycle event type.
sourceNoreconnect-storm only: session/account key - never an IP address.
identityNoAuthenticated identity (all kinds except reconnect-storm).
sessionIdYes
accountCreatedTsNoseat-occupancy / room-guard / vote-brigading: account creation time in ms, when known.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.8.0

TDQS

A4.3/5.0
Behavior4/5

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

With no annotations, the description carries the burden well: it documents per-kind field routing, the millisecond timestamp unit, the returned observation object shape ({ status, counted }), and the homogeneity constraint on the event stream. It omits what happens on a kind/field mismatch and whether events persist, which are the remaining behavioral unknowns.

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?

Front-loaded with purpose, then a compact kind-to-fields table in prose; nearly every clause carries information. The dense parenthetical enumeration reads as a run-on and forces re-parsing for the seat-occupancy/room-guard case, but nothing is wasted.

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?

No output schema, and the description compensates by naming the return object. Combined with complete per-kind field guidance for an 8-parameter tool, an agent has what it needs to invoke correctly; only sessionId provenance and error behavior are unstated.

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

Parameters4/5

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

Schema coverage is already 88%, so the baseline is 3, but the description adds real value by mapping each parameter subset to its signal kind (e.g. room-hop needs { identity, room, ts }) — a relationship no single parameter entry expresses. Minor duplication with the schema's own "only" qualifiers keeps it below 5.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ("Forwards one event to the session instance's observe()") and immediately scopes it by signal kind. An agent can tell this single-event sink apart from evaluators or listers named in the sibling set without opening the schema.

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

Usage Guidelines4/5

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

Gives a clear operational rule: fill only the fields the session's kind uses, and "Feed ONE homogeneous stream per session," with a pointer to list_signals for kind discovery. It stops short of naming alternatives such as observe_reference or explaining when to prefer one over the other.

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