Grafana · Capability

Grafana — Preferences

Grafana — Preferences. 8 operations. Lead operation: Grafana Get Org Preferences. Self-contained Naftiko capability covering one Grafana business surface.

Run with Naftiko GrafanaPreferences

What You Can Do

GET
Getorgpreferences — Grafana Get Org Preferences
/v1/org/preferences
PUT
Updateorgpreferences — Grafana Update Org Preferences
/v1/org/preferences
PATCH
Patchorgpreferences — Grafana Patch Org Preferences
/v1/org/preferences
GET
Getteampreferences — Grafana Get Team Preferences
/v1/teams/{team-id}/preferences
PUT
Updateteampreferences — Grafana Update Team Preferences
/v1/teams/{team-id}/preferences
GET
Getuserpreferences — Grafana Get User Preferences
/v1/user/preferences
PUT
Updateuserpreferences — Grafana Update User Preferences
/v1/user/preferences
PATCH
Patchuserpreferences — Grafana Patch User Preferences
/v1/user/preferences

MCP Tools

grafana-get-org-preferences

Grafana Get Org Preferences

read-only idempotent
grafana-update-org-preferences

Grafana Update Org Preferences

idempotent
grafana-patch-org-preferences

Grafana Patch Org Preferences

idempotent
grafana-get-team-preferences

Grafana Get Team Preferences

read-only idempotent
grafana-update-team-preferences

Grafana Update Team Preferences

idempotent
grafana-get-user-preferences

Grafana Get User Preferences

read-only idempotent
grafana-update-user-preferences

Grafana Update User Preferences

idempotent
grafana-patch-user-preferences

Grafana Patch User Preferences

idempotent

Capability Spec

grafana-preferences.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Grafana — Preferences
  description: 'Grafana — Preferences. 8 operations. Lead operation: Grafana Get Org Preferences. Self-contained Naftiko capability
    covering one Grafana business surface.'
  tags:
  - Grafana
  - Preferences
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    GRAFANA_API_KEY: GRAFANA_API_KEY
capability:
  consumes:
  - type: http
    namespace: grafana-preferences
    baseUri: http://{defaultHost}
    description: Grafana — Preferences business capability. Self-contained, no shared references.
    resources:
    - name: org-preferences
      path: /org/preferences
      operations:
      - name: getorgpreferences
        method: GET
        description: Grafana Get Org Preferences
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: updateorgpreferences
        method: PUT
        description: Grafana Update Org Preferences
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
      - name: patchorgpreferences
        method: PATCH
        description: Grafana Patch Org Preferences
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: teams-team_id-preferences
      path: /teams/{team_id}/preferences
      operations:
      - name: getteampreferences
        method: GET
        description: Grafana Get Team Preferences
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: team_id
          in: path
          type: string
          required: true
      - name: updateteampreferences
        method: PUT
        description: Grafana Update Team Preferences
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: team_id
          in: path
          type: string
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: user-preferences
      path: /user/preferences
      operations:
      - name: getuserpreferences
        method: GET
        description: Grafana Get User Preferences
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: updateuserpreferences
        method: PUT
        description: Grafana Update User Preferences
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
      - name: patchuserpreferences
        method: PATCH
        description: Grafana Patch User Preferences
        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-preferences-rest
    port: 8080
    description: REST adapter for Grafana — Preferences. One Spectral-compliant resource per consumed operation, prefixed
      with /v1.
    resources:
    - path: /v1/org/preferences
      name: org-preferences
      description: REST surface for org-preferences.
      operations:
      - method: GET
        name: getorgpreferences
        description: Grafana Get Org Preferences
        call: grafana-preferences.getorgpreferences
        outputParameters:
        - type: object
          mapping: $.
      - method: PUT
        name: updateorgpreferences
        description: Grafana Update Org Preferences
        call: grafana-preferences.updateorgpreferences
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: PATCH
        name: patchorgpreferences
        description: Grafana Patch Org Preferences
        call: grafana-preferences.patchorgpreferences
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/teams/{team-id}/preferences
      name: teams-team-id-preferences
      description: REST surface for teams-team_id-preferences.
      operations:
      - method: GET
        name: getteampreferences
        description: Grafana Get Team Preferences
        call: grafana-preferences.getteampreferences
        with:
          team_id: rest.team_id
        outputParameters:
        - type: object
          mapping: $.
      - method: PUT
        name: updateteampreferences
        description: Grafana Update Team Preferences
        call: grafana-preferences.updateteampreferences
        with:
          team_id: rest.team_id
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/user/preferences
      name: user-preferences
      description: REST surface for user-preferences.
      operations:
      - method: GET
        name: getuserpreferences
        description: Grafana Get User Preferences
        call: grafana-preferences.getuserpreferences
        outputParameters:
        - type: object
          mapping: $.
      - method: PUT
        name: updateuserpreferences
        description: Grafana Update User Preferences
        call: grafana-preferences.updateuserpreferences
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: PATCH
        name: patchuserpreferences
        description: Grafana Patch User Preferences
        call: grafana-preferences.patchuserpreferences
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: grafana-preferences-mcp
    port: 9090
    transport: http
    description: MCP adapter for Grafana — Preferences. One tool per consumed operation, routed inline through this capability's
      consumes block.
    tools:
    - name: grafana-get-org-preferences
      description: Grafana Get Org Preferences
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: grafana-preferences.getorgpreferences
      outputParameters:
      - type: object
        mapping: $.
    - name: grafana-update-org-preferences
      description: Grafana Update Org Preferences
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: grafana-preferences.updateorgpreferences
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: grafana-patch-org-preferences
      description: Grafana Patch Org Preferences
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: grafana-preferences.patchorgpreferences
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: grafana-get-team-preferences
      description: Grafana Get Team Preferences
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: grafana-preferences.getteampreferences
      with:
        team_id: tools.team_id
      outputParameters:
      - type: object
        mapping: $.
    - name: grafana-update-team-preferences
      description: Grafana Update Team Preferences
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: grafana-preferences.updateteampreferences
      with:
        team_id: tools.team_id
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: grafana-get-user-preferences
      description: Grafana Get User Preferences
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: grafana-preferences.getuserpreferences
      outputParameters:
      - type: object
        mapping: $.
    - name: grafana-update-user-preferences
      description: Grafana Update User Preferences
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: grafana-preferences.updateuserpreferences
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: grafana-patch-user-preferences
      description: Grafana Patch User Preferences
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: grafana-preferences.patchuserpreferences
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.