Skip to main content
Glama

List sessions

anam_session_list
Read-onlyIdempotent

Lists the organization’s sessions (conversations with a persona), newest first, with paging in meta: a summary of each (persona, client label, start, end, length, exit status); anam_session_get has the rest. CLOSED_BY_ENGINE includes a normal end of call by the user or app. anam_session_search finds calls by what was said; anam_session_insights says how they went.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "anam_session_list"
  }
}

Input Schema

NameRequiredDescriptionDefault
toNoCreated before this time, which must be later than `from`; same format.
fromNoCreated at or after this ISO 8601 date-time with an offset (`2026-11-01T00:00:00Z`) or date (`2026-11-01`, midnight UTC).
pageNo
activeNo`true` for active sessions, `false` for ended ones.
searchNoMatches session IDs and client labels.
perPageNo
apiKeyIdNoFilter sessions by API key ID
personaIdNoFilter sessions by persona ID

Output Schema

NameRequiredDescriptionDefault
dataYes
metaNo
resultTrimmedNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / from / description
      Previous value: -"Only sessions created at or after this time. An ISO 8601 date-time with an offset, such as `2026-11-01T00:00:00Z`, or a date such as `2026-11-01` (midnight UTC)."New value: +"Created at or after this ISO 8601 date-time with an offset (`2026-11-01T00:00:00Z`) or date (`2026-11-01`, midnight UTC)."
    • changedInput schema / properties / to / description
      Previous value: -"Only sessions created before this time, in the same format as `from`. Must be later than `from`."New value: +"Created before this time, which must be later than `from`; same format."
  2. Changed2 schema fields changed
    • changedInput schema / properties / active / description
      Previous value: -"Filter to sessions that are active with `true` or ended with `false`"New value: +"`true` for active sessions, `false` for ended ones."
    • changedInput schema / properties / search / description
      Previous value: -"Search term to filter sessions by ID or client label"New value: +"Matches session IDs and client labels."
  3. 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 readOnly/idempotent/non-destructive, so the bar is lower; the description still adds that results are paged under `meta`, that each row carries a fixed summary field set, and that `CLOSED_BY_ENGINE` denotes a normal user/app hangup rather than a failure. It says nothing about auth scope or rate limits, but the exit-status semantics are genuinely useful beyond structured data.

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?

Three tight sentences with scope, output shape, and sibling routing front-loaded; nothing is filler. The exit-status gloss is slightly parenthetical but earns its place by preventing misinterpretation of failure.

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?

An output schema and full annotations exist, so the description needn't cover return values or safety profile, and it still summarizes both. It is complete for calling the tool; only the filtering semantics of the eight optional parameters are left entirely to the schema.

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?

The description explains no filter parameter at all — no mention of `from`/`to`, `active`, `search`, `personaId`, or `apiKeyId`. With 75% schema description coverage, the schema does most of the work (and `page`/`perPage` lack prose but have defaults and bounds), so the baseline 3 applies rather than a penalty.

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?

States a specific verb and resource ('Lists the organization's sessions'), defines what a session is ('conversations with a persona'), and pins the ordering ('newest first'). It also separates itself from anam_session_get by saying 'get has the rest'.

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

Usage Guidelines5/5

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

Explicitly routes the agent: use this for the list/summary, anam_session_get for full detail, anam_session_search when the criterion is 'what was said', and anam_session_insights for outcome quality. Each alternative comes with the condition that selects it.

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.

Resources