Grafana · Capability

Grafana — Remove

Grafana — Remove. 7 operations. Lead operation: Grafana Remove Team Role. Self-contained Naftiko capability covering one Grafana business surface.

Run with Naftiko GrafanaRemove

What You Can Do

DELETE
Removeteamrole — Grafana Remove Team Role
/v1/access-control/teams/{teamid}/roles/{roleuid}
DELETE
Removeuserrole — Grafana Remove User Role
/v1/access-control/users/{userid}/roles/{roleuid}
DELETE
Removeorguserforcurrentorg — Grafana Remove Org User For Current Org
/v1/org/users/{user-id}
DELETE
Removeorguser — Grafana Remove Org User
/v1/orgs/{org-id}/users/{user-id}
DELETE
Removeteamgroupapiquery — Grafana Remove Team Group Api Query
/v1/teams/{teamid}/groups
DELETE
Removeteammember — Grafana Remove Team Member
/v1/teams/{team-id}/members/{user-id}
DELETE
Removeprovidersettings — Grafana Remove Provider Settings
/v1/v1/sso-settings/{key}

MCP Tools

grafana-remove-team-role

Grafana Remove Team Role

idempotent
grafana-remove-user-role

Grafana Remove User Role

idempotent
grafana-remove-org-user-current

Grafana Remove Org User For Current Org

idempotent
grafana-remove-org-user

Grafana Remove Org User

idempotent
grafana-remove-team-group-api

Grafana Remove Team Group Api Query

idempotent
grafana-remove-team-member

Grafana Remove Team Member

idempotent
grafana-remove-provider-settings

Grafana Remove Provider Settings

idempotent

Capability Spec

