Grafana · Capability

Grafana — Import

Grafana — Import. 1 operations. Lead operation: Grafana Import Dashboard. Self-contained Naftiko capability covering one Grafana business surface.

Run with Naftiko GrafanaImport

What You Can Do

POST
Importdashboard — Grafana Import Dashboard
/v1/dashboards/import

MCP Tools

grafana-import-dashboard

Grafana Import Dashboard

Capability Spec

grafana-import.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Grafana — Import
  description: 'Grafana — Import. 1 operations. Lead operation: Grafana Import Dashboard. Self-contained Naftiko capability
    covering one Grafana business surface.'
  tags:
  - Grafana
  - Import
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    GRAFANA_API_KEY: GRAFANA_API_KEY
capability:
  consumes:
  - type: http
    namespace: grafana-import
    baseUri: http://{defaultHost}
    description: Grafana — Import business capability. Self-contained, no shared references.
    resources:
    - name: dashboards-import
      path: /dashboards/import
      operations:
      - name: importdashboard
        method: POST
        description: Grafana Import Dashboard
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    authentication:
      type: apikey
      key: Authorization
      value: '{{env.GRAFANA_API_KEY}}'
      placement: header
  exposes:
  - type: rest
    namespace: grafana-import-rest
    port: 8080
    description: REST adapter for Grafana — Import. One Spectral-compliant resource per consumed operation, prefixed with
      /v1.
    resources:
    - path: /v1/dashboards/import
      name: dashboards-import
      description: REST surface for dashboards-import.
      operations:
      - method: POST
        name: importdashboard
        description: Grafana Import Dashboard
        call: grafana-import.importdashboard
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: grafana-import-mcp
    port: 9090
    transport: http
    description: MCP adapter for Grafana — Import. One tool per consumed operation, routed inline through this capability's
      consumes block.
    tools:
    - name: grafana-import-dashboard
      description: Grafana Import Dashboard
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: grafana-import.importdashboard
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.