Create tracker (write)
create_trackerCreate a new call tracking number by specifying the company, type (source or session), name, and destination number. Optionally set area code, toll-free, call flow, and source or swap targets.
Instructions
WRITE: Create a tracking number. type is source or session; provisions a number in the given company. Use a JSON object for source-specific config.
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": {
"company_id": "<company_id>",
"type": "<type>",
"name": "<name>",
"destination_number": "<destination_number>"
},
"name": "create_tracker"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Tracker name. | |
| type | Yes | Tracker type. | |
| source | No | Source configuration object (for source trackers). | |
| area_code | No | Preferred area code for the new number. | |
| call_flow | No | Optional call-flow configuration object. | |
| toll_free | No | ||
| account_id | No | CallRail account id. Defaults to CALLRAIL_ACCOUNT_ID if set. | |
| company_id | Yes | Company to create the tracker in. | |
| swap_targets | No | Phone numbers to swap on the website (for session trackers). | |
| destination_number | Yes | Number calls forward to. |