Skip to main content

Upsert Contact

Catalog + Curated

This page is generated from the full broker catalog and enhanced with curated examples.

POSTghl.upsert_contact

Create or update a contact idempotently.

Request Body

{
"jsonrpc": "2.0",
"id": "ghl-upsert-contact-example",
"method": "tools/call",
"params": {
"name": "ghl.upsert_contact",
"arguments": {
"firstName": "Ava",
"lastName": "Reed",
"email": "ava.reed@example.com",
"tags": [
"lead",
"vip"
]
}
}
}

Arguments Schema

{
"type": "object",
"required": [
"firstName"
],
"properties": {
"firstName": {
"type": "string"
},
"lastName": {
"type": "string"
},
"email": {
"type": "string"
},
"phone": {
"type": "string"
},
"tags": {
"type": "array",
"items": {
"type": "string"
}
}
},
"additionalProperties": false
}

Code Examples

curl -X POST 'https://madpanda3d.com/lab/mad-mcps/portal/api/mcp' \
-H 'Authorization: Bearer mad_live_***' \
-H 'Content-Type: application/json' \
-d '{
"jsonrpc": "2.0",
"id": "ghl-upsert-contact-example",
"method": "tools/call",
"params": {
"name": "ghl.upsert_contact",
"arguments": {
"firstName": "Ava",
"lastName": "Reed",
"email": "ava.reed@example.com",
"tags": [
"lead",
"vip"
]
}
}
}'

Example Responses

{
"ok": true,
"contact": {
"id": "cont_294",
"firstName": "Ava",
"email": "ava.reed@example.com"
}
}