Azure OpenAI Service · Capability

Azure OpenAI Service REST API — Chat

Azure OpenAI Service REST API — Chat. 1 operations. Lead operation: AOAI Create chat completion. Self-contained Naftiko capability covering one Microsoft Azure Openai business surface.

Run with Naftiko Microsoft Azure OpenaiChat

What You Can Do

POST
Createchatcompletion — AOAI Create chat completion
/v1/openai/deployments/{deployment-id}/chat/completions

MCP Tools

aoai-create-chat-completion

AOAI Create chat completion

Capability Spec

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