Skip to main content
Glama

Get a session’s analytics

anam_session_analytics_get
Read-onlyIdempotent

Returns per-turn latency for a session, where time went from transcription through the LLM and TTS to first audio, and session totals. It is 404 until the session has ended and its report has arrived, and always for LiveKit and audio-passthrough sessions. Message text needs includeMessages: true and transcripts on.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

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

Input Schema

NameRequiredDescriptionDefault
idYes
includeMessagesNoWhen true, include the user/assistant message text on each turn.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent, non-destructive, non-open-world, so the safety profile is covered. The description adds genuinely useful behavior beyond that: the 404-until-report-arrives timing, and the permanent unavailability for LiveKit and audio-passthrough sessions. It adds useful failure-mode context but nothing on auth, rate limits, or result shape beyond naming metrics.

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 sentences, front-loaded with what is returned before any caveats. Every clause carries information: the latency path, the output scope, the 404 condition, the unsupported session types, and the includeText prerequisite.

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?

With no output schema, the description must at least indicate what comes back, and it does: per-turn timing from transcription through LLM and TTS to first audio, plus session totals. Combined with annotations covering the safety profile and explicit unavailability conditions, an agent has enough to decide and call. Slightly thin on structuring of the returned data, but adequate.

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 coverage is 50%: includeMessages is documented in the schema, id is not. The description supplies a precondition the schema omits, namely that message text requires transcripts to be enabled server-side, which is real added meaning. It still adds nothing about the id parameter, so it only partially compensates for the coverage gap.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

Names a specific verb and resource ('Returns per-turn latency for a session') and enumerates the metrics covered: transcription, LLM, TTS, first-audio time, plus session totals. An agent can distinguish this from a general session fetch or transcript fetch. It stops short of naming a sibling as the alternative, which keeps it out of 5 territory.

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?

Gives clear operating conditions: it 404s until the session has ended and its report has arrived, and is always unavailable for LiveKit and audio-passthrough sessions. That tells the agent when the call is viable. It does not state when to prefer this over sibling reporting tools like session_insights or session_stats, so a 4 rather than 5.

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