naftiko: 1.0.0-alpha2 info: label: Microsoft Azure Azure Cosmos DB REST API — Items description: 'Microsoft Azure Azure Cosmos DB REST API — Items. 5 operations. Lead operation: Microsoft Azure List Items. Self-contained Naftiko capability covering one Microsoft Azure business surface.' tags: - Microsoft Azure - Items 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-cosmos-db-items baseUri: https://{accountName}.documents.azure.com description: Microsoft Azure Azure Cosmos DB REST API — Items business capability. Self-contained, no shared references. resources: - name: dbs-databaseId-colls-containerId-docs path: /dbs/{databaseId}/colls/{containerId}/docs operations: - name: itemslist method: GET description: Microsoft Azure List Items outputRawFormat: json outputParameters: - name: result type: object value: $. - name: itemscreate method: POST description: Microsoft Azure Create an Item outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: x-ms-documentdb-is-upsert in: header type: boolean description: If true, the operation will perform an upsert instead of create. - name: body in: body type: object description: Request body (JSON). required: true - name: dbs-databaseId-colls-containerId-docs-itemId path: /dbs/{databaseId}/colls/{containerId}/docs/{itemId} operations: - name: itemsget method: GET description: Microsoft Azure Get an Item outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: itemId in: path type: string description: The ID of the item. required: true - name: itemsreplace method: PUT description: Microsoft Azure Replace an Item outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: itemId in: path type: string description: The ID of the item. required: true - name: body in: body type: object description: Request body (JSON). required: true - name: itemsdelete method: DELETE description: Microsoft Azure Delete an Item outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: itemId in: path type: string description: The ID of the item. required: true authentication: type: apikey key: Authorization value: '{{env.MICROSOFT_AZURE_API_KEY}}' placement: header exposes: - type: rest namespace: azure-cosmos-db-items-rest port: 8080 description: REST adapter for Microsoft Azure Azure Cosmos DB REST API — Items. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/dbs/{databaseid}/colls/{containerid}/docs name: dbs-databaseid-colls-containerid-docs description: REST surface for dbs-databaseId-colls-containerId-docs. operations: - method: GET name: itemslist description: Microsoft Azure List Items call: azure-cosmos-db-items.itemslist outputParameters: - type: object mapping: $. - method: POST name: itemscreate description: Microsoft Azure Create an Item call: azure-cosmos-db-items.itemscreate with: x-ms-documentdb-is-upsert: rest.x-ms-documentdb-is-upsert body: rest.body outputParameters: - type: object mapping: $. - path: /v1/dbs/{databaseid}/colls/{containerid}/docs/{itemid} name: dbs-databaseid-colls-containerid-docs-itemid description: REST surface for dbs-databaseId-colls-containerId-docs-itemId. operations: - method: GET name: itemsget description: Microsoft Azure Get an Item call: azure-cosmos-db-items.itemsget with: itemId: rest.itemId outputParameters: - type: object mapping: $. - method: PUT name: itemsreplace description: Microsoft Azure Replace an Item call: azure-cosmos-db-items.itemsreplace with: itemId: rest.itemId body: rest.body outputParameters: - type: object mapping: $. - method: DELETE name: itemsdelete description: Microsoft Azure Delete an Item call: azure-cosmos-db-items.itemsdelete with: itemId: rest.itemId outputParameters: - type: object mapping: $. - type: mcp namespace: azure-cosmos-db-items-mcp port: 9090 transport: http description: MCP adapter for Microsoft Azure Azure Cosmos DB REST API — Items. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: microsoft-azure-list-items description: Microsoft Azure List Items hints: readOnly: true destructive: false idempotent: true call: azure-cosmos-db-items.itemslist outputParameters: - type: object mapping: $. - name: microsoft-azure-create-item description: Microsoft Azure Create an Item hints: readOnly: false destructive: false idempotent: false call: azure-cosmos-db-items.itemscreate with: x-ms-documentdb-is-upsert: tools.x-ms-documentdb-is-upsert body: tools.body outputParameters: - type: object mapping: $. - name: microsoft-azure-get-item description: Microsoft Azure Get an Item hints: readOnly: true destructive: false idempotent: true call: azure-cosmos-db-items.itemsget with: itemId: tools.itemId outputParameters: - type: object mapping: $. - name: microsoft-azure-replace-item description: Microsoft Azure Replace an Item hints: readOnly: false destructive: false idempotent: true call: azure-cosmos-db-items.itemsreplace with: itemId: tools.itemId body: tools.body outputParameters: - type: object mapping: $. - name: microsoft-azure-delete-item description: Microsoft Azure Delete an Item hints: readOnly: false destructive: true idempotent: true call: azure-cosmos-db-items.itemsdelete with: itemId: tools.itemId outputParameters: - type: object mapping: $.