Get session analytics across sessions
anam_session_statsReturns latency percentiles (p50, p90, p95, p99, max, avg) for each stage from transcription through the LLM and TTS to first audio, interruption and error rates, tool call outcomes and the slowest turns, across sessions. Only sessions where Anam runs the conversation (turnkey, custom LLM, ElevenLabs agent) have analytics; LiveKit and audio-passthrough ones count in sessionCount only. It reads the 1,000 newest matching sessions with analytics; truncated says more matched. The last 24 hours by default, up to 31 days.
anam_session_insights summarises the same with findings.
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_stats"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | End of the time range (ISO 8601). Defaults to now. | |
| from | No | Start of the time range (ISO 8601). Defaults to 24 hours before `to`. | |
| apiKeyId | No | Only include sessions minted by this API key. | |
| personaId | No | Only include sessions for this persona. | |
| clientLabel | No | Only include sessions whose client label matches exactly. | |
| sessionType | No | Only include sessions of this type. |