Grafana · Capability

Grafana — Revoke

Grafana — Revoke. 3 operations. Lead operation: Grafana Admin Revoke User Auth Token. Self-contained Naftiko capability covering one Grafana business surface.

Run with Naftiko GrafanaRevoke

What You Can Do

POST
Adminrevokeuserauthtoken — Grafana Admin Revoke User Auth Token
/v1/admin/users/{user-id}/revoke-auth-token
DELETE
Revokeinvite — Grafana Revoke Invite
/v1/org/invites/{invitation-code}/revoke
POST
Revokeuserauthtoken — Grafana Revoke User Auth Token
/v1/user/revoke-auth-token

MCP Tools

grafana-admin-revoke-user-auth

Grafana Admin Revoke User Auth Token

grafana-revoke-invite

Grafana Revoke Invite

idempotent
grafana-revoke-user-auth-token

Grafana Revoke User Auth Token

Capability Spec

grafana-revoke.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Grafana — Revoke
  description: 'Grafana — Revoke. 3 operations. Lead operation: Grafana Admin Revoke User Auth Token. Self-contained Naftiko
    capability covering one Grafana business surface.'
  tags:
  - Grafana
  - Revoke
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    GRAFANA_API_KEY: GRAFANA_API_KEY
capability:
  consumes:
  - type: http
    namespace: grafana-revoke
    baseUri: http://{defaultHost}
    description: Grafana — Revoke business capability. Self-contained, no shared references.
    resources:
    - name: admin-users-user_id-revoke-auth-token
      path: /admin/users/{user_id}/revoke-auth-token
      operations:
      - name: adminrevokeuserauthtoken
        method: POST
        description: Grafana Admin Revoke User Auth Token
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: user_id
          in: path
          type: integer
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: org-invites-invitation_code-revoke
      path: /org/invites/{invitation_code}/revoke
      operations:
      - name: revokeinvite
        method: DELETE
        description: Grafana Revoke Invite
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: invitation_code
          in: path
          type: string
          required: true
    - name: user-revoke-auth-token
      path: /user/revoke-auth-token
      operations:
      - name: revokeuserauthtoken
        method: POST
        description: Grafana Revoke User Auth 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-revoke-rest
    port: 8080
    description: REST adapter for Grafana — Revoke. One Spectral-compliant resource per consumed operation, prefixed with
      /v1.
    resources:
    - path: /v1/admin/users/{user-id}/revoke-auth-token
      name: admin-users-user-id-revoke-auth-token
      description: REST surface for admin-users-user_id-revoke-auth-token.
      operations:
      - method: POST
        name: adminrevokeuserauthtoken
        description: Grafana Admin Revoke User Auth Token
        call: grafana-revoke.adminrevokeuserauthtoken
        with:
          user_id: rest.user_id
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/org/invites/{invitation-code}/revoke
      name: org-invites-invitation-code-revoke
      description: REST surface for org-invites-invitation_code-revoke.
      operations:
      - method: DELETE
        name: revokeinvite
        description: Grafana Revoke Invite
        call: grafana-revoke.revokeinvite
        with:
          invitation_code: rest.invitation_code
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/user/revoke-auth-token
      name: user-revoke-auth-token
      description: REST surface for user-revoke-auth-token.
      operations:
      - method: POST
        name: revokeuserauthtoken
        description: Grafana Revoke User Auth Token
        call: grafana-revoke.revokeuserauthtoken
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: grafana-revoke-mcp
    port: 9090
    transport: http
    description: MCP adapter for Grafana — Revoke. One tool per consumed operation, routed inline through this capability's
      consumes block.
    tools:
    - name: grafana-admin-revoke-user-auth
      description: Grafana Admin Revoke User Auth Token
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: grafana-revoke.adminrevokeuserauthtoken
      with:
        user_id: tools.user_id
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: grafana-revoke-invite
      description: Grafana Revoke Invite
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: grafana-revoke.revokeinvite
      with:
        invitation_code: tools.invitation_code
      outputParameters:
      - type: object
        mapping: $.
    - name: grafana-revoke-user-auth-token
      description: Grafana Revoke User Auth Token
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: grafana-revoke.revokeuserauthtoken
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.