Grafana · Capability

Grafana — Quota

Grafana — Quota. 5 operations. Lead operation: Grafana Get User Quota. Self-contained Naftiko capability covering one Grafana business surface.

Run with Naftiko GrafanaQuota

What You Can Do

GET
Getuserquota — Grafana Get User Quota
/v1/admin/users/{user-id}/quotas
PUT
Updateuserquota — Grafana Update User Quota
/v1/admin/users/{user-id}/quotas/{quota-target}
GET
Getcurrentorgquota — Grafana Get Current Org Quota
/v1/org/quotas
GET
Getorgquota — Grafana Get Org Quota
/v1/orgs/{org-id}/quotas
PUT
Updateorgquota — Grafana Update Org Quota
/v1/orgs/{org-id}/quotas/{quota-target}

MCP Tools

grafana-get-user-quota

Grafana Get User Quota

read-only idempotent
grafana-update-user-quota

Grafana Update User Quota

idempotent
grafana-get-current-org-quota

Grafana Get Current Org Quota

read-only idempotent
grafana-get-org-quota

Grafana Get Org Quota

read-only idempotent
grafana-update-org-quota

Grafana Update Org Quota

idempotent

Capability Spec

grafana-quota.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Grafana — Quota
  description: 'Grafana — Quota. 5 operations. Lead operation: Grafana Get User Quota. Self-contained Naftiko capability covering
    one Grafana business surface.'
  tags:
  - Grafana
  - Quota
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    GRAFANA_API_KEY: GRAFANA_API_KEY
capability:
  consumes:
  - type: http
    namespace: grafana-quota
    baseUri: http://{defaultHost}
    description: Grafana — Quota business capability. Self-contained, no shared references.
    resources:
    - name: admin-users-user_id-quotas
      path: /admin/users/{user_id}/quotas
      operations:
      - name: getuserquota
        method: GET
        description: Grafana Get User Quota
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: user_id
          in: path
          type: integer
          required: true
    - name: admin-users-user_id-quotas-quota_target
      path: /admin/users/{user_id}/quotas/{quota_target}
      operations:
      - name: updateuserquota
        method: PUT
        description: Grafana Update User Quota
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: quota_target
          in: path
          type: string
          required: true
        - name: user_id
          in: path
          type: integer
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: org-quotas
      path: /org/quotas
      operations:
      - name: getcurrentorgquota
        method: GET
        description: Grafana Get Current Org Quota
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: orgs-org_id-quotas
      path: /orgs/{org_id}/quotas
      operations:
      - name: getorgquota
        method: GET
        description: Grafana Get Org Quota
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: org_id
          in: path
          type: integer
          required: true
    - name: orgs-org_id-quotas-quota_target
      path: /orgs/{org_id}/quotas/{quota_target}
      operations:
      - name: updateorgquota
        method: PUT
        description: Grafana Update Org Quota
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: quota_target
          in: path
          type: string
          required: true
        - name: org_id
          in: path
          type: integer
          required: true
        - 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-quota-rest
    port: 8080
    description: REST adapter for Grafana — Quota. One Spectral-compliant resource per consumed operation, prefixed with /v1.
    resources:
    - path: /v1/admin/users/{user-id}/quotas
      name: admin-users-user-id-quotas
      description: REST surface for admin-users-user_id-quotas.
      operations:
      - method: GET
        name: getuserquota
        description: Grafana Get User Quota
        call: grafana-quota.getuserquota
        with:
          user_id: rest.user_id
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/admin/users/{user-id}/quotas/{quota-target}
      name: admin-users-user-id-quotas-quota-target
      description: REST surface for admin-users-user_id-quotas-quota_target.
      operations:
      - method: PUT
        name: updateuserquota
        description: Grafana Update User Quota
        call: grafana-quota.updateuserquota
        with:
          quota_target: rest.quota_target
          user_id: rest.user_id
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/org/quotas
      name: org-quotas
      description: REST surface for org-quotas.
      operations:
      - method: GET
        name: getcurrentorgquota
        description: Grafana Get Current Org Quota
        call: grafana-quota.getcurrentorgquota
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/orgs/{org-id}/quotas
      name: orgs-org-id-quotas
      description: REST surface for orgs-org_id-quotas.
      operations:
      - method: GET
        name: getorgquota
        description: Grafana Get Org Quota
        call: grafana-quota.getorgquota
        with:
          org_id: rest.org_id
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/orgs/{org-id}/quotas/{quota-target}
      name: orgs-org-id-quotas-quota-target
      description: REST surface for orgs-org_id-quotas-quota_target.
      operations:
      - method: PUT
        name: updateorgquota
        description: Grafana Update Org Quota
        call: grafana-quota.updateorgquota
        with:
          quota_target: rest.quota_target
          org_id: rest.org_id
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: grafana-quota-mcp
    port: 9090
    transport: http
    description: MCP adapter for Grafana — Quota. One tool per consumed operation, routed inline through this capability's
      consumes block.
    tools:
    - name: grafana-get-user-quota
      description: Grafana Get User Quota
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: grafana-quota.getuserquota
      with:
        user_id: tools.user_id
      outputParameters:
      - type: object
        mapping: $.
    - name: grafana-update-user-quota
      description: Grafana Update User Quota
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: grafana-quota.updateuserquota
      with:
        quota_target: tools.quota_target
        user_id: tools.user_id
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: grafana-get-current-org-quota
      description: Grafana Get Current Org Quota
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: grafana-quota.getcurrentorgquota
      outputParameters:
      - type: object
        mapping: $.
    - name: grafana-get-org-quota
      description: Grafana Get Org Quota
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: grafana-quota.getorgquota
      with:
        org_id: tools.org_id
      outputParameters:
      - type: object
        mapping: $.
    - name: grafana-update-org-quota
      description: Grafana Update Org Quota
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: grafana-quota.updateorgquota
      with:
        quota_target: tools.quota_target
        org_id: tools.org_id
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.