sample_ticket_text
Extracts a reproducible random sample of ticket subjects and opening messages to identify themes in free text and estimate theme volume from the sample.
Instructions
A reproducible random sample of ticket subjects and opening messages, so you can identify themes in free text. Estimate a theme's volume as (share of sample) × total_in_scope, and present it as an estimate.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "sample_ticket_text"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| end | No | End date YYYY-MM-DD (exclusive). Overrides period. | |
| seed | No | Same seed = same sample, so results are reproducible. | |
| start | No | Start date YYYY-MM-DD (inclusive). Overrides period. | |
| filter | No | Extra Zendesk search terms to narrow scope, e.g. 'group:"Tier 2" -tags:spam brand:acme'. | |
| period | No | Reporting period: last_quarter, this_quarter, last_month, this_month, last_year, this_year, ytd, last_7_days, last_30_days, last_90_days, or a calendar unit like '2026-Q3', '2026-09', '2026'. Ignored if start/end are given. | |
| redact | No | Strip customer/agent names, emails, links and long numbers from text. | |
| date_field | No | created | |
| max_tickets | No | Upper bound on tickets analyzed (≈1 API call per 100). | |
| sample_size | No | ||
| excerpt_chars | No |