Skip to main content

Search Contacts

Immutable Catalog + Curated Guide

This lossless descriptor comes from the active Portal catalog and is enhanced with reviewed examples.

READghl.search_contacts
  • Contract tier: agent_ready
  • Risk: read
  • Catalog version: 2026-07-12.2
  • Descriptor hash: 78a015397f357cc82912c74cae616b4b0ce74a50416a170cfc9a9fb36e053e5b

Find contacts by query, email, or phone.

Request Body

{
"jsonrpc": "2.0",
"id": "ghl-search-contacts-example",
"method": "tools/call",
"params": {
"name": "ghl.search_contacts",
"arguments": {
"query": "john",
"limit": 10
}
}
}

Arguments Schema

{
"type": "object",
"properties": {
"email": {
"type": "string",
"description": "Filter by email address"
},
"limit": {
"type": "number",
"description": "Maximum number of results (default: 25)"
},
"phone": {
"type": "string",
"description": "Filter by phone number"
},
"query": {
"type": "string",
"description": "Search query string"
},
"tenantId": {
"type": "string",
"description": "Tenant ID from list_tenants."
}
}
}

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-search-contacts-example",
"method": "tools/call",
"params": {
"name": "ghl.search_contacts",
"arguments": {
"query": "john",
"limit": 10
}
}
}'

Example Responses

{
"ok": true,
"contacts": [
{
"id": "cont_01",
"firstName": "John",
"lastName": "Doe",
"email": "john@example.com"
}
]
}