Skip to main content
Glama

list_sessions

Retrieve aggregated metrics per session, showing summaries for groups of related model calls. Filter by project or environment to analyze usage patterns and debug AI interactions.

Instructions

List session summaries showing aggregated metrics for each session. Sessions are groups of related model calls.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNoMaximum number of results (default 50, max 100)
projectNoFilter by project
environmentNoFilter by environment (dev, staging, prod)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.2/5.0
Behavior3/5

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

No annotations are provided, so the description carries the burden, and it does convey that results are read-only summaries containing aggregated per-session metrics. However, it says nothing about pagination behavior, result ordering, or what happens when no sessions match, all of which matter for a list endpoint.

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 with no filler; the purpose leads and the domain definition follows. Efficient, though the definition sentence, while useful, is the only extra content.

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 low-risk, no-required-param list tool with full schema coverage and no output schema, the description is close to adequate. The remaining gap is routing guidance versus get_session_calls and get_aggregate_metrics, which an agent needs to pick the right list tool.

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% — limit, project, and environment are all documented in the schema with defaults and constraints — so the description adds no parameter meaning beyond it. Baseline 3 applies.

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 (List) and resource (session summaries), and the second sentence clarifies that sessions are groups of related model calls. It implicitly distinguishes itself from get_session_calls by specifying summary/aggregated metrics, though it never names a sibling explicitly.

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

Usage Guidelines2/5

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

There is no when-to-use guidance, no prerequisites, and no mention of the alternatives (get_session_calls for detail, get_aggregate_metrics for cross-session rollups) despite five sibling tools. Usage is only implied by the verb 'List'.

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