create_notification
Creates a notification rule to route call or SMS alerts to users or email recipients by event type and optional company or tracker scope.
Instructions
Create a notification rule (who gets pinged on which event).
Args: alert_type: Which calls trigger the rule. One of 'all', 'first_call', 'missed_and_vm', 'vm_only'. Required when call_enabled is true; omit for SMS-only rules. user_id: 'USR...' id of the user being notified. If neither user_id nor email is given, CallRail assigns the rule to the user who owns the API key. company_id, tracker_id: Optional scope filters. send_email / send_desktop / send_push: Channel toggles. call_enabled / sms_enabled: Trigger toggles; set call_enabled for call alerts and sms_enabled for text alerts. email: Creates an email-only recipient instead of a user. CallRail requires a company_id or tracker_id with it and allows only send_email. agent_id: 'USR...' id of the agent whose calls trigger the rule. name: Accepted for backward compatibility and NOT sent: CallRail generates the name from the configuration. account_id: Auto-resolves if omitted.
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": "create_notification"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | ||
| No | |||
| user_id | No | ||
| agent_id | No | ||
| send_push | No | ||
| account_id | No | ||
| alert_type | No | ||
| company_id | No | ||
| send_email | No | ||
| tracker_id | No | ||
| sms_enabled | No | ||
| call_enabled | No | ||
| send_desktop | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |