Grafana · Capability

Grafana — Enables

Grafana — Enables. 2 operations. Lead operation: Grafana Admin Enable User. Self-contained Naftiko capability covering one Grafana business surface.

Run with Naftiko GrafanaEnables

What You Can Do

POST
Adminenableuser — Grafana Admin Enable User
/v1/admin/users/{user-id}/enable
POST
Enabledatasourcecache — Grafana Enable Data Source Cache
/v1/datasources/{datasourceuid}/cache/enable

MCP Tools

grafana-admin-enable-user

Grafana Admin Enable User

grafana-enable-data-source-cache

Grafana Enable Data Source Cache

Capability Spec

grafana-enables.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Grafana — Enables
  description: 'Grafana — Enables. 2 operations. Lead operation: Grafana Admin Enable User. Self-contained Naftiko capability
    covering one Grafana business surface.'
  tags:
  - Grafana
  - Enables
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    GRAFANA_API_KEY: GRAFANA_API_KEY
capability:
  consumes:
  - type: http
    namespace: grafana-enables
    baseUri: http://{defaultHost}
    description: Grafana — Enables business capability. Self-contained, no shared references.
    resources:
    - name: admin-users-user_id-enable
      path: /admin/users/{user_id}/enable
      operations:
      - name: adminenableuser
        method: POST
        description: Grafana Admin Enable User
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: user_id
          in: path
          type: integer
          required: true
    - name: datasources-dataSourceUID-cache-enable
      path: /datasources/{dataSourceUID}/cache/enable
      operations:
      - name: enabledatasourcecache
        method: POST
        description: Grafana Enable Data Source Cache
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: dataSourceUID
          in: path
          type: string
          required: true
    authentication:
      type: apikey
      key: Authorization
      value: '{{env.GRAFANA_API_KEY}}'
      placement: header
  exposes:
  - type: rest
    namespace: grafana-enables-rest
    port: 8080
    description: REST adapter for Grafana — Enables. One Spectral-compliant resource per consumed operation, prefixed with
      /v1.
    resources:
    - path: /v1/admin/users/{user-id}/enable
      name: admin-users-user-id-enable
      description: REST surface for admin-users-user_id-enable.
      operations:
      - method: POST
        name: adminenableuser
        description: Grafana Admin Enable User
        call: grafana-enables.adminenableuser
        with:
          user_id: rest.user_id
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/datasources/{datasourceuid}/cache/enable
      name: datasources-datasourceuid-cache-enable
      description: REST surface for datasources-dataSourceUID-cache-enable.
      operations:
      - method: POST
        name: enabledatasourcecache
        description: Grafana Enable Data Source Cache
        call: grafana-enables.enabledatasourcecache
        with:
          dataSourceUID: rest.dataSourceUID
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: grafana-enables-mcp
    port: 9090
    transport: http
    description: MCP adapter for Grafana — Enables. One tool per consumed operation, routed inline through this capability's
      consumes block.
    tools:
    - name: grafana-admin-enable-user
      description: Grafana Admin Enable User
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: grafana-enables.adminenableuser
      with:
        user_id: tools.user_id
      outputParameters:
      - type: object
        mapping: $.
    - name: grafana-enable-data-source-cache
      description: Grafana Enable Data Source Cache
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: grafana-enables.enabledatasourcecache
      with:
        dataSourceUID: tools.dataSourceUID
      outputParameters:
      - type: object
        mapping: $.