Release phone number
cooper_release_phone_numberRelease the inbox phone number at the provider and on Cooper. Requires auth. Input: inbox_id and confirm true. The same account cannot provision that E.164 again for 30 days. With COOPER_SMS_BILLING=stripe, releasing a billable number lowers the subscription quantity and Stripe prorates it.
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": {
"inbox_id": "<inbox_id>",
"confirm": "<confirm>"
},
"name": "cooper_release_phone_number"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| confirm | Yes | Must be true. Confirms the human agreed to give up this number. | |
| inbox_id | Yes | Inbox id (inb_…) that owns the phone number. Get it from cooper_list_inboxes. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | Stable id of the returned object. Pass it to the matching get, update, or delete tool. | |
| e164 | No | The phone number in E.164. | |
| object | No | Object type name, such as list, message, or thread. | |
| status | No | active or released. | |
| billing | No | Billing result for this number, such as {status}. | |
| inbox_id | No | Inbox id (inb_…) this object belongs to. Null when it applies to every inbox. | |
| outbound | No | Outbound SMS registration state. Sends fail with outbound_not_registered until it is ready. | |
| provider | No | Carrier provider name. | |
| account_id | No | Cooper account id (acct_…) that owns this object. | |
| created_at | No | ISO-8601 time the object was created. | |
| number_type | No | Number type, such as local. | |
| released_at | No | ISO-8601 time the number was released, or null. | |
| capabilities | No | What the number supports, such as sms and voice. |