naftiko: 1.0.0-alpha2 info: label: Grafana — Data Sources description: 'Grafana — Data Sources. 10 operations. Lead operation: Grafana Datasource Proxy GET By UID Calls. Self-contained Naftiko capability covering one Grafana business surface.' tags: - Grafana - Data Sources created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: GRAFANA_API_KEY: GRAFANA_API_KEY capability: consumes: - type: http namespace: grafana-data-sources-2 baseUri: http://{defaultHost} description: Grafana — Data Sources business capability. Self-contained, no shared references. resources: - name: datasources-proxy-uid-uid-datasource_proxy_route path: /datasources/proxy/uid/{uid}/{datasource_proxy_route} operations: - name: datasourceproxygetbyuidcalls method: GET description: Grafana Datasource Proxy GET By UID Calls outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: datasource_proxy_route in: path type: string required: true - name: uid in: path type: string required: true - name: datasourceproxypostbyuidcalls method: POST description: Grafana Datasource Proxy POST By UID Calls outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: datasource_proxy_route in: path type: string required: true - name: uid in: path type: string required: true - name: body in: body type: object description: Request body (JSON). required: true - name: datasourceproxydeletebyuidcalls method: DELETE description: Grafana Datasource Proxy DELETE By UID Calls outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: uid in: path type: string required: true - name: datasource_proxy_route in: path type: string required: true - name: datasources-proxy-id-datasource_proxy_route path: /datasources/proxy/{id}/{datasource_proxy_route} operations: - name: datasourceproxygetcalls method: GET description: Grafana Datasource Proxy GET calls outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: datasource_proxy_route in: path type: string required: true - name: id in: path type: string required: true - name: datasourceproxypostcalls method: POST description: Grafana Datasource Proxy POST Calls outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: datasource_proxy_route in: path type: string required: true - name: id in: path type: string required: true - name: body in: body type: object description: Request body (JSON). required: true - name: datasourceproxydeletecalls method: DELETE description: Grafana Datasource Proxy DELET Ecalls outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: id in: path type: string required: true - name: datasource_proxy_route in: path type: string required: true - name: datasources-uid-uid-health path: /datasources/uid/{uid}/health operations: - name: checkdatasourcehealthwithuid method: GET description: Grafana Check Datasource Health With UID outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: uid in: path type: string required: true - name: datasources-uid-uid-resources-datasource_proxy_route path: /datasources/uid/{uid}/resources/{datasource_proxy_route} operations: - name: calldatasourceresourcewithuid method: GET description: Grafana Call Datasource Resource With UID outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: datasource_proxy_route in: path type: string required: true - name: uid in: path type: string required: true - name: datasources-id-health path: /datasources/{id}/health operations: - name: checkdatasourcehealthbyid method: GET description: Grafana Check Datasource Health By ID outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: id in: path type: string required: true - name: datasources-id-resources-datasource_proxy_route path: /datasources/{id}/resources/{datasource_proxy_route} operations: - name: calldatasourceresourcebyid method: GET description: Grafana Call Datasource Resource By ID outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: datasource_proxy_route in: path type: string required: true - name: id in: path type: string required: true authentication: type: apikey key: Authorization value: '{{env.GRAFANA_API_KEY}}' placement: header exposes: - type: rest namespace: grafana-data-sources-2-rest port: 8080 description: REST adapter for Grafana — Data Sources. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/datasources/proxy/uid/{uid}/{datasource-proxy-route} name: datasources-proxy-uid-uid-datasource-proxy-route description: REST surface for datasources-proxy-uid-uid-datasource_proxy_route. operations: - method: GET name: datasourceproxygetbyuidcalls description: Grafana Datasource Proxy GET By UID Calls call: grafana-data-sources-2.datasourceproxygetbyuidcalls with: datasource_proxy_route: rest.datasource_proxy_route uid: rest.uid outputParameters: - type: object mapping: $. - method: POST name: datasourceproxypostbyuidcalls description: Grafana Datasource Proxy POST By UID Calls call: grafana-data-sources-2.datasourceproxypostbyuidcalls with: datasource_proxy_route: rest.datasource_proxy_route uid: rest.uid body: rest.body outputParameters: - type: object mapping: $. - method: DELETE name: datasourceproxydeletebyuidcalls description: Grafana Datasource Proxy DELETE By UID Calls call: grafana-data-sources-2.datasourceproxydeletebyuidcalls with: uid: rest.uid datasource_proxy_route: rest.datasource_proxy_route outputParameters: - type: object mapping: $. - path: /v1/datasources/proxy/{id}/{datasource-proxy-route} name: datasources-proxy-id-datasource-proxy-route description: REST surface for datasources-proxy-id-datasource_proxy_route. operations: - method: GET name: datasourceproxygetcalls description: Grafana Datasource Proxy GET calls call: grafana-data-sources-2.datasourceproxygetcalls with: datasource_proxy_route: rest.datasource_proxy_route id: rest.id outputParameters: - type: object mapping: $. - method: POST name: datasourceproxypostcalls description: Grafana Datasource Proxy POST Calls call: grafana-data-sources-2.datasourceproxypostcalls with: datasource_proxy_route: rest.datasource_proxy_route id: rest.id body: rest.body outputParameters: - type: object mapping: $. - method: DELETE name: datasourceproxydeletecalls description: Grafana Datasource Proxy DELET Ecalls call: grafana-data-sources-2.datasourceproxydeletecalls with: id: rest.id datasource_proxy_route: rest.datasource_proxy_route outputParameters: - type: object mapping: $. - path: /v1/datasources/uid/{uid}/health name: datasources-uid-uid-health description: REST surface for datasources-uid-uid-health. operations: - method: GET name: checkdatasourcehealthwithuid description: Grafana Check Datasource Health With UID call: grafana-data-sources-2.checkdatasourcehealthwithuid with: uid: rest.uid outputParameters: - type: object mapping: $. - path: /v1/datasources/uid/{uid}/resources/{datasource-proxy-route} name: datasources-uid-uid-resources-datasource-proxy-route description: REST surface for datasources-uid-uid-resources-datasource_proxy_route. operations: - method: GET name: calldatasourceresourcewithuid description: Grafana Call Datasource Resource With UID call: grafana-data-sources-2.calldatasourceresourcewithuid with: datasource_proxy_route: rest.datasource_proxy_route uid: rest.uid outputParameters: - type: object mapping: $. - path: /v1/datasources/{id}/health name: datasources-id-health description: REST surface for datasources-id-health. operations: - method: GET name: checkdatasourcehealthbyid description: Grafana Check Datasource Health By ID call: grafana-data-sources-2.checkdatasourcehealthbyid with: id: rest.id outputParameters: - type: object mapping: $. - path: /v1/datasources/{id}/resources/{datasource-proxy-route} name: datasources-id-resources-datasource-proxy-route description: REST surface for datasources-id-resources-datasource_proxy_route. operations: - method: GET name: calldatasourceresourcebyid description: Grafana Call Datasource Resource By ID call: grafana-data-sources-2.calldatasourceresourcebyid with: datasource_proxy_route: rest.datasource_proxy_route id: rest.id outputParameters: - type: object mapping: $. - type: mcp namespace: grafana-data-sources-2-mcp port: 9090 transport: http description: MCP adapter for Grafana — Data Sources. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: grafana-datasource-proxy-get-uid description: Grafana Datasource Proxy GET By UID Calls hints: readOnly: true destructive: false idempotent: true call: grafana-data-sources-2.datasourceproxygetbyuidcalls with: datasource_proxy_route: tools.datasource_proxy_route uid: tools.uid outputParameters: - type: object mapping: $. - name: grafana-datasource-proxy-post-uid description: Grafana Datasource Proxy POST By UID Calls hints: readOnly: false destructive: false idempotent: false call: grafana-data-sources-2.datasourceproxypostbyuidcalls with: datasource_proxy_route: tools.datasource_proxy_route uid: tools.uid body: tools.body outputParameters: - type: object mapping: $. - name: grafana-datasource-proxy-delete-uid description: Grafana Datasource Proxy DELETE By UID Calls hints: readOnly: false destructive: true idempotent: true call: grafana-data-sources-2.datasourceproxydeletebyuidcalls with: uid: tools.uid datasource_proxy_route: tools.datasource_proxy_route outputParameters: - type: object mapping: $. - name: grafana-datasource-proxy-get-calls description: Grafana Datasource Proxy GET calls hints: readOnly: true destructive: false idempotent: true call: grafana-data-sources-2.datasourceproxygetcalls with: datasource_proxy_route: tools.datasource_proxy_route id: tools.id outputParameters: - type: object mapping: $. - name: grafana-datasource-proxy-post-calls description: Grafana Datasource Proxy POST Calls hints: readOnly: false destructive: false idempotent: false call: grafana-data-sources-2.datasourceproxypostcalls with: datasource_proxy_route: tools.datasource_proxy_route id: tools.id body: tools.body outputParameters: - type: object mapping: $. - name: grafana-datasource-proxy-delet-ecalls description: Grafana Datasource Proxy DELET Ecalls hints: readOnly: false destructive: true idempotent: true call: grafana-data-sources-2.datasourceproxydeletecalls with: id: tools.id datasource_proxy_route: tools.datasource_proxy_route outputParameters: - type: object mapping: $. - name: grafana-check-datasource-health-uid description: Grafana Check Datasource Health With UID hints: readOnly: true destructive: false idempotent: true call: grafana-data-sources-2.checkdatasourcehealthwithuid with: uid: tools.uid outputParameters: - type: object mapping: $. - name: grafana-call-datasource-resource-uid description: Grafana Call Datasource Resource With UID hints: readOnly: true destructive: false idempotent: true call: grafana-data-sources-2.calldatasourceresourcewithuid with: datasource_proxy_route: tools.datasource_proxy_route uid: tools.uid outputParameters: - type: object mapping: $. - name: grafana-check-datasource-health-id description: Grafana Check Datasource Health By ID hints: readOnly: true destructive: false idempotent: true call: grafana-data-sources-2.checkdatasourcehealthbyid with: id: tools.id outputParameters: - type: object mapping: $. - name: grafana-call-datasource-resource-id description: Grafana Call Datasource Resource By ID hints: readOnly: true destructive: false idempotent: true call: grafana-data-sources-2.calldatasourceresourcebyid with: datasource_proxy_route: tools.datasource_proxy_route id: tools.id outputParameters: - type: object mapping: $.