Skip to main content

Ghl Create Association

Immutable Catalog Entry

This descriptor comes from the active versioned Portal catalog.

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

Create a new association that defines relationship types between entities like contacts, custom objects, and opportunities. GHL category: App Marketplace. This writes to GoHighLevel and may change account data.

Request Body

{
"jsonrpc": "2.0",
"id": "ghl-ghl-create-association-example",
"method": "tools/call",
"params": {
"name": "ghl.ghl_create_association",
"arguments": {
"key": "key_example",
"firstObjectLabel": "",
"firstObjectKey": "",
"secondObjectLabel": "",
"secondObjectKey": "",
"tenantId": "tenantId_123",
"locationId": "locationId_123",
"strictTenant": false
}
}
}

Arguments Schema

{
"type": "object",
"required": [
"key",
"firstObjectLabel",
"firstObjectKey",
"secondObjectLabel",
"secondObjectKey"
],
"properties": {
"key": {
"type": "string",
"description": "Unique key for the association (e.g., \"student_teacher\")"
},
"tenantId": {
"type": "string",
"description": "Tenant ID from list_tenants."
},
"locationId": {
"type": "string",
"description": "GoHighLevel location ID (will use default if not provided)"
},
"strictTenant": {
"type": "boolean",
"default": true,
"description": "Require tenantId to match locationId routing (default: true)."
},
"firstObjectKey": {
"description": "Key for the first object (e.g., \"custom_objects.children\")"
},
"secondObjectKey": {
"description": "Key for the second object (e.g., \"contact\")"
},
"firstObjectLabel": {
"description": "Label for the first object in the association (e.g., \"student\")"
},
"secondObjectLabel": {
"description": "Label for the second object in the association (e.g., \"teacher\")"
}
}
}

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-ghl-create-association-example",
"method": "tools/call",
"params": {
"name": "ghl.ghl_create_association",
"arguments": {
"key": "key_example",
"firstObjectLabel": "",
"firstObjectKey": "",
"secondObjectLabel": "",
"secondObjectKey": "",
"tenantId": "tenantId_123",
"locationId": "locationId_123",
"strictTenant": false
}
}
}'

Example Responses

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