ghl_phone_list_available_numbers
Search Twilio inventory for purchasable phone numbers by country and location, filtering by number pattern, type, and SMS, MMS, or voice support.
Instructions
Renamed — the auto-generated name carried a spec typo ('acountry'). Spec also declares no Version header for this endpoint (verified, not an extraction gap). List available phone numbers Search Twilio inventory for purchasable phone numbers in a country for the given location. Endpoint: GET /phone-system/numbers/location/{locationId}/available (Version header: v3; source: v3/phone-system-v3.json) Requires a Sub-Account (location) token. OAuth scopes: phonenumbers.read
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": {
"firstPart": "<firstPart>",
"lastPart": "<lastPart>",
"anywhere": "<anywhere>",
"numberTypes": "<numberTypes>",
"smsEnabled": "<smsEnabled>",
"mmsEnabled": "<mmsEnabled>",
"voiceEnabled": "<voiceEnabled>",
"countryCode": "<countryCode>",
"locationId": "<locationId>"
},
"name": "ghl_phone_list_available_numbers"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| anywhere | Yes | anywhere are the numbers required anywhere in phone number | |
| lastPart | Yes | lastPart is the ending of the phone number | |
| firstPart | Yes | firstPart is the beginning of the phone number | |
| locationId | Yes | Location ID as string | |
| mmsEnabled | Yes | requested phone numbers should have mms functionality | |
| smsEnabled | Yes | requested phone numbers should have sms functionality | |
| countryCode | Yes | country for which the phone numbers are being requested | |
| numberTypes | Yes | comma separated types of phone number required | |
| voiceEnabled | Yes | requested phone numbers should have voice functionality |