form_stats
Retrieve CallRail form-submission totals for a date range, company, or account, and optionally group results by source, campaign, form name, or lead status to analyze lead sources.
Instructions
Server-side form-submission totals via /forms/summary.json.
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.
account_id: Auto-resolves if omitted.
Returns:
JSON string with start_date, end_date, time_zone, and
total_results (e.g. {"total_forms": N}).
group_by ('source' | 'keywords' | 'campaign' | 'referrer' |
'landing_page' | 'form_name' | 'company') returns grouped_results;
fields (comma-separated) selects additional summary fields;
lead_status, tags and time_zone filter as on call_stats.
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": "form_stats"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| days | No | ||
| tags | No | ||
| fields | No | ||
| end_date | No | ||
| group_by | No | ||
| time_zone | No | ||
| account_id | No | ||
| company_id | No | ||
| start_date | No | ||
| lead_status | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |