Create relation
ghl_create_relationCreate a relation between two CRM records using an association ID to link them. Provide the association, first record, and second record IDs to establish the connection.
Instructions
Create a relation between two records using an association definition. Get associationId from ghl_list_associations.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"associationId": "<associationId>",
"firstRecordId": "<firstRecordId>",
"secondRecordId": "<secondRecordId>"
},
"name": "ghl_create_relation"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| locationId | No | GHL Location (sub-account) ID. Defaults to GHL_LOCATION_ID. | |
| associationId | Yes | ||
| firstRecordId | Yes | ||
| secondRecordId | Yes |