Skip to main content

Attach Social Oauth Account

Immutable Catalog Entry

This descriptor comes from the active versioned Portal catalog.

WRITEghl.attach_social_oauth_account
  • Contract tier: agent_ready
  • Risk: write
  • Catalog version: 2026-07-12.2
  • Descriptor hash: 9d229afa05d362bd28ef20fde575577ff01fd9f82d844770ce45ccf48e4f5bf1

Attach an already-authorized Social Planner OAuth account/page/profile to the current GHL location. Do not use this on production social accounts unless the user explicitly asks for that connection. GHL category: Marketing. This writes to GoHighLevel and may change account data.

Request Body

{
"jsonrpc": "2.0",
"id": "ghl-attach-social-oauth-account-example",
"method": "tools/call",
"params": {
"name": "ghl.attach_social_oauth_account",
"arguments": {
"platform": "google",
"accountId": "accountId_123",
"attachData": {},
"tenantId": "tenantId_123"
}
}
}

Arguments Schema

{
"type": "object",
"required": [
"platform",
"accountId",
"attachData"
],
"properties": {
"platform": {
"enum": [
"google",
"facebook",
"instagram",
"linkedin",
"twitter",
"tiktok",
"tiktok-business"
],
"type": "string",
"description": "Social platform to attach."
},
"tenantId": {
"type": "string",
"description": "Tenant ID from list_tenants."
},
"accountId": {
"type": "string",
"description": "OAuth account ID returned by the platform OAuth flow."
},
"attachData": {
"type": "object",
"description": "Platform-specific attach payload from the matching get_platform_accounts response.",
"additionalProperties": true
}
}
}

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-attach-social-oauth-account-example",
"method": "tools/call",
"params": {
"name": "ghl.attach_social_oauth_account",
"arguments": {
"platform": "google",
"accountId": "accountId_123",
"attachData": {},
"tenantId": "tenantId_123"
}
}
}'

Example Responses

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