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