search_calls_by_number
Find all calls to or from a specific phone number in CallRail. Matches the last 10 digits, so any format works, and supports a lookback window plus optional company filtering.
Instructions
Find calls from/to a specific phone number. Matches on the last 10 digits
of the stored customer_phone_number so any format works.
Args: phone_number: Any format, normalized to digits-only. Must contain at least 7 digits to avoid false positives. account_id: Auto-resolves. company_id: Optional company filter. days: Lookback window (default 90).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"phone_number": "<phone_number>"
},
"name": "search_calls_by_number"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| days | No | ||
| account_id | No | ||
| company_id | No | ||
| phone_number | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |