naftiko: 1.0.0-alpha2 info: label: CockroachDB Cloud API — MaintenanceWindows description: 'CockroachDB Cloud API — MaintenanceWindows. 3 operations. Lead operation: Get maintenance window. Self-contained Naftiko capability covering one Cockroach Labs business surface.' tags: - Cockroach Labs - MaintenanceWindows created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: COCKROACH_LABS_API_KEY: COCKROACH_LABS_API_KEY capability: consumes: - type: http namespace: cloud-maintenancewindows baseUri: https://cockroachlabs.cloud description: CockroachDB Cloud API — MaintenanceWindows business capability. Self-contained, no shared references. resources: - name: api-v1-clusters-cluster_id-maintenance-window path: /api/v1/clusters/{cluster_id}/maintenance-window operations: - name: getmaintenancewindow method: GET description: Get maintenance window outputRawFormat: json outputParameters: - name: result type: object value: $. - name: setmaintenancewindow method: PUT description: Set maintenance window outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: deletemaintenancewindow method: DELETE description: Delete maintenance window outputRawFormat: json outputParameters: - name: result type: object value: $. authentication: type: bearer token: '{{env.COCKROACH_LABS_API_KEY}}' exposes: - type: rest namespace: cloud-maintenancewindows-rest port: 8080 description: REST adapter for CockroachDB Cloud API — MaintenanceWindows. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/api/v1/clusters/{cluster-id}/maintenance-window name: api-v1-clusters-cluster-id-maintenance-window description: REST surface for api-v1-clusters-cluster_id-maintenance-window. operations: - method: GET name: getmaintenancewindow description: Get maintenance window call: cloud-maintenancewindows.getmaintenancewindow outputParameters: - type: object mapping: $. - method: PUT name: setmaintenancewindow description: Set maintenance window call: cloud-maintenancewindows.setmaintenancewindow with: body: rest.body outputParameters: - type: object mapping: $. - method: DELETE name: deletemaintenancewindow description: Delete maintenance window call: cloud-maintenancewindows.deletemaintenancewindow outputParameters: - type: object mapping: $. - type: mcp namespace: cloud-maintenancewindows-mcp port: 9090 transport: http description: MCP adapter for CockroachDB Cloud API — MaintenanceWindows. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: get-maintenance-window description: Get maintenance window hints: readOnly: true destructive: false idempotent: true call: cloud-maintenancewindows.getmaintenancewindow outputParameters: - type: object mapping: $. - name: set-maintenance-window description: Set maintenance window hints: readOnly: false destructive: false idempotent: true call: cloud-maintenancewindows.setmaintenancewindow with: body: tools.body outputParameters: - type: object mapping: $. - name: delete-maintenance-window description: Delete maintenance window hints: readOnly: false destructive: true idempotent: true call: cloud-maintenancewindows.deletemaintenancewindow outputParameters: - type: object mapping: $.