crm_get_contact

Fetch the primary contact for an account (name, email, phone, preferred language).

Category
CRM
Stability
Beta
Version
v1
Auth
cf-access

Input schema

{
  "type": "object",
  "properties": {
    "account_id": { "type": "string" },
    "contact_id": { "type": "string" }
  },
  "oneOf": [
    { "required": ["account_id"] },
    { "required": ["contact_id"] }
  ]
}

Output schema

{
  "type": "object",
  "properties": {
    "contact_id": { "type": "string" },
    "account_id": { "type": "string" },
    "full_name": { "type": "string" },
    "email": { "type": "string", "format": "email" },
    "phone": { "type": "string" },
    "preferred_language": { "type": "string", "enum": ["fr", "en"] },
    "role": { "type": "string" }
  }
}

Example invocation

{
  "tool": "crm_get_contact",
  "arguments": { "account_id": "ACME-0042" }
}

Example response

{
  "contact_id": "C-0188",
  "account_id": "ACME-0042",
  "full_name": "Jean Lefèvre",
  "email": "j.lefevre@acmebistro.fr",
  "phone": "+33 6 12 34 56 78",
  "preferred_language": "fr",
  "role": "Gérant"
}

Called by almost every customer-facing skill to pick the right language and greeting. Cached on the Worker for the duration of a single MCP session.