Grafana · Capability

Grafana — Correlations

Grafana — Correlations. 2 operations. Lead operation: Grafana Get Correlations. Self-contained Naftiko capability covering one Grafana business surface.

Run with Naftiko GrafanaCorrelations

What You Can Do

GET
Getcorrelations — Grafana Get Correlations
/v1/datasources/correlations
GET
Getcorrelationsbysourceuid — Grafana Get Correlations By Source UID
/v1/datasources/uid/{sourceuid}/correlations

MCP Tools

grafana-get-correlations

Grafana Get Correlations

read-only idempotent
grafana-get-correlations-source-uid

Grafana Get Correlations By Source UID

read-only idempotent

Capability Spec

grafana-correlations.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Grafana — Correlations
  description: 'Grafana — Correlations. 2 operations. Lead operation: Grafana Get Correlations. Self-contained Naftiko capability
    covering one Grafana business surface.'
  tags:
  - Grafana
  - Correlations
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    GRAFANA_API_KEY: GRAFANA_API_KEY
capability:
  consumes:
  - type: http
    namespace: grafana-correlations
    baseUri: http://{defaultHost}
    description: Grafana — Correlations business capability. Self-contained, no shared references.
    resources:
    - name: datasources-correlations
      path: /datasources/correlations
      operations:
      - name: getcorrelations
        method: GET
        description: Grafana Get Correlations
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: limit
          in: query
          type: integer
          description: Limit the maximum number of correlations to return per page
        - name: page
          in: query
          type: integer
          description: Page index for starting fetching correlations
        - name: sourceUID
          in: query
          type: array
          description: Source datasource UID filter to be applied to correlations
    - name: datasources-uid-sourceUID-correlations
      path: /datasources/uid/{sourceUID}/correlations
      operations:
      - name: getcorrelationsbysourceuid
        method: GET
        description: Grafana Get Correlations By Source UID
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: sourceUID
          in: path
          type: string
          required: true
    authentication:
      type: apikey
      key: Authorization
      value: '{{env.GRAFANA_API_KEY}}'
      placement: header
  exposes:
  - type: rest
    namespace: grafana-correlations-rest
    port: 8080
    description: REST adapter for Grafana — Correlations. One Spectral-compliant resource per consumed operation, prefixed
      with /v1.
    resources:
    - path: /v1/datasources/correlations
      name: datasources-correlations
      description: REST surface for datasources-correlations.
      operations:
      - method: GET
        name: getcorrelations
        description: Grafana Get Correlations
        call: grafana-correlations.getcorrelations
        with:
          limit: rest.limit
          page: rest.page
          sourceUID: rest.sourceUID
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/datasources/uid/{sourceuid}/correlations
      name: datasources-uid-sourceuid-correlations
      description: REST surface for datasources-uid-sourceUID-correlations.
      operations:
      - method: GET
        name: getcorrelationsbysourceuid
        description: Grafana Get Correlations By Source UID
        call: grafana-correlations.getcorrelationsbysourceuid
        with:
          sourceUID: rest.sourceUID
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: grafana-correlations-mcp
    port: 9090
    transport: http
    description: MCP adapter for Grafana — Correlations. One tool per consumed operation, routed inline through this capability's
      consumes block.
    tools:
    - name: grafana-get-correlations
      description: Grafana Get Correlations
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: grafana-correlations.getcorrelations
      with:
        limit: tools.limit
        page: tools.page
        sourceUID: tools.sourceUID
      outputParameters:
      - type: object
        mapping: $.
    - name: grafana-get-correlations-source-uid
      description: Grafana Get Correlations By Source UID
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: grafana-correlations.getcorrelationsbysourceuid
      with:
        sourceUID: tools.sourceUID
      outputParameters:
      - type: object
        mapping: $.