Summary
The conversations API (GET /agents/conversations/list) returns a non-obvious data structure that is difficult to work with. Key conversation fields are nested under metadata.conversation rather than at the top level.
Current Response Structure
{
"results": [
{
"knowledge_set": "uuid",
"metadata": {
"_id": "...",
"project": "...",
"knowledge_set": "...",
"insert_date": "...",
"conversation": {
"user_id": "...",
"agent_id": "...",
"title": "...",
"active_execution_time_ms": 294488,
"has_errored": true,
"state": "completed",
"params_from_previous_trigger": { ... }
}
}
}
]
}
Issues
- Deep nesting: Useful fields (title, user_id, state, has_errored) are 3 levels deep at
results[].metadata.conversation.*
- No user name resolution:
user_id is a UUID with no way to resolve it to a user name/email via current MCP tools
- Undocumented: The
relevance_list_conversations tool description says "Returns summaries (title, date)" but the tool itself returns 0 results (see separate bug), and the raw API structure doesn't match that description
Suggestions
- Fix
relevance_list_conversations to actually return results (separate issue filed)
- Flatten the response in the MCP tool to surface key fields:
conversation_id, title, user_id, user_name, state, has_errored, created_at, execution_time_ms
- Add user name resolution — either enrich conversation results with user names, or provide a
relevance_get_user tool
Summary
The conversations API (
GET /agents/conversations/list) returns a non-obvious data structure that is difficult to work with. Key conversation fields are nested undermetadata.conversationrather than at the top level.Current Response Structure
{ "results": [ { "knowledge_set": "uuid", "metadata": { "_id": "...", "project": "...", "knowledge_set": "...", "insert_date": "...", "conversation": { "user_id": "...", "agent_id": "...", "title": "...", "active_execution_time_ms": 294488, "has_errored": true, "state": "completed", "params_from_previous_trigger": { ... } } } } ] }Issues
results[].metadata.conversation.*user_idis a UUID with no way to resolve it to a user name/email via current MCP toolsrelevance_list_conversationstool description says "Returns summaries (title, date)" but the tool itself returns 0 results (see separate bug), and the raw API structure doesn't match that descriptionSuggestions
relevance_list_conversationsto actually return results (separate issue filed)conversation_id,title,user_id,user_name,state,has_errored,created_at,execution_time_msrelevance_get_usertool