naftiko: 1.0.0-alpha2 info: label: Azure Cosmos DB REST API — Collections description: 'Azure Cosmos DB REST API — Collections. 2 operations. Lead operation: Cosmos DB List collections. Self-contained Naftiko capability covering one Microsoft Azure Cosmos Db business surface.' tags: - Microsoft Azure Cosmos Db - Collections created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: MICROSOFT_AZURE_COSMOS_DB_API_KEY: MICROSOFT_AZURE_COSMOS_DB_API_KEY capability: consumes: - type: http namespace: microsoft-azure-cosmos-db-collections baseUri: https://{account}.documents.azure.com description: Azure Cosmos DB REST API — Collections business capability. Self-contained, no shared references. resources: - name: dbs-databaseId-colls path: /dbs/{databaseId}/colls operations: - name: listcollections method: GET description: Cosmos DB List collections outputRawFormat: json outputParameters: - name: result type: object value: $. - name: createcollection method: POST description: Cosmos DB Create collection outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true authentication: type: apikey key: Authorization value: '{{env.MICROSOFT_AZURE_COSMOS_DB_API_KEY}}' placement: header exposes: - type: rest namespace: microsoft-azure-cosmos-db-collections-rest port: 8080 description: REST adapter for Azure Cosmos DB REST API — Collections. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/dbs/{databaseid}/colls name: dbs-databaseid-colls description: REST surface for dbs-databaseId-colls. operations: - method: GET name: listcollections description: Cosmos DB List collections call: microsoft-azure-cosmos-db-collections.listcollections outputParameters: - type: object mapping: $. - method: POST name: createcollection description: Cosmos DB Create collection call: microsoft-azure-cosmos-db-collections.createcollection with: body: rest.body outputParameters: - type: object mapping: $. - type: mcp namespace: microsoft-azure-cosmos-db-collections-mcp port: 9090 transport: http description: MCP adapter for Azure Cosmos DB REST API — Collections. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: cosmos-db-list-collections description: Cosmos DB List collections hints: readOnly: true destructive: false idempotent: true call: microsoft-azure-cosmos-db-collections.listcollections outputParameters: - type: object mapping: $. - name: cosmos-db-create-collection description: Cosmos DB Create collection hints: readOnly: false destructive: false idempotent: false call: microsoft-azure-cosmos-db-collections.createcollection with: body: tools.body outputParameters: - type: object mapping: $.