Skip to main content

Agency List Locations

Immutable Catalog Entry

This descriptor comes from the active versioned Portal catalog.

READghl.agency_list_locations
  • Contract tier: legacy
  • Risk: read
  • Catalog version: 2026-07-12.2
  • Descriptor hash: 3af6f829b5ba512b94f23f2c23b86e6d142c9eed3afa7faaa634222e52b8081a

List agency sub-accounts (locations). Supports paging and basic name/domain/email filtering. GHL category: Launchpad. This is a read-only GHL API operation.

Request Body

{
"jsonrpc": "2.0",
"id": "ghl-agency-list-locations-example",
"method": "tools/call",
"params": {
"name": "ghl.agency_list_locations",
"arguments": {
"skip": 1,
"email": "email_example",
"limit": 1,
"order": "asc",
"query": "query_example",
"companyId": "companyId_123"
}
}
}

Arguments Schema

{
"type": "object",
"properties": {
"skip": {
"type": "number",
"default": 0,
"description": "Number of results to skip (default: 0)."
},
"email": {
"type": "string",
"format": "email",
"description": "Filter by email address (server-side)."
},
"limit": {
"type": "number",
"default": 25,
"description": "Max results to return (default: 25)."
},
"order": {
"enum": [
"asc",
"desc"
],
"type": "string",
"default": "asc",
"description": "Sort order (default: asc)."
},
"query": {
"type": "string",
"description": "Filter results by location name, domain, website, or email (client-side filter)."
},
"companyId": {
"type": "string",
"description": "Agency/company ID override (defaults to AGENCY_COMPANY_ID)."
}
},
"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-agency-list-locations-example",
"method": "tools/call",
"params": {
"name": "ghl.agency_list_locations",
"arguments": {
"skip": 1,
"email": "email_example",
"limit": 1,
"order": "asc",
"query": "query_example",
"companyId": "companyId_123"
}
}
}'

Example Responses

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