naftiko: 1.0.0-alpha2 info: label: Optimizely Data Platform REST API — Schema description: 'Optimizely Data Platform REST API — Schema. 4 operations. Lead operation: List schema objects. Self-contained Naftiko capability covering one Optimizely business surface.' tags: - Optimizely - Schema created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: OPTIMIZELY_API_KEY: OPTIMIZELY_API_KEY capability: consumes: - type: http namespace: data-platform-schema baseUri: https://api.zaius.com/v3 description: Optimizely Data Platform REST API — Schema business capability. Self-contained, no shared references. resources: - name: schema-objects path: /schema/objects operations: - name: listschemaobjects method: GET description: List schema objects outputRawFormat: json outputParameters: - name: result type: object value: $. - name: schema-objects-object_type path: /schema/objects/{object_type} operations: - name: getschemaobject method: GET description: Get a schema object outputRawFormat: json outputParameters: - name: result type: object value: $. - name: createschemaobject method: POST description: Create a schema object outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: schema-objects-object_type-fields path: /schema/objects/{object_type}/fields operations: - name: createschemafield method: POST description: Create a schema field outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true authentication: type: apikey key: x-api-key value: '{{env.OPTIMIZELY_API_KEY}}' placement: header exposes: - type: rest namespace: data-platform-schema-rest port: 8080 description: REST adapter for Optimizely Data Platform REST API — Schema. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/schema/objects name: schema-objects description: REST surface for schema-objects. operations: - method: GET name: listschemaobjects description: List schema objects call: data-platform-schema.listschemaobjects outputParameters: - type: object mapping: $. - path: /v1/schema/objects/{object-type} name: schema-objects-object-type description: REST surface for schema-objects-object_type. operations: - method: GET name: getschemaobject description: Get a schema object call: data-platform-schema.getschemaobject outputParameters: - type: object mapping: $. - method: POST name: createschemaobject description: Create a schema object call: data-platform-schema.createschemaobject with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/schema/objects/{object-type}/fields name: schema-objects-object-type-fields description: REST surface for schema-objects-object_type-fields. operations: - method: POST name: createschemafield description: Create a schema field call: data-platform-schema.createschemafield with: body: rest.body outputParameters: - type: object mapping: $. - type: mcp namespace: data-platform-schema-mcp port: 9090 transport: http description: MCP adapter for Optimizely Data Platform REST API — Schema. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: list-schema-objects description: List schema objects hints: readOnly: true destructive: false idempotent: true call: data-platform-schema.listschemaobjects outputParameters: - type: object mapping: $. - name: get-schema-object description: Get a schema object hints: readOnly: true destructive: false idempotent: true call: data-platform-schema.getschemaobject outputParameters: - type: object mapping: $. - name: create-schema-object description: Create a schema object hints: readOnly: false destructive: false idempotent: false call: data-platform-schema.createschemaobject with: body: tools.body outputParameters: - type: object mapping: $. - name: create-schema-field description: Create a schema field hints: readOnly: false destructive: false idempotent: false call: data-platform-schema.createschemafield with: body: tools.body outputParameters: - type: object mapping: $.