get_duration_stats
Calculate average, median, min, max, and p95 call durations to understand typical call lengths. Filter by date, type, agent, or campaign for targeted analysis.
Instructions
Get call duration statistics — average, median, min, max, and p95 duration. Shows how long calls typically last.
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": "get_duration_stats"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| end_date | No | End date (ISO 8601, e.g. 2025-01-20T23:59:59Z). Defaults to now. | |
| call_type | No | Filter by call type | |
| agent_name | No | Filter to a specific agent (partial match) | |
| start_date | No | Start date (ISO 8601, e.g. 2025-01-15T00:00:00Z). Defaults to 7 days ago. | |
| campaign_id | No | Filter to a specific campaign by ID |