query_conversations
Filter and retrieve conversations by agent, date, origin, notes, summary text, or captured variables for audits; scans are bounded by maxScan and paginated.
Instructions
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.
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 |