Grafana · Capability

Grafana — Checks

Grafana — Checks. 2 operations. Lead operation: Grafana Check Datasource Health With UID. Self-contained Naftiko capability covering one Grafana business surface.

Run with Naftiko GrafanaChecks

What You Can Do

GET
Checkdatasourcehealthwithuid — Grafana Check Datasource Health With UID
/v1/datasources/uid/{uid}/health
GET
Checkdatasourcehealthbyid — Grafana Check Datasource Health By ID
/v1/datasources/{id}/health

MCP Tools

grafana-check-datasource-health-uid

Grafana Check Datasource Health With UID

read-only idempotent
grafana-check-datasource-health-id

Grafana Check Datasource Health By ID

read-only idempotent

Capability Spec

grafana-checks.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Grafana — Checks
  description: 'Grafana — Checks. 2 operations. Lead operation: Grafana Check Datasource Health With UID. Self-contained Naftiko
    capability covering one Grafana business surface.'
  tags:
  - Grafana
  - Checks
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    GRAFANA_API_KEY: GRAFANA_API_KEY
capability:
  consumes:
  - type: http
    namespace: grafana-checks
    baseUri: http://{defaultHost}
    description: Grafana — Checks 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
    authentication:
      type: apikey
      key: Authorization
      value: '{{env.GRAFANA_API_KEY}}'
      placement: header
  exposes:
  - type: rest
    namespace: grafana-checks-rest
    port: 8080
    description: REST adapter for Grafana — Checks. 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-checks.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-checks.checkdatasourcehealthbyid
        with:
          id: rest.id
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: grafana-checks-mcp
    port: 9090
    transport: http
    description: MCP adapter for Grafana — Checks. 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-checks.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-checks.checkdatasourcehealthbyid
      with:
        id: tools.id
      outputParameters:
      - type: object
        mapping: $.