count_tickets
Count tickets in Daktela matching your filters to get a quick total, without pulling full ticket details.
Instructions
Count tickets matching filters. Use this instead of list_tickets when you only need a number.
Args: category: Filter by category internal name (use list_ticket_categories to find valid names). stage: Ticket lifecycle stage — exact values (case-sensitive): 'OPEN' = agent actively working, 'WAIT' = awaiting customer response, 'CLOSE' = resolved, 'ARCHIVE' = archived. When user says "open tickets", use stage='OPEN'. priority: Filter by priority: LOW, MEDIUM, HIGH. user: Agent name — pass either a display name (e.g. 'John Doe') or login name (e.g. 'john.doe'). Display names are resolved automatically. You do NOT need to call list_users first. contact: Filter by contact internal ID (e.g. 'contact_674eda46162a8403430453'). NOT a person's name — call list_contacts(search='...') first to find the ID. search: Full-text search across ticket title and description (partial match). status: Filter by workflow status name (e.g. 'S0-Qualify', 'S1-Discovery'). Use list_statuses to see available status names. date_from: Filter tickets created on or after this date (YYYY-MM-DD). date_to: Filter tickets created on or before this date (YYYY-MM-DD). include_merged: Include tickets that were merged into other tickets (default: false).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| user | No | ||
| stage | No | ||
| search | No | ||
| status | No | ||
| contact | No | ||
| date_to | No | ||
| category | No | ||
| priority | No | ||
| date_from | No | ||
| include_merged | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |