Skip to main content
Glama

session_stream

Submit prompts to a live Droid session and return events while waiting, detaching immediately, or blocking until completion or a pending decision.

Instructions

Submit a prompt to a live session. Omit delivery to wait up to waitMs and return events. detach returns immediately without an event dump; block waits until terminal or pending decision.

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>",
      "prompt": "<prompt>"
    },
    "name": "session_stream"
  }
}

Input Schema

NameRequiredDescriptionDefault
promptYes
waitMsNo
deliveryNo
sessionIdYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare a non-read-only, open-world, non-idempotent, non-destructive write; the description adds real behavior on top: the bounded wait (waitMs), that detach suppresses the event dump, and that block returns on terminal state or a pending decision. It omits what happens at the wait timeout (error vs. partial events) and whether a re-submitted prompt is duplicated, and does not echo the non-idempotent annotation.

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?

Three dense sentences, front-loaded with the core action before the delivery-mode rules; nothing is redundant. The telegraphic phrasing ('Omit delivery…', 'detach returns immediately') takes some parsing but is not padded.

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

Completeness3/5

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

For a four-parameter mutating tool with no output schema, the definition covers invocation well but not returns: 'return events' leaves the event shape, ordering, and volume undefined, and timeout behavior is unstated. An agent can call it correctly but cannot predict what it gets back.

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?

With 0% schema description coverage, the description must carry all parameter meaning, and it does for three of four: prompt (the thing submitted), waitMs (upper bound on the wait), and delivery (detach vs. block vs. omitted). Only sessionId goes unexplained, leaving a small but real gap for a required parameter.

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?

The description names a specific verb and resource: 'Submit a prompt to a live session', which also disambiguates the 'stream' name from a pure event-read tool. It does not, however, contrast itself with siblings like session_events or session_interrupt, so an agent must infer the boundary.

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?

It gives clear conditional guidance for the delivery modes (omit delivery to wait and return events, detach for immediate return, block to wait for terminal state), which is genuinely useful selection logic. It stops short of saying when to choose this tool over session_events or session_answer_question, or what prerequisites a live session entails.

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