Microsoft Azure · Capability

Microsoft Azure Azure OpenAI Service API — Completions

Microsoft Azure Azure OpenAI Service API — Completions. 1 operations. Lead operation: Microsoft Azure Create a Text Completion. Self-contained Naftiko capability covering one Microsoft Azure business surface.

Run with Naftiko Microsoft AzureCompletions

What You Can Do

POST
Completionscreate — Microsoft Azure Create a Text Completion
/v1/deployments/{deployment-id}/completions

MCP Tools

microsoft-azure-create-text-completion

Microsoft Azure Create a Text Completion

Capability Spec

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