get_session_metrics
Get full session metrics for a recorded session ID, including per-prompt tokens, latency, and cost to verify provider usage.
Instructions
Full metrics for ONE recorded session: metadata plus per-prompt tokens, latency, and cost.
Use when you have a session_id and need exact provider usage numbers for that session. For the block-by-block token composition of the context window use get_context_timeline instead; for a cost total across many sessions use get_cost_estimate.
session_id: the opaque, case-sensitive id returned by record_session or listed by get_recent_sessions.
Returns {"error": "session not found"} if the id is unknown or not owned by the caller (the two are deliberately indistinguishable).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| session_id | Yes |