Langfuse trace of a conversation
- Permission required
conversations.view
When to use it
Per-turn summary of the Langfuse trace: models, tokens, cost, latency, errors and tools, plus the link. Voice (LiveKit): the session is the room. Text: the trace the quality analysis linked. With no trace, or Langfuse not configured, available=false with the reason.
Input
| Field | Type | Description |
|---|---|---|
refRequired | string | Conversation id or any external ref: LiveKit room name, LiveKit RM_…/EG_…, ElevenLabs id (conv_…), Instagram thread id, widget session, or a WhatsApp phone with a date (+34600111222@2026-11-20) |
organization_id | integer | Only to repeat your organization (or, with an Autonex staff key, pick another one) |
Every tool also accepts lang (es | en) for the language of the text answer.
Output
| Field | Type | Description |
|---|---|---|
availableRequired | boolean | |
reasonRequired | "no_trace_linked" | "langfuse_not_configured" | "langfuse_error" | "not_found_in_langfuse" | null | |
linked_byRequired | "session" | "trace" | null | session = LiveKit room; trace = trace linked by the quality analysis |
idRequired | string | null | |
urlRequired | string | null | Langfuse link |
totalsRequired | object | null | |
turnsRequired | object[] | |
turns[].trace_idRequired | string | |
turns[].nameRequired | string | null | |
turns[].atRequired | string | null | |
turns[].latency_msRequired | number | null | |
turns[].cost_usdRequired | number | null | |
turns[].modelsRequired | string[] | |
turns[].input_tokensRequired | number | |
turns[].output_tokensRequired | number | |
turns[].errorsRequired | string[] | |
turns[].toolsRequired | string[] | |
tool_callsRequired | object[] | Tool spans in Langfuse (complement get_conversation.tool_calls) |
tool_calls[].sourceRequired | "langfuse" | |
tool_calls[].nameRequired | string | |
tool_calls[].atRequired | string | null | |
tool_calls[].trace_idRequired | string | |
tool_calls[].errorRequired | string | null | |
truncatedRequired | boolean |
Examples
Example 1: Why call 48213 was so slow
Call
{
"name": "get_conversation_trace",
"arguments": {
"ref": "48213"
}
}Equivalent JSON-RPC call (POST /mcp)
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "get_conversation_trace",
"arguments": {
"ref": "48213"
}
}
}