query_conversations
MCP-side filter over conversations (NOT a SQL analytics API). Cursor-pages list_conversations then bulk-gets details when filters need summary/capturedVariables/userName. Bounded by maxScan (default 200). Use for audits like summaryContains or capturedVariableExists. True server-side filters (hasQuote, eventDateWithin) need a future backend endpoint.
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": {
"agentId": "<agentId>"
},
"name": "query_conversations"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tsTo | No | Unix ts upper bound | |
| limit | No | Max matches (default 50, max 100) | |
| origin | No | Exact origin match | |
| tsFrom | No | Unix ts lower bound | |
| agentId | Yes | The agent ID | |
| maxScan | No | Max list rows to scan (default 200, max 500) | |
| hasNotes | No | Require / exclude human review notes | |
| hasUserName | No | Require / exclude userName | |
| noteContains | No | Case-insensitive substring in any review note | |
| summaryContains | No | Case-insensitive summary substring | |
| capturedVariableEquals | No | Require capturedVariables[key] === value | |
| capturedVariableExists | No | Require this capturedVariables key |