Skip to main content
Glama

get_user_sessions

Retrieves a user's unique sessions from their traces to analyze interaction history across projects and time ranges.

Instructions

Get sessions for a specific user. Fetches user's traces and extracts unique sessions to understand their interaction history.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNo
projectNo
user_idYes
to_timestampNo
from_timestampNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior3/5

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

No annotations are provided, so the description carries the full burden. It discloses a notable behavioral trait: the tool fetches traces first and extracts unique sessions, implying a potentially expensive operation and deduplication. However, it does not mention other behavioral aspects like sorting, time-range handling, or whether user_id is mandatory (though required in schema). Overall, it adds some value but lacks rich context.

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 two concise sentences. The first sentence is a clear, front-loaded purpose, and the second adds mechanism and intent. There is no filler or redundancy.

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?

Given 5 parameters, no annotations, and an output schema (which likely describes return values), the description covers the core purpose but omits key context like how time-range filters or limit apply. The mechanism of fetching traces is valuable, yet the tool's parameter-driven behavior is not explained. This is adequate but clearly incomplete for a parameter-rich tool.

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

Parameters2/5

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

Schema description coverage is 0%, and the description does not explain any of the 5 parameters except implicitly aligning 'specific user' with user_id. It does not describe the meaning of limit, project, from_timestamp, or to_timestamp, so the agent must rely purely on parameter names. Since the description must compensate for the lack of schema descriptions, this is a significant gap.

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 'Get sessions for a specific user' with a specific verb and resource, and adds implementation detail ('Fetches user's traces and extracts unique sessions') that distinguishes it from sibling tools like fetch_sessions (generic all sessions) or get_session_details (single session). The phrase 'unique sessions' also implies deduplication, further clarifying its purpose.

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 gives a clear usage context: use this for a specific user to understand their interaction history. It implicitly differentiates from generic session fetchers by focusing on a user scope, but it does not explicitly state when NOT to use it or name alternative tools. This is clear context without exclusions, matching a 4.

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