Azure AI Search · Capability

Azure AI Search REST API — Indexes

Azure AI Search REST API — Indexes. 5 operations. Lead operation: Search List indexes. Self-contained Naftiko capability covering one Microsoft Azure Search business surface.

Run with Naftiko Microsoft Azure SearchIndexes

What You Can Do

GET
Listindexes — Search List indexes
/v1/indexes
POST
Createindex — Search Create index
/v1/indexes
GET
Getindex — Search Get index
/v1/indexes-indexname
PUT
Createorupdateindex — Search Create or update index
/v1/indexes-indexname
DELETE
Deleteindex — Search Delete index
/v1/indexes-indexname

MCP Tools

search-list-indexes

Search List indexes

read-only idempotent
search-create-index

Search Create index

read-only
search-get-index

Search Get index

read-only idempotent
search-create-update-index

Search Create or update index

idempotent
search-delete-index

Search Delete index

idempotent

Capability Spec

microsoft-azure-search-indexes.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Azure AI Search REST API — Indexes
  description: 'Azure AI Search REST API — Indexes. 5 operations. Lead operation: Search List indexes. Self-contained Naftiko
    capability covering one Microsoft Azure Search business surface.'
  tags:
  - Microsoft Azure Search
  - Indexes
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    MICROSOFT_AZURE_SEARCH_API_KEY: MICROSOFT_AZURE_SEARCH_API_KEY
capability:
  consumes:
  - type: http
    namespace: microsoft-azure-search-indexes
    baseUri: https://{search-service}.search.windows.net
    description: Azure AI Search REST API — Indexes business capability. Self-contained, no shared references.
    resources:
    - name: indexes
      path: /indexes
      operations:
      - name: listindexes
        method: GET
        description: Search List indexes
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: api-version
          in: query
          type: string
          required: true
      - name: createindex
        method: POST
        description: Search Create index
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: api-version
          in: query
          type: string
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: indexes('{indexName}')
      path: /indexes('{indexName}')
      operations:
      - name: getindex
        method: GET
        description: Search Get index
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: createorupdateindex
        method: PUT
        description: Search Create or update index
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
      - name: deleteindex
        method: DELETE
        description: Search Delete index
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    authentication:
      type: apikey
      key: api-key
      value: '{{env.MICROSOFT_AZURE_SEARCH_API_KEY}}'
      placement: header
  exposes:
  - type: rest
    namespace: microsoft-azure-search-indexes-rest
    port: 8080
    description: REST adapter for Azure AI Search REST API — Indexes. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/indexes
      name: indexes
      description: REST surface for indexes.
      operations:
      - method: GET
        name: listindexes
        description: Search List indexes
        call: microsoft-azure-search-indexes.listindexes
        with:
          api-version: rest.api-version
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: createindex
        description: Search Create index
        call: microsoft-azure-search-indexes.createindex
        with:
          api-version: rest.api-version
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/indexes-indexname
      name: indexes-indexname
      description: REST surface for indexes('{indexName}').
      operations:
      - method: GET
        name: getindex
        description: Search Get index
        call: microsoft-azure-search-indexes.getindex
        outputParameters:
        - type: object
          mapping: $.
      - method: PUT
        name: createorupdateindex
        description: Search Create or update index
        call: microsoft-azure-search-indexes.createorupdateindex
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: deleteindex
        description: Search Delete index
        call: microsoft-azure-search-indexes.deleteindex
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: microsoft-azure-search-indexes-mcp
    port: 9090
    transport: http
    description: MCP adapter for Azure AI Search REST API — Indexes. One tool per consumed operation, routed inline through
      this capability's consumes block.
    tools:
    - name: search-list-indexes
      description: Search List indexes
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: microsoft-azure-search-indexes.listindexes
      with:
        api-version: tools.api-version
      outputParameters:
      - type: object
        mapping: $.
    - name: search-create-index
      description: Search Create index
      hints:
        readOnly: true
        destructive: false
        idempotent: false
      call: microsoft-azure-search-indexes.createindex
      with:
        api-version: tools.api-version
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: search-get-index
      description: Search Get index
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: microsoft-azure-search-indexes.getindex
      outputParameters:
      - type: object
        mapping: $.
    - name: search-create-update-index
      description: Search Create or update index
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: microsoft-azure-search-indexes.createorupdateindex
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: search-delete-index
      description: Search Delete index
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: microsoft-azure-search-indexes.deleteindex
      outputParameters:
      - type: object
        mapping: $.