Attach Phone Number
attach_numberAssign a phone number already in the KaiCalls registry pool to a business (and optionally route it directly to an agent). Does NOT purchase a new number; search_available_numbers and buy_number handle purchases.
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": "attach_number"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| agent_id | No | Agent ID to route this number to directly (optional). | |
| business_id | No | Business ID (optional only when the token can access exactly one business). | |
| phone_number | Yes | E.164 phone number already in the registry. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| error | No | Present when success is false | |
| number | No | ||
| success | Yes | Whether the tool completed successfully | |
| business_id | No |