Grafana · Capability

Grafana — Licenses

Grafana — Licenses. 5 operations. Lead operation: Grafana Refresh License Stats. Self-contained Naftiko capability covering one Grafana business surface.

Run with Naftiko GrafanaLicenses

What You Can Do

GET
Refreshlicensestats — Grafana Refresh License Stats
/v1/licensing/refresh-stats
GET
Getlicensetoken — Grafana Get License Token
/v1/licensing/token
POST
Postlicensetoken — Grafana Post License Token
/v1/licensing/token
DELETE
Deletelicensetoken — Grafana Delete License Token
/v1/licensing/token
POST
Postrenewlicensetoken — Grafana Post Renew License Token
/v1/licensing/token/renew

MCP Tools

grafana-refresh-license-stats

Grafana Refresh License Stats

read-only idempotent
grafana-get-license-token

Grafana Get License Token

read-only idempotent
grafana-post-license-token

Grafana Post License Token

grafana-delete-license-token

Grafana Delete License Token

idempotent
grafana-post-renew-license-token

Grafana Post Renew License Token

Capability Spec

grafana-licenses.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Grafana — Licenses
  description: 'Grafana — Licenses. 5 operations. Lead operation: Grafana Refresh License Stats. Self-contained Naftiko capability
    covering one Grafana business surface.'
  tags:
  - Grafana
  - Licenses
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    GRAFANA_API_KEY: GRAFANA_API_KEY
capability:
  consumes:
  - type: http
    namespace: grafana-licenses
    baseUri: http://{defaultHost}
    description: Grafana — Licenses business capability. Self-contained, no shared references.
    resources:
    - name: licensing-refresh-stats
      path: /licensing/refresh-stats
      operations:
      - name: refreshlicensestats
        method: GET
        description: Grafana Refresh License Stats
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: licensing-token
      path: /licensing/token
      operations:
      - name: getlicensetoken
        method: GET
        description: Grafana Get License Token
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: postlicensetoken
        method: POST
        description: Grafana Post License Token
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
      - name: deletelicensetoken
        method: DELETE
        description: Grafana Delete License Token
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: licensing-token-renew
      path: /licensing/token/renew
      operations:
      - name: postrenewlicensetoken
        method: POST
        description: Grafana Post Renew License Token
        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-licenses-rest
    port: 8080
    description: REST adapter for Grafana — Licenses. One Spectral-compliant resource per consumed operation, prefixed with
      /v1.
    resources:
    - path: /v1/licensing/refresh-stats
      name: licensing-refresh-stats
      description: REST surface for licensing-refresh-stats.
      operations:
      - method: GET
        name: refreshlicensestats
        description: Grafana Refresh License Stats
        call: grafana-licenses.refreshlicensestats
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/licensing/token
      name: licensing-token
      description: REST surface for licensing-token.
      operations:
      - method: GET
        name: getlicensetoken
        description: Grafana Get License Token
        call: grafana-licenses.getlicensetoken
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: postlicensetoken
        description: Grafana Post License Token
        call: grafana-licenses.postlicensetoken
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: deletelicensetoken
        description: Grafana Delete License Token
        call: grafana-licenses.deletelicensetoken
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/licensing/token/renew
      name: licensing-token-renew
      description: REST surface for licensing-token-renew.
      operations:
      - method: POST
        name: postrenewlicensetoken
        description: Grafana Post Renew License Token
        call: grafana-licenses.postrenewlicensetoken
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: grafana-licenses-mcp
    port: 9090
    transport: http
    description: MCP adapter for Grafana — Licenses. One tool per consumed operation, routed inline through this capability's
      consumes block.
    tools:
    - name: grafana-refresh-license-stats
      description: Grafana Refresh License Stats
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: grafana-licenses.refreshlicensestats
      outputParameters:
      - type: object
        mapping: $.
    - name: grafana-get-license-token
      description: Grafana Get License Token
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: grafana-licenses.getlicensetoken
      outputParameters:
      - type: object
        mapping: $.
    - name: grafana-post-license-token
      description: Grafana Post License Token
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: grafana-licenses.postlicensetoken
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: grafana-delete-license-token
      description: Grafana Delete License Token
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: grafana-licenses.deletelicensetoken
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: grafana-post-renew-license-token
      description: Grafana Post Renew License Token
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: grafana-licenses.postrenewlicensetoken
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.