Facebook Business Manager Facebook Marketing API — Custom Audiences

Facebook Business Manager Facebook Marketing API — Custom Audiences. 2 operations. Lead operation: Facebook Business Manager List custom audiences. Self-contained Naftiko capability covering one Facebook Business Manager business surface.

Run with Naftiko Facebook Business ManagerCustom Audiences

What You Can Do

GET
Listcustomaudiences — Facebook Business Manager List custom audiences
/v1/act-ad-account-id/customaudiences
POST
Createcustomaudience — Facebook Business Manager Create a custom audience
/v1/act-ad-account-id/customaudiences

MCP Tools

facebook-business-manager-list-custom

Facebook Business Manager List custom audiences

read-only idempotent
facebook-business-manager-create-custom

Facebook Business Manager Create a custom audience

Capability Spec

facebook-marketing-custom-audiences.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Facebook Business Manager Facebook Marketing API — Custom Audiences
  description: 'Facebook Business Manager Facebook Marketing API — Custom Audiences. 2 operations. Lead operation: Facebook
    Business Manager List custom audiences. Self-contained Naftiko capability covering one Facebook Business Manager business
    surface.'
  tags:
  - Facebook Business Manager
  - Custom Audiences
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    FACEBOOK_BUSINESS_MANAGER_API_KEY: FACEBOOK_BUSINESS_MANAGER_API_KEY
capability:
  consumes:
  - type: http
    namespace: facebook-marketing-custom-audiences
    baseUri: https://graph.facebook.com/v25.0
    description: Facebook Business Manager Facebook Marketing API — Custom Audiences business capability. Self-contained,
      no shared references.
    resources:
    - name: act_{ad_account_id}-customaudiences
      path: /act_{ad_account_id}/customaudiences
      operations:
      - name: listcustomaudiences
        method: GET
        description: Facebook Business Manager List custom audiences
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: createcustomaudience
        method: POST
        description: Facebook Business Manager Create a custom audience
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    authentication:
      type: bearer
      token: '{{env.FACEBOOK_BUSINESS_MANAGER_API_KEY}}'
  exposes:
  - type: rest
    namespace: facebook-marketing-custom-audiences-rest
    port: 8080
    description: REST adapter for Facebook Business Manager Facebook Marketing API — Custom Audiences. One Spectral-compliant
      resource per consumed operation, prefixed with /v1.
    resources:
    - path: /v1/act-ad-account-id/customaudiences
      name: act-ad-account-id-customaudiences
      description: REST surface for act_{ad_account_id}-customaudiences.
      operations:
      - method: GET
        name: listcustomaudiences
        description: Facebook Business Manager List custom audiences
        call: facebook-marketing-custom-audiences.listcustomaudiences
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: createcustomaudience
        description: Facebook Business Manager Create a custom audience
        call: facebook-marketing-custom-audiences.createcustomaudience
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: facebook-marketing-custom-audiences-mcp
    port: 9090
    transport: http
    description: MCP adapter for Facebook Business Manager Facebook Marketing API — Custom Audiences. One tool per consumed
      operation, routed inline through this capability's consumes block.
    tools:
    - name: facebook-business-manager-list-custom
      description: Facebook Business Manager List custom audiences
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: facebook-marketing-custom-audiences.listcustomaudiences
      outputParameters:
      - type: object
        mapping: $.
    - name: facebook-business-manager-create-custom
      description: Facebook Business Manager Create a custom audience
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: facebook-marketing-custom-audiences.createcustomaudience
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.