naftiko: 1.0.0-alpha2 info: label: Facebook Business Manager Facebook Marketing API — Ads description: 'Facebook Business Manager Facebook Marketing API — Ads. 3 operations. Lead operation: Facebook Business Manager List ads. Self-contained Naftiko capability covering one Facebook Business Manager business surface.' tags: - Facebook Business Manager - Ads 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-ads baseUri: https://graph.facebook.com/v25.0 description: Facebook Business Manager Facebook Marketing API — Ads business capability. Self-contained, no shared references. resources: - name: act_{ad_account_id}-ads path: /act_{ad_account_id}/ads operations: - name: listads method: GET description: Facebook Business Manager List ads outputRawFormat: json outputParameters: - name: result type: object value: $. - name: createad method: POST description: Facebook Business Manager Create an ad outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: ad_id path: /{ad_id} operations: - name: getad method: GET description: Facebook Business Manager Get an ad outputRawFormat: json outputParameters: - name: result type: object value: $. authentication: type: bearer token: '{{env.FACEBOOK_BUSINESS_MANAGER_API_KEY}}' exposes: - type: rest namespace: facebook-marketing-ads-rest port: 8080 description: REST adapter for Facebook Business Manager Facebook Marketing API — Ads. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/act-ad-account-id/ads name: act-ad-account-id-ads description: REST surface for act_{ad_account_id}-ads. operations: - method: GET name: listads description: Facebook Business Manager List ads call: facebook-marketing-ads.listads outputParameters: - type: object mapping: $. - method: POST name: createad description: Facebook Business Manager Create an ad call: facebook-marketing-ads.createad with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/{ad-id} name: ad-id description: REST surface for ad_id. operations: - method: GET name: getad description: Facebook Business Manager Get an ad call: facebook-marketing-ads.getad outputParameters: - type: object mapping: $. - type: mcp namespace: facebook-marketing-ads-mcp port: 9090 transport: http description: MCP adapter for Facebook Business Manager Facebook Marketing API — Ads. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: facebook-business-manager-list-ads description: Facebook Business Manager List ads hints: readOnly: true destructive: false idempotent: true call: facebook-marketing-ads.listads outputParameters: - type: object mapping: $. - name: facebook-business-manager-create-ad description: Facebook Business Manager Create an ad hints: readOnly: false destructive: false idempotent: false call: facebook-marketing-ads.createad with: body: tools.body outputParameters: - type: object mapping: $. - name: facebook-business-manager-get-ad description: Facebook Business Manager Get an ad hints: readOnly: true destructive: false idempotent: true call: facebook-marketing-ads.getad outputParameters: - type: object mapping: $.