Phone System List Available Numbers
Immutable Catalog Entry
This descriptor comes from the active versioned Portal catalog.
- Contract tier:
agent_ready - Risk:
read - Catalog version:
2026-07-12.2 - Descriptor hash:
7a50595bf0cfb6cae0b344a38faecdefd7341a13b7297a183e809f5bce596373
Search available GHL Phone System numbers that can be purchased for the authenticated location. GHL category: Conversations / Phone System. This read-only operation can return purchasable phone numbers. Exact phone numbers are masked by default; set includePhoneNumbers true only when the user needs exact values to choose or purchase a number.
Request Body
{
"jsonrpc": "2.0",
"id": "ghl-phone-system-list-available-numbers-example",
"method": "tools/call",
"params": {
"name": "ghl.phone_system_list_available_numbers",
"arguments": {
"countryCode": "countryCode_example",
"query": {},
"areaCode": "areaCode_example",
"tenantId": "tenantId_123",
"locationId": "locationId_123",
"strictTenant": false,
"includePhoneNumbers": false,
"includeRoutingDetails": false
}
}
}
Arguments Schema
{
"type": "object",
"required": [
"countryCode"
],
"properties": {
"query": {
"type": "object",
"description": "Optional GHL-supported query parameters for this official Phone System endpoint, such as documented filtering or pagination fields.",
"additionalProperties": true
},
"areaCode": {
"type": "string",
"description": "Optional area code filter for available-number search."
},
"tenantId": {
"type": "string",
"description": "Tenant ID from list_tenants."
},
"locationId": {
"type": "string",
"description": "Optional GHL location ID. If provided, it must match the authenticated runtime location; otherwise the runtime location is used for the official Phone System endpoint."
},
"countryCode": {
"type": "string",
"description": "Required ISO country code for available-number search, such as \"US\". GHL rejects available-number searches without this field."
},
"strictTenant": {
"type": "boolean",
"default": true,
"description": "Require tenantId to match locationId routing (default: true)."
},
"includePhoneNumbers": {
"type": "boolean",
"default": false,
"description": "Defaults to false. When false, masks exact phone numbers in output. Set true only when the user explicitly needs exact phone numbers for routing or purchase decisions."
},
"includeRoutingDetails": {
"type": "boolean",
"default": false,
"description": "Defaults to false. When false, strips provider SIDs, friendly names, forwarding numbers, linked users, and routing service configuration. Set true only when the user explicitly needs full phone routing details."
}
},
"additionalProperties": false
}
Output Schema
{
"type": "object",
"required": [
"ok",
"data",
"error",
"meta"
],
"properties": {
"ok": {
"type": "boolean",
"description": "Whether the GHL MCP operation completed successfully."
},
"data": {
"anyOf": [
{
"type": "object",
"additionalProperties": true
},
{
"type": "array",
"items": {}
},
{
"type": "string"
},
{
"type": "number"
},
{
"type": "boolean"
},
{
"type": "null"
}
],
"description": "Tool-specific GHL or local navigation result when ok is true."
},
"meta": {
"type": "object",
"description": "Safe execution, routing, and timing metadata.",
"additionalProperties": true
},
"error": {
"anyOf": [
{
"type": "object",
"additionalProperties": true
},
{
"type": "null"
}
],
"description": "Safe error details when ok is false; credential values are never returned."
}
},
"description": "Normalized GHL MCP response envelope.",
"additionalProperties": false
}
Code Examples
- cURL
- Node.js
- Python
curl -X POST 'https://portal.madpanda3d.com/api/mcp' \
-H 'Authorization: Bearer mad_live_***' \
-H 'Content-Type: application/json' \
-d '{
"jsonrpc": "2.0",
"id": "ghl-phone-system-list-available-numbers-example",
"method": "tools/call",
"params": {
"name": "ghl.phone_system_list_available_numbers",
"arguments": {
"countryCode": "countryCode_example",
"query": {},
"areaCode": "areaCode_example",
"tenantId": "tenantId_123",
"locationId": "locationId_123",
"strictTenant": false,
"includePhoneNumbers": false,
"includeRoutingDetails": false
}
}
}'
const response = await fetch('https://portal.madpanda3d.com/api/mcp', {
method: 'POST',
headers: {
Authorization: 'Bearer mad_live_***',
'Content-Type': 'application/json',
},
body: JSON.stringify({
"jsonrpc": "2.0",
"id": "ghl-phone-system-list-available-numbers-example",
"method": "tools/call",
"params": {
"name": "ghl.phone_system_list_available_numbers",
"arguments": {
"countryCode": "countryCode_example",
"query": {},
"areaCode": "areaCode_example",
"tenantId": "tenantId_123",
"locationId": "locationId_123",
"strictTenant": false,
"includePhoneNumbers": false,
"includeRoutingDetails": false
}
}
}),
});
const data = await response.json();
console.log(data);
import requests
url = 'https://portal.madpanda3d.com/api/mcp'
headers = {
'Authorization': 'Bearer mad_live_***',
'Content-Type': 'application/json',
}
payload = {
"jsonrpc": "2.0",
"id": "ghl-phone-system-list-available-numbers-example",
"method": "tools/call",
"params": {
"name": "ghl.phone_system_list_available_numbers",
"arguments": {
"countryCode": "countryCode_example",
"query": {},
"areaCode": "areaCode_example",
"tenantId": "tenantId_123",
"locationId": "locationId_123",
"strictTenant": false,
"includePhoneNumbers": false,
"includeRoutingDetails": false
}
}
}
response = requests.post(url, headers=headers, json=payload, timeout=60)
print(response.json())
Example Responses
- 200 Success
- 502 Upstream Error
{
"ok": true,
"message": "Tool ghl.phone_system_list_available_numbers executed successfully.",
"note": "Response shape varies by MCP tool. Inspect live responses for exact fields."
}
{
"ok": false,
"classification": "upstream_http_error",
"message": "Upstream MCP returned a non-success status."
}