naftiko: 1.0.0-alpha2 info: label: Grafana — Health description: 'Grafana — Health. 3 operations. Lead operation: Grafana Check Datasource Health With UID. Self-contained Naftiko capability covering one Grafana business surface.' tags: - Grafana - Health created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: GRAFANA_API_KEY: GRAFANA_API_KEY capability: consumes: - type: http namespace: grafana-health baseUri: http://{defaultHost} description: Grafana — Health business capability. Self-contained, no shared references. resources: - 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-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: health path: /health operations: - name: gethealth method: GET description: Grafana Get Health outputRawFormat: json outputParameters: - name: result type: object value: $. authentication: type: apikey key: Authorization value: '{{env.GRAFANA_API_KEY}}' placement: header exposes: - type: rest namespace: grafana-health-rest port: 8080 description: REST adapter for Grafana — Health. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - 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-health.checkdatasourcehealthwithuid with: 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-health.checkdatasourcehealthbyid with: id: rest.id outputParameters: - type: object mapping: $. - path: /v1/health name: health description: REST surface for health. operations: - method: GET name: gethealth description: Grafana Get Health call: grafana-health.gethealth outputParameters: - type: object mapping: $. - type: mcp namespace: grafana-health-mcp port: 9090 transport: http description: MCP adapter for Grafana — Health. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: grafana-check-datasource-health-uid description: Grafana Check Datasource Health With UID hints: readOnly: true destructive: false idempotent: true call: grafana-health.checkdatasourcehealthwithuid with: 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-health.checkdatasourcehealthbyid with: id: tools.id outputParameters: - type: object mapping: $. - name: grafana-get-health description: Grafana Get Health hints: readOnly: true destructive: false idempotent: true call: grafana-health.gethealth outputParameters: - type: object mapping: $.