grafana-remove.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Grafana — Remove
  description: 'Grafana — Remove. 7 operations. Lead operation: Grafana Remove Team Role. Self-contained Naftiko capability
    covering one Grafana business surface.'
  tags:
  - Grafana
  - Remove
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    GRAFANA_API_KEY: GRAFANA_API_KEY
capability:
  consumes:
  - type: http
    namespace: grafana-remove
    baseUri: http://{defaultHost}
    description: Grafana — Remove business capability. Self-contained, no shared references.
    resources:
    - name: access-control-teams-teamId-roles-roleUID
      path: /access-control/teams/{teamId}/roles/{roleUID}
      operations:
      - name: removeteamrole
        method: DELETE
        description: Grafana Remove Team Role
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: roleUID
          in: path
          type: string
          required: true
        - name: teamId
          in: path
          type: integer
          required: true
    - name: access-control-users-userId-roles-roleUID
      path: /access-control/users/{userId}/roles/{roleUID}
      operations:
      - name: removeuserrole
        method: DELETE
        description: Grafana Remove User Role
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: global
          in: query
          type: boolean
          description: A flag indicating if the assignment is global or not. If set to false, the default org ID of the authenticated
            user will be used from the request to remove assi
        - name: roleUID
          in: path
          type: string
          required: true
        - name: userId
          in: path
          type: integer
          required: true
    - name: org-users-user_id
      path: /org/users/{user_id}
      operations:
      - name: removeorguserforcurrentorg
        method: DELETE
        description: Grafana Remove Org User For Current Org
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: user_id
          in: path
          type: integer
          required: true
    - name: orgs-org_id-users-user_id
      path: /orgs/{org_id}/users/{user_id}
      operations:
      - name: removeorguser
        method: DELETE
        description: Grafana Remove Org User
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: org_id
          in: path
          type: integer
          required: true
        - name: user_id
          in: path
          type: integer
          required: true
    - name: teams-teamId-groups
      path: /teams/{teamId}/groups
      operations:
      - name: removeteamgroupapiquery
        method: DELETE
        description: Grafana Remove Team Group Api Query
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: groupId
          in: query
          type: string
        - name: teamId
          in: path
          type: string
          required: true
    - name: teams-team_id-members-user_id
      path: /teams/{team_id}/members/{user_id}
      operations:
      - name: removeteammember
        method: DELETE
        description: Grafana Remove Team Member
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: team_id
          in: path
          type: string
          required: true
        - name: user_id
          in: path
          type: integer
          required: true
    - name: v1-sso-settings-key
      path: /v1/sso-settings/{key}
      operations:
      - name: removeprovidersettings
        method: DELETE
        description: Grafana Remove Provider Settings
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: key
          in: path
          type: string
          required: true
    authentication:
      type: apikey
      key: Authorization
      value: '{{env.GRAFANA_API_KEY}}'
      placement: header
  exposes:
  - type: rest
    namespace: grafana-remove-rest
    port: 8080
    description: REST adapter for Grafana — Remove. One Spectral-compliant resource per consumed operation, prefixed with
      /v1.
    resources:
    - path: /v1/access-control/teams/{teamid}/roles/{roleuid}
      name: access-control-teams-teamid-roles-roleuid
      description: REST surface for access-control-teams-teamId-roles-roleUID.
      operations:
      - method: DELETE
        name: removeteamrole
        description: Grafana Remove Team Role
        call: grafana-remove.removeteamrole
        with:
          roleUID: rest.roleUID
          teamId: rest.teamId
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/access-control/users/{userid}/roles/{roleuid}
      name: access-control-users-userid-roles-roleuid
      description: REST surface for access-control-users-userId-roles-roleUID.
      operations:
      - method: DELETE
        name: removeuserrole
        description: Grafana Remove User Role
        call: grafana-remove.removeuserrole
        with:
          global: rest.global
          roleUID: rest.roleUID
          userId: rest.userId
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/org/users/{user-id}
      name: org-users-user-id
      description: REST surface for org-users-user_id.
      operations:
      - method: DELETE
        name: removeorguserforcurrentorg
        description: Grafana Remove Org User For Current Org
        call: grafana-remove.removeorguserforcurrentorg
        with:
          user_id: rest.user_id
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/orgs/{org-id}/users/{user-id}
      name: orgs-org-id-users-user-id
      description: REST surface for orgs-org_id-users-user_id.
      operations:
      - method: DELETE
        name: removeorguser
        description: Grafana Remove Org User
        call: grafana-remove.removeorguser
        with:
          org_id: rest.org_id
          user_id: rest.user_id
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/teams/{teamid}/groups
      name: teams-teamid-groups
      description: REST surface for teams-teamId-groups.
      operations:
      - method: DELETE
        name: removeteamgroupapiquery
        description: Grafana Remove Team Group Api Query
        call: grafana-remove.removeteamgroupapiquery
        with:
          groupId: rest.groupId
          teamId: rest.teamId
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/teams/{team-id}/members/{user-id}
      name: teams-team-id-members-user-id
      description: REST surface for teams-team_id-members-user_id.
      operations:
      - method: DELETE
        name: removeteammember
        description: Grafana Remove Team Member
        call: grafana-remove.removeteammember
        with:
          team_id: rest.team_id
          user_id: rest.user_id
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/v1/sso-settings/{key}
      name: v1-sso-settings-key
      description: REST surface for v1-sso-settings-key.
      operations:
      - method: DELETE
        name: removeprovidersettings
        description: Grafana Remove Provider Settings
        call: grafana-remove.removeprovidersettings
        with:
          key: rest.key
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: grafana-remove-mcp
    port: 9090
    transport: http
    description: MCP adapter for Grafana — Remove. One tool per consumed operation, routed inline through this capability's
      consumes block.
    tools:
    - name: grafana-remove-team-role
      description: Grafana Remove Team Role
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: grafana-remove.removeteamrole
      with:
        roleUID: tools.roleUID
        teamId: tools.teamId
      outputParameters:
      - type: object
        mapping: $.
    - name: grafana-remove-user-role
      description: Grafana Remove User Role
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: grafana-remove.removeuserrole
      with:
        global: tools.global
        roleUID: tools.roleUID
        userId: tools.userId
      outputParameters:
      - type: object
        mapping: $.
    - name: grafana-remove-org-user-current
      description: Grafana Remove Org User For Current Org
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: grafana-remove.removeorguserforcurrentorg
      with:
        user_id: tools.user_id
      outputParameters:
      - type: object
        mapping: $.
    - name: grafana-remove-org-user
      description: Grafana Remove Org User
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: grafana-remove.removeorguser
      with:
        org_id: tools.org_id
        user_id: tools.user_id
      outputParameters:
      - type: object
        mapping: $.
    - name: grafana-remove-team-group-api
      description: Grafana Remove Team Group Api Query
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: grafana-remove.removeteamgroupapiquery
      with:
        groupId: tools.groupId
        teamId: tools.teamId
      outputParameters:
      - type: object
        mapping: $.
    - name: grafana-remove-team-member
      description: Grafana Remove Team Member
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: grafana-remove.removeteammember
      with:
        team_id: tools.team_id
        user_id: tools.user_id
      outputParameters:
      - type: object
        mapping: $.
    - name: grafana-remove-provider-settings
      description: Grafana Remove Provider Settings
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: grafana-remove.removeprovidersettings
      with:
        key: tools.key
      outputParameters:
      - type: object
        mapping: $.