naftiko: 1.0.0-alpha2 info: label: Cobalt API — Datastores description: 'Cobalt API — Datastores. 3 operations. Lead operation: Cobalt Get All Config Datastores. Self-contained Naftiko capability covering one Cobalt business surface.' tags: - Cobalt - Datastores created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: COBALT_API_KEY: COBALT_API_KEY capability: consumes: - type: http namespace: cobalt-datastores baseUri: https://api.gocobalt.io/api/v2 description: Cobalt API — Datastores business capability. Self-contained, no shared references. resources: - name: public-datastore path: /public/datastore operations: - name: listconfigdatastores method: GET description: Cobalt Get All Config Datastores outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: linked_account_id in: header type: string description: The linked account ID. required: true - name: public-datastore-datastore_id-records path: /public/datastore/{datastore_id}/records operations: - name: listdatastorerecords method: GET description: Cobalt List Records in Datastore outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: datastore_id in: path type: string description: The datastore ID. required: true - name: linked_account_id in: header type: string description: The linked account ID. required: true - name: public-datastore-datastore_id-search path: /public/datastore/{datastore_id}/search operations: - name: searchdatastorerecords method: POST description: Cobalt Search Datastore Records outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: datastore_id in: path type: string description: The datastore ID. required: true - name: linked_account_id in: header type: string description: The linked account ID. required: true - name: body in: body type: object description: Request body (JSON). required: true authentication: type: apikey key: x-api-key value: '{{env.COBALT_API_KEY}}' placement: header exposes: - type: rest namespace: cobalt-datastores-rest port: 8080 description: REST adapter for Cobalt API — Datastores. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/public/datastore name: public-datastore description: REST surface for public-datastore. operations: - method: GET name: listconfigdatastores description: Cobalt Get All Config Datastores call: cobalt-datastores.listconfigdatastores with: linked_account_id: rest.linked_account_id outputParameters: - type: object mapping: $. - path: /v1/public/datastore/{datastore-id}/records name: public-datastore-datastore-id-records description: REST surface for public-datastore-datastore_id-records. operations: - method: GET name: listdatastorerecords description: Cobalt List Records in Datastore call: cobalt-datastores.listdatastorerecords with: datastore_id: rest.datastore_id linked_account_id: rest.linked_account_id outputParameters: - type: object mapping: $. - path: /v1/public/datastore/{datastore-id}/search name: public-datastore-datastore-id-search description: REST surface for public-datastore-datastore_id-search. operations: - method: POST name: searchdatastorerecords description: Cobalt Search Datastore Records call: cobalt-datastores.searchdatastorerecords with: datastore_id: rest.datastore_id linked_account_id: rest.linked_account_id body: rest.body outputParameters: - type: object mapping: $. - type: mcp namespace: cobalt-datastores-mcp port: 9090 transport: http description: MCP adapter for Cobalt API — Datastores. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: cobalt-get-all-config-datastores description: Cobalt Get All Config Datastores hints: readOnly: true destructive: false idempotent: true call: cobalt-datastores.listconfigdatastores with: linked_account_id: tools.linked_account_id outputParameters: - type: object mapping: $. - name: cobalt-list-records-datastore description: Cobalt List Records in Datastore hints: readOnly: true destructive: false idempotent: true call: cobalt-datastores.listdatastorerecords with: datastore_id: tools.datastore_id linked_account_id: tools.linked_account_id outputParameters: - type: object mapping: $. - name: cobalt-search-datastore-records description: Cobalt Search Datastore Records hints: readOnly: true destructive: false idempotent: false call: cobalt-datastores.searchdatastorerecords with: datastore_id: tools.datastore_id linked_account_id: tools.linked_account_id body: tools.body outputParameters: - type: object mapping: $.