naftiko: 1.0.0-alpha2 info: label: Optimizely Feature Experimentation REST API — Flags description: 'Optimizely Feature Experimentation REST API — Flags. 5 operations. Lead operation: List flags. Self-contained Naftiko capability covering one Optimizely business surface.' tags: - Optimizely - Flags created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: OPTIMIZELY_API_KEY: OPTIMIZELY_API_KEY capability: consumes: - type: http namespace: feature-experimentation-flags baseUri: https://api.optimizely.com/v2 description: Optimizely Feature Experimentation REST API — Flags business capability. Self-contained, no shared references. resources: - name: projects-project_id-flags path: /projects/{project_id}/flags operations: - name: listflags method: GET description: List flags outputRawFormat: json outputParameters: - name: result type: object value: $. - name: createflag method: POST description: Create a flag outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: projects-project_id-flags-flag_key path: /projects/{project_id}/flags/{flag_key} operations: - name: getflag method: GET description: Get a flag outputRawFormat: json outputParameters: - name: result type: object value: $. - name: updateflag method: PATCH description: Update a flag outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: deleteflag method: DELETE description: Delete a flag outputRawFormat: json outputParameters: - name: result type: object value: $. authentication: type: bearer token: '{{env.OPTIMIZELY_API_KEY}}' exposes: - type: rest namespace: feature-experimentation-flags-rest port: 8080 description: REST adapter for Optimizely Feature Experimentation REST API — Flags. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/projects/{project-id}/flags name: projects-project-id-flags description: REST surface for projects-project_id-flags. operations: - method: GET name: listflags description: List flags call: feature-experimentation-flags.listflags outputParameters: - type: object mapping: $. - method: POST name: createflag description: Create a flag call: feature-experimentation-flags.createflag with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/projects/{project-id}/flags/{flag-key} name: projects-project-id-flags-flag-key description: REST surface for projects-project_id-flags-flag_key. operations: - method: GET name: getflag description: Get a flag call: feature-experimentation-flags.getflag outputParameters: - type: object mapping: $. - method: PATCH name: updateflag description: Update a flag call: feature-experimentation-flags.updateflag with: body: rest.body outputParameters: - type: object mapping: $. - method: DELETE name: deleteflag description: Delete a flag call: feature-experimentation-flags.deleteflag outputParameters: - type: object mapping: $. - type: mcp namespace: feature-experimentation-flags-mcp port: 9090 transport: http description: MCP adapter for Optimizely Feature Experimentation REST API — Flags. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: list-flags description: List flags hints: readOnly: true destructive: false idempotent: true call: feature-experimentation-flags.listflags outputParameters: - type: object mapping: $. - name: create-flag description: Create a flag hints: readOnly: false destructive: false idempotent: false call: feature-experimentation-flags.createflag with: body: tools.body outputParameters: - type: object mapping: $. - name: get-flag description: Get a flag hints: readOnly: true destructive: false idempotent: true call: feature-experimentation-flags.getflag outputParameters: - type: object mapping: $. - name: update-flag description: Update a flag hints: readOnly: false destructive: false idempotent: true call: feature-experimentation-flags.updateflag with: body: tools.body outputParameters: - type: object mapping: $. - name: delete-flag description: Delete a flag hints: readOnly: false destructive: true idempotent: true call: feature-experimentation-flags.deleteflag outputParameters: - type: object mapping: $.