Skip to main content
Glama

list_agent_sessions

Read-onlyIdempotent

List recent conversations with an AI agent. Members see their own sessions; admins, editors, and owners view all tenant sessions.

Instructions

Lista conversas recentes com um agente. Para usuários finais (role member), retorna apenas as próprias sessões; operadores (admin/editor/owner) veem as do tenant.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNoLimite de resultados (default: 20, max: 100)
offsetNoOffset para paginação
agent_idYesUUID do agente
roots_onlyNotrue = só sessões raiz (exclui sessões de subagentes, #227)
consumer_keyNoFiltra pelas sessões de um consumidor específico
control_modeNoFiltra por modo de controle da sessão (Sprint 72)
Install Server

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare the tool read-only, idempotent, and non-destructive. The description adds valuable behavioral context beyond annotations: the caller's role determines whether sessions are scoped to the caller or to the entire tenant. No contradiction with 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 compact sentences with no wasted words. The core action is front-loaded, and the role-based scoping nuance is placed right after, making the description easy to parse.

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

Completeness4/5

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

For a read-only list operation, the description covers the essential behavior, role scoping, and the required agent_id context is in the schema. The absence of an output schema means return shape is not described, which is a minor gap, but not enough to reduce materially.

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%, so all six parameters are already documented in the schema. The description adds no parameter-specific meaning beyond that, so the baseline score of 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 ('Lista') and resource ('conversas recentes com um agente'), and it distinguishes its scope by role: end users see only their own sessions, while operators see tenant-wide sessions. This makes the operation clear without needing to inspect the schema.

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

Usage Guidelines3/5

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

The description implies when to use the tool—listing recent conversations for a specific agent—and gives useful role-based context. However, it does not explicitly name alternative sibling tools like list_consumer_sessions or state when not to use this tool, so the agent must infer selection from context.

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

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/zihin-ai/zihin-mcp'

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