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: $.