[
  {
    "type": "function",
    "function": {
      "name": "send_whatsapp",
      "description": "Send a WhatsApp link to the caller. Always use M1Mart for company_code. Only ask for phone number.",
      "parameters": {
        "type": "object",
        "properties": {
          "company_code": { "type": "string", "description": "Always use M1Mart" },
          "phone_number": { "type": "string", "description": "Recipient phone number in international format. Always prefix with +60 and remove leading 0. Example: 0104040206 becomes +60104040206" }
        },
        "required": ["company_code", "phone_number"]
      }
    },
    "x_endpoint": "https://aiwhatsapp.mforce.asia/api/links/generate"
  }
]
