Microsoft · Capability

Microsoft Azure Cognitive Services API — Translator

Microsoft Azure Cognitive Services API — Translator. 2 operations. Lead operation: Microsoft Get supported languages. Self-contained Naftiko capability covering one Microsoft business surface.

Run with Naftiko MicrosoftTranslator

What You Can Do

GET
Getlanguages — Microsoft Get supported languages
/v1/languages
POST
Translatetext — Microsoft Translate text
/v1/translate

MCP Tools

microsoft-get-supported-languages

Microsoft Get supported languages

read-only idempotent
microsoft-translate-text

Microsoft Translate text

Capability Spec

azure-cognitive-services-translator.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Microsoft Azure Cognitive Services API — Translator
  description: 'Microsoft Azure Cognitive Services API — Translator. 2 operations. Lead operation: Microsoft Get supported
    languages. Self-contained Naftiko capability covering one Microsoft business surface.'
  tags:
  - Microsoft
  - Translator
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    MICROSOFT_API_KEY: MICROSOFT_API_KEY
capability:
  consumes:
  - type: http
    namespace: azure-cognitive-services-translator
    baseUri: https://{region}.api.cognitive.microsoft.com
    description: Microsoft Azure Cognitive Services API — Translator business capability. Self-contained, no shared references.
    resources:
    - name: languages
      path: /languages
      operations:
      - name: getlanguages
        method: GET
        description: Microsoft Get supported languages
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: api-version
          in: query
          type: string
          required: true
        - name: scope
          in: query
          type: string
          description: Comma-separated group of language names
    - name: translate
      path: /translate
      operations:
      - name: translatetext
        method: POST
        description: Microsoft Translate text
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: api-version
          in: query
          type: string
          required: true
        - name: to
          in: query
          type: array
          description: Target language codes
          required: true
        - name: from
          in: query
          type: string
          description: Source language code
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    authentication:
      type: apikey
      key: Ocp-Apim-Subscription-Key
      value: '{{env.MICROSOFT_API_KEY}}'
      placement: header
  exposes:
  - type: rest
    namespace: azure-cognitive-services-translator-rest
    port: 8080
    description: REST adapter for Microsoft Azure Cognitive Services API — Translator. One Spectral-compliant resource per
      consumed operation, prefixed with /v1.
    resources:
    - path: /v1/languages
      name: languages
      description: REST surface for languages.
      operations:
      - method: GET
        name: getlanguages
        description: Microsoft Get supported languages
        call: azure-cognitive-services-translator.getlanguages
        with:
          api-version: rest.api-version
          scope: rest.scope
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/translate
      name: translate
      description: REST surface for translate.
      operations:
      - method: POST
        name: translatetext
        description: Microsoft Translate text
        call: azure-cognitive-services-translator.translatetext
        with:
          api-version: rest.api-version
          to: rest.to
          from: rest.from
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: azure-cognitive-services-translator-mcp
    port: 9090
    transport: http
    description: MCP adapter for Microsoft Azure Cognitive Services API — Translator. One tool per consumed operation, routed
      inline through this capability's consumes block.
    tools:
    - name: microsoft-get-supported-languages
      description: Microsoft Get supported languages
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: azure-cognitive-services-translator.getlanguages
      with:
        api-version: tools.api-version
        scope: tools.scope
      outputParameters:
      - type: object
        mapping: $.
    - name: microsoft-translate-text
      description: Microsoft Translate text
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: azure-cognitive-services-translator.translatetext
      with:
        api-version: tools.api-version
        to: tools.to
        from: tools.from
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.