Skip to main content
Glama

prism

Active sessions

prism_sessions
Read-onlyIdempotent

Lists the MCP sessions Prism is currently tracing — session id prefix, upstream, client name, project, turn and error counts, and age in seconds. Use 'limit' to cap results (default 20, max 100) and 'upstream' to filter by upstream URL substring.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNoMax sessions to return.
upstreamNoSubstring filter on the upstream URL — e.g. 'mcp.acme.dev' returns only sessions relaying to that host.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, and destructiveHint=false, covering the safety profile. The description adds the specific output fields and filter behavior (limit default/max, upstream substring), which is useful context beyond the annotations.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two sentences with no wasted words. The core purpose is front-loaded, followed by concise parameter guidance. Every clause earns its place.

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?

For a simple listing tool with full schema coverage and annotations covering safety, the description is complete. It explains the output fields, the filter parameters, and the default/max limits—everything an agent needs to call it correctly.

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 100% and both parameters already have detailed descriptions in the schema. The description largely repeats the schema's parameter explanations ('Use limit to cap results...' and 'upstream to filter...'), adding minimal new meaning. Baseline 3 is appropriate.

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?

The description states a specific verb ('Lists') and resource ('MCP sessions Prism is currently tracing'), and enumerates the returned fields (session id prefix, upstream, client name, project, turn/error counts, age). This clearly distinguishes it from sibling tools like prism_metrics or prism_config, which serve different purposes.

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?

The description implies usage for listing active sessions and explains the filter parameters, but it does not explicitly contrast with alternatives or state when not to use it. However, the purpose is clear enough that an agent can infer when to invoke this tool versus its siblings.

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.