Skip to main content
Glama

Stream Connections

stream_connections
Read-onlyIdempotent

Your own recent stream connections (this account only, every API key and OAuth app of it), newest first: path, url, api_key_id (or oauth_client_id), connected_at, state open or closed, the subscribe count and, once closed, closed_at, duration_s, the channels, close_code (4410 = replaced by a newer connection) and events_sent. RECONSTRUCTED from the connect, subscribe and close records the stream writes, not read from the stream's live state, and it may lag a few seconds: open means no close has been recorded yet (a server crash records none), and an open connection's channels are named only when it closes. Use it to see why a socket was closed or whether two programs share a key (each closes the other with 4410). truncated is true when only the newest records of the window could be read.

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

Input Schema

NameRequiredDescriptionDefault
hoursNoHow far back to look, 1 to 720 hours (default 168, a week). A connection opened before it is not listed.
limitNoConnections to return, newest first, 1 to 1000 (default 50).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.4/5.0
Behavior5/5

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

Goes well beyond the readOnly/idempotent annotations: discloses that results are RECONSTRUCTED from connect/subscribe/close records rather than live state, that it can lag a few seconds, that 'open' merely means no close was recorded (server crashes record none), that channels appear only after close, and that `truncated` signals a partial read of the window. This is exactly the caveat set an agent needs to interpret results correctly.

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 resource framing is front-loaded and every clause carries information — the field list substitutes for a missing output schema. It is dense and runs as one long sentence, which costs readability, but nothing is padding.

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

Completeness5/5

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

With no output schema, the description supplies the full return shape (path, url, api_key_id/oauth_client_id, connected_at, state, counts, closed_at, duration_s, channels, close_code, events_sent, truncated) plus interpretation caveats. An agent can call and read this correctly without further context.

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 100% and both parameters (hours, limit) are documented with ranges and defaults in the schema itself, including the non-obvious 'a connection opened before it is not listed'. The description adds no additional parameter guidance, so the baseline 3 applies.

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 resource (stream connections) with explicit scope: this account only, across every API key and OAuth app, newest first, plus the exact field set returned. That field disclosure clearly separates it from the other stream_* siblings (events, info, check_filter) without ambiguity.

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 concrete use cases: 'see why a socket was closed or whether two programs share a key (each closes the other with 4410)'. It doesn't explicitly say when NOT to use it or name a sibling alternative, which keeps it below a 5.

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.