naftiko: 1.0.0-alpha2 info: label: Azure OpenAI Service REST API — Completions description: 'Azure OpenAI Service REST API — Completions. 1 operations. Lead operation: AOAI Create completion. Self-contained Naftiko capability covering one Microsoft Azure Openai business surface.' tags: - Microsoft Azure Openai - Completions created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: MICROSOFT_AZURE_OPENAI_API_KEY: MICROSOFT_AZURE_OPENAI_API_KEY capability: consumes: - type: http namespace: microsoft-azure-openai-completions baseUri: https://{resource}.openai.azure.com description: Azure OpenAI Service REST API — Completions business capability. Self-contained, no shared references. resources: - name: openai-deployments-deployment-id-completions path: /openai/deployments/{deployment-id}/completions operations: - name: createcompletion method: POST description: AOAI Create completion 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.MICROSOFT_AZURE_OPENAI_API_KEY}}' exposes: - type: rest namespace: microsoft-azure-openai-completions-rest port: 8080 description: REST adapter for Azure OpenAI Service REST API — Completions. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/openai/deployments/{deployment-id}/completions name: openai-deployments-deployment-id-completions description: REST surface for openai-deployments-deployment-id-completions. operations: - method: POST name: createcompletion description: AOAI Create completion call: microsoft-azure-openai-completions.createcompletion with: body: rest.body outputParameters: - type: object mapping: $. - type: mcp namespace: microsoft-azure-openai-completions-mcp port: 9090 transport: http description: MCP adapter for Azure OpenAI Service REST API — Completions. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: aoai-create-completion description: AOAI Create completion hints: readOnly: false destructive: false idempotent: false call: microsoft-azure-openai-completions.createcompletion with: body: tools.body outputParameters: - type: object mapping: $.