crm_get_contact

Récupérer le contact principal d'un compte (nom, email, téléphone, langue préférée).

Catégorie
CRM
Stabilité
Bêta
Version
v1
Auth
cf-access

Schéma d’entrée

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

Schéma de sortie

{
  "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" }
  }
}

Exemple d’invocation

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

Exemple de réponse

{
  "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"
}

Appelé par presque toutes les compétences client-facing pour choisir la bonne langue et la bonne salutation. Mis en cache sur le Worker pour la durée d’une session MCP.