Skip to main content

Phone System Purchase Number

Immutable Catalog Entry

This descriptor comes from the active versioned Portal catalog.

WRITEghl.phone_system_purchase_number
  • Contract tier: agent_ready
  • Risk: write
  • Catalog version: 2026-07-12.2
  • Descriptor hash: f220e6b7075380fd3f7ea26f98d0c561f3f828c687ab879f048efe8f88633df1

Purchase a GHL Phone System number for the authenticated location. GHL category: Conversations / Phone System. This write operation may purchase billable phone inventory. Use only after explicit user confirmation and never during audits without a disposable purchase fixture.

Request Body

{
"jsonrpc": "2.0",
"id": "ghl-phone-system-purchase-number-example",
"method": "tools/call",
"params": {
"name": "ghl.phone_system_purchase_number",
"arguments": {
"body": {},
"query": {},
"tenantId": "tenantId_123",
"locationId": "locationId_123",
"confirmApply": "confirmApply_example",
"strictTenant": false,
"includePhoneNumbers": false,
"includeRoutingDetails": false
}
}
}

Arguments Schema

{
"type": "object",
"required": [
"body"
],
"properties": {
"body": {
"type": "object",
"description": "Request body for this official GHL Phone System endpoint. For purchase, include the exact phone number and only other fields documented or required by GHL.",
"additionalProperties": true
},
"query": {
"type": "object",
"description": "Optional GHL-supported query parameters for this official Phone System endpoint, such as documented filtering or pagination fields.",
"additionalProperties": true
},
"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."
},
"confirmApply": {
"type": "string",
"description": "Required before purchasing phone inventory. Set exactly to \"CONFIRM APPLY\" only after the user explicitly confirms the purchase."
},
"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 -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-purchase-number-example",
"method": "tools/call",
"params": {
"name": "ghl.phone_system_purchase_number",
"arguments": {
"body": {},
"query": {},
"tenantId": "tenantId_123",
"locationId": "locationId_123",
"confirmApply": "confirmApply_example",
"strictTenant": false,
"includePhoneNumbers": false,
"includeRoutingDetails": false
}
}
}'

Example Responses

{
"ok": true,
"message": "Tool ghl.phone_system_purchase_number executed successfully.",
"note": "Response shape varies by MCP tool. Inspect live responses for exact fields."
}