Skip to main content
Glama

session_events

Read-onlyIdempotent

Observe Factory Droid session activity from a numeric cursor and return the cursor unchanged to prevent duplicate reads.

Instructions

Observe session events since a numeric cursor. Pass the returned cursor back unchanged to avoid duplicates; truncated reports evicted history.

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>",
      "cursor": "<cursor>"
    },
    "name": "session_events"
  }
}

Input Schema

NameRequiredDescriptionDefault
cursorYes
waitMsNo
sessionIdYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent, non-destructive, closed-world, so the safety profile is covered. The description adds genuinely new behavior: cursor round-tripping to avoid duplicates and truncation indicating evicted history. It says nothing about waitMs long-polling semantics or what an event payload contains.

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?

Two short sentences, no filler, with the core operation stated first and the cursor contract immediately after. The truncation note is compressed almost to the point of ambiguity.

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 three-parameter read with no output schema, the critical contract (cursor echo, truncation meaning eviction) is present. The waitMs parameter and the shape of returned events remain undocumented, which is the main remaining gap.

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 coverage is 0%, so the description must compensate. It explains cursor well (numeric, must be echoed back) but says nothing about waitMs, which is an opaque 0-300000 integer whose blocking/long-poll behavior an agent cannot infer.

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: 'Observe session events since a numeric cursor.' An agent knows this is a cursor-based event reader, though it is not distinguished from a plausible sibling like session_stream.

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?

Gives concrete invocation guidance ('pass the returned cursor back unchanged to avoid duplicates') which implies a polling loop, but never states when to use this versus streaming or listing alternatives, nor any preconditions on sessionId.

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