Facebook · Capability

Facebook WhatsApp Business API — Phone Numbers

Facebook WhatsApp Business API — Phone Numbers. 2 operations. Lead operation: Facebook Get WhatsApp Phone Number. Self-contained Naftiko capability covering one Facebook business surface.

Run with Naftiko FacebookPhone Numbers

What You Can Do

GET
Getwhatsappphonenumber — Facebook Get WhatsApp Phone Number
/v1/{phone-number-id}
GET
Listwhatsappphonenumbers — Facebook List WhatsApp Phone Numbers
/v1/{waba-id}/phone-numbers

MCP Tools

facebook-get-whatsapp-phone-number

Facebook Get WhatsApp Phone Number

read-only idempotent
facebook-list-whatsapp-phone-numbers

Facebook List WhatsApp Phone Numbers

read-only idempotent

Capability Spec

whatsapp-phone-numbers.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Facebook WhatsApp Business API — Phone Numbers
  description: 'Facebook WhatsApp Business API — Phone Numbers. 2 operations. Lead operation: Facebook Get WhatsApp Phone
    Number. Self-contained Naftiko capability covering one Facebook business surface.'
  tags:
  - Facebook
  - Phone Numbers
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    FACEBOOK_API_KEY: FACEBOOK_API_KEY
capability:
  consumes:
  - type: http
    namespace: whatsapp-phone-numbers
    baseUri: https://graph.facebook.com/v21.0
    description: Facebook WhatsApp Business API — Phone Numbers business capability. Self-contained, no shared references.
    resources:
    - name: phone-number-id
      path: /{phone-number-id}
      operations:
      - name: getwhatsappphonenumber
        method: GET
        description: Facebook Get WhatsApp Phone Number
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: phone-number-id
          in: path
          type: string
          description: The phone number ID.
          required: true
    - name: waba-id-phone_numbers
      path: /{waba-id}/phone_numbers
      operations:
      - name: listwhatsappphonenumbers
        method: GET
        description: Facebook List WhatsApp Phone Numbers
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: waba-id
          in: path
          type: string
          description: WhatsApp Business Account ID.
          required: true
    authentication:
      type: bearer
      token: '{{env.FACEBOOK_API_KEY}}'
  exposes:
  - type: rest
    namespace: whatsapp-phone-numbers-rest
    port: 8080
    description: REST adapter for Facebook WhatsApp Business API — Phone Numbers. One Spectral-compliant resource per consumed
      operation, prefixed with /v1.
    resources:
    - path: /v1/{phone-number-id}
      name: phone-number-id
      description: REST surface for phone-number-id.
      operations:
      - method: GET
        name: getwhatsappphonenumber
        description: Facebook Get WhatsApp Phone Number
        call: whatsapp-phone-numbers.getwhatsappphonenumber
        with:
          phone-number-id: rest.phone-number-id
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/{waba-id}/phone-numbers
      name: waba-id-phone-numbers
      description: REST surface for waba-id-phone_numbers.
      operations:
      - method: GET
        name: listwhatsappphonenumbers
        description: Facebook List WhatsApp Phone Numbers
        call: whatsapp-phone-numbers.listwhatsappphonenumbers
        with:
          waba-id: rest.waba-id
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: whatsapp-phone-numbers-mcp
    port: 9090
    transport: http
    description: MCP adapter for Facebook WhatsApp Business API — Phone Numbers. One tool per consumed operation, routed inline
      through this capability's consumes block.
    tools:
    - name: facebook-get-whatsapp-phone-number
      description: Facebook Get WhatsApp Phone Number
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: whatsapp-phone-numbers.getwhatsappphonenumber
      with:
        phone-number-id: tools.phone-number-id
      outputParameters:
      - type: object
        mapping: $.
    - name: facebook-list-whatsapp-phone-numbers
      description: Facebook List WhatsApp Phone Numbers
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: whatsapp-phone-numbers.listwhatsappphonenumbers
      with:
        waba-id: tools.waba-id
      outputParameters:
      - type: object
        mapping: $.