Skip to main content

Resolve Location

Immutable Catalog Entry

This descriptor comes from the active versioned Portal catalog.

READghl.resolve_location
  • Contract tier: legacy
  • Risk: read
  • Catalog version: 2026-07-12.2
  • Descriptor hash: 4fb46013d661ef6de313eb3275ccf04f7c98180d50f63263d3c8f98b7d405119

Agency-only: resolve the best matching location by name, domain, or email. GHL category: Launchpad. This is a read-only GHL API operation.

Request Body

{
"jsonrpc": "2.0",
"id": "ghl-resolve-location-example",
"method": "tools/call",
"params": {
"name": "ghl.resolve_location",
"arguments": {
"query": "query_example",
"skip": 1,
"email": "email_example",
"limit": 1,
"order": "asc",
"companyId": "companyId_123",
"includeMatches": false
}
}
}

Arguments Schema

{
"type": "object",
"required": [
"query"
],
"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": "Name, domain, or email fragment to match."
},
"companyId": {
"type": "string",
"description": "Agency/company ID override (defaults to AGENCY_COMPANY_ID)."
},
"includeMatches": {
"type": "boolean",
"default": false,
"description": "Include all matching locations in the response."
}
},
"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-resolve-location-example",
"method": "tools/call",
"params": {
"name": "ghl.resolve_location",
"arguments": {
"query": "query_example",
"skip": 1,
"email": "email_example",
"limit": 1,
"order": "asc",
"companyId": "companyId_123",
"includeMatches": false
}
}
}'

Example Responses

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