Get daily call metrics
get_daily_analyticsGet daily call metrics
Returns one row of metrics per calendar day, oldest day first, ready to plot as a time series. The figures are read live from the conversation records, so a conversation is counted as soon as it has ended, and the voice calls, chat sessions and avatar sessions of the account each count as one call. Cost is in USD, as the voice engine reports it. Days with no activity are absent from the result rather than present as zeroes. The window is the last days days counted back from now, optionally narrowed to a single agent. The applied days value and agentId are echoed in the response, which matters because an out-of-range or non-numeric days is silently replaced by 30 rather than rejected.
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_daily_analytics"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| days | No | Size of the window in days. Must be between 1 and 365; a value outside that range, or one that is not a number, falls back to 30 without an error. Check the `days` field of the response for what was used. | |
| agentId | No | Restrict the series to one voice agent, by its `agent_42` identifier or the bare number. Omit for the whole account. No error is raised for an unknown agent, the series is simply empty. |