Skip to main content
Glama

analyze_sessions

Analyze multi-turn session behavior by measuring session count, depth distribution, average traces, cost, latency, and engagement metrics.

Instructions

Analyze multi-turn session behavior.

Returns: session count, depth distribution (single vs multi-turn), average traces per session, session-level cost/latency, and engagement metrics.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
tagsNo
projectNo
end_dateNo
group_byNo
start_dateNo
time_rangeNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior2/5

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

No annotations are provided, so the description must disclose behavioral traits, but it only lists return metrics. It does not explain how sessions are defined, how multi-turn vs single-turn is determined, how the time filters or grouping work, or whether it is read-only. The 'Returns' list is helpful but insufficient for understanding the tool's behavior beyond a high-level summary.

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?

The description is concise and front-loaded with the purpose, followed by a bullet-like list of return values. Every sentence contributes value, and it avoids fluff. It is well-structured for an analysis tool.

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

Completeness2/5

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

Given the tool's complexity (6 optional parameters, aggregation logic, and an output schema), the description is too thin. It does not explain parameter semantics, aggregation criteria, or how multi-turn depth is calculated. The output schema may provide return types, but the description fails to cover necessary behavioral context for a tool that performs non-trivial analysis.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters1/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The input schema has 0% description coverage (all six parameters lack descriptions), and the tool description does not mention any parameters. While names like start_date and end_date are self-explanatory, parameters like group_by, tags, and project are ambiguous. The description adds no meaning beyond the schema's type/default information.

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 clearly states the tool 'Analyze multi-turn session behavior' with a specific verb and resource, and then enumerates the return metrics (session count, depth distribution, average traces, cost/latency, engagement). This distinguishes it from sibling tools like fetch_sessions (which fetches raw sessions) and get_session_details (which provides details for one session).

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?

The description gives no guidance on when to use this tool versus alternatives like fetch_sessions, get_session_details, or get_user_sessions. It does not mention any exclusions or alternative tools. The usage context is implied by the output list, but there is no explicit direction for selection when a user has a session-related query.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/DrishtantKaushal/LangfuseMCP'

If you have feedback or need assistance with the MCP directory API, please join our Discord server