call_timeseries
Fetch call volume trends over time with server-side bucketing by hour, day, week, or month. Validates the 200-datapoint limit before requesting, returning clear errors instead of raw 400s.
Instructions
Call volume over time via CallRail's /calls/timeseries.json. One request for a trend line instead of client-side bucketing.
CallRail refuses any request whose result set would exceed 200 data
points. With the default daily interval that caps the window at ~200
days; use interval='week' or 'month' for longer ranges. This tool
checks the limit before sending so you get a clear message instead of
a raw 400.
Args:
days: Lookback (default 30). Ignored if start_date given.
start_date / end_date: 'YYYY-MM-DD'. Explicit dates win.
company_id: Filter to one company.
fields: Comma-separated metrics. Valid: total_calls, missed_calls,
answered_calls, abandoned_calls, first_time_callers,
average_duration, formatted_average_duration, leads.
interval: Bucket size. One of 'hour', 'day', 'week', 'month',
'year'. Defaults to CallRail's own choice (daily) when omitted.
account_id: Auto-resolves if omitted.
Returns:
JSON string with total_results and data[], one entry per
bucket ({key/date, }).
Server-side filters (documented, live-verified 2026-10-05):
answer_status ('answered' | 'missed' | 'voicemail'; missed includes
voicemail), direction, device, lead_status ('good_lead' |
'not_a_lead' | 'not_scored'), first_time_callers, min_duration /
max_duration (seconds), tags (any of), tracker_ids, search
(phone fragment, name, note, source) and time_zone (IANA; also sets
"today" for days). fields is validated against
VALID_CALL_STATS_FIELDS.
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": "call_timeseries"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| days | No | ||
| tags | No | ||
| device | No | ||
| fields | No | ||
| search | No | ||
| end_date | No | ||
| interval | No | ||
| direction | No | ||
| time_zone | No | ||
| account_id | No | ||
| company_id | No | ||
| start_date | No | ||
| lead_status | No | ||
| tracker_ids | No | ||
| max_duration | No | ||
| min_duration | No | ||
| answer_status | No | ||
| first_time_callers | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |