Meta · Capability

Meta Graph API - User — Custom Audiences

Meta Graph API - User — Custom Audiences. 2 operations. Lead operation: Meta Add users to custom audience. Self-contained Naftiko capability covering one Meta business surface.

Run with Naftiko MetaCustom Audiences

What You Can Do

POST
Adduserstocustomaudience — Meta Add users to custom audience
/v1/{custom-audience-id}/users
DELETE
Removeusersfromcustomaudience — Meta Remove users from custom audience
/v1/{custom-audience-id}/users

MCP Tools

meta-add-users-custom-audience

Meta Add users to custom audience

meta-remove-users-custom-audience

Meta Remove users from custom audience

idempotent

Capability Spec

meta-custom-audiences.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Meta Graph API - User — Custom Audiences
  description: 'Meta Graph API - User — Custom Audiences. 2 operations. Lead operation: Meta Add users to custom audience.
    Self-contained Naftiko capability covering one Meta business surface.'
  tags:
  - Meta
  - Custom Audiences
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    META_API_KEY: META_API_KEY
capability:
  consumes:
  - type: http
    namespace: meta-custom-audiences
    baseUri: https://graph.facebook.com/v22.0
    description: Meta Graph API - User — Custom Audiences business capability. Self-contained, no shared references.
    resources:
    - name: custom-audience-id-users
      path: /{custom-audience-id}/users
      operations:
      - name: adduserstocustomaudience
        method: POST
        description: Meta Add users to custom audience
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
      - name: removeusersfromcustomaudience
        method: DELETE
        description: Meta Remove users from custom audience
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    authentication:
      type: bearer
      token: '{{env.META_API_KEY}}'
  exposes:
  - type: rest
    namespace: meta-custom-audiences-rest
    port: 8080
    description: REST adapter for Meta Graph API - User — Custom Audiences. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/{custom-audience-id}/users
      name: custom-audience-id-users
      description: REST surface for custom-audience-id-users.
      operations:
      - method: POST
        name: adduserstocustomaudience
        description: Meta Add users to custom audience
        call: meta-custom-audiences.adduserstocustomaudience
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: removeusersfromcustomaudience
        description: Meta Remove users from custom audience
        call: meta-custom-audiences.removeusersfromcustomaudience
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: meta-custom-audiences-mcp
    port: 9090
    transport: http
    description: MCP adapter for Meta Graph API - User — Custom Audiences. One tool per consumed operation, routed inline
      through this capability's consumes block.
    tools:
    - name: meta-add-users-custom-audience
      description: Meta Add users to custom audience
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: meta-custom-audiences.adduserstocustomaudience
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: meta-remove-users-custom-audience
      description: Meta Remove users from custom audience
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: meta-custom-audiences.removeusersfromcustomaudience
      outputParameters:
      - type: object
        mapping: $.