Grafana · Capability

Grafana — Descendants

Grafana — Descendants. 1 operations. Lead operation: Grafana Get Folder Descendant Counts. Self-contained Naftiko capability covering one Grafana business surface.

Run with Naftiko GrafanaDescendants

What You Can Do

GET
Getfolderdescendantcounts — Grafana Get Folder Descendant Counts
/v1/folders/{folder-uid}/counts

MCP Tools

grafana-get-folder-descendant-counts

Grafana Get Folder Descendant Counts

read-only idempotent

Capability Spec

grafana-descendants.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Grafana — Descendants
  description: 'Grafana — Descendants. 1 operations. Lead operation: Grafana Get Folder Descendant Counts. Self-contained
    Naftiko capability covering one Grafana business surface.'
  tags:
  - Grafana
  - Descendants
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    GRAFANA_API_KEY: GRAFANA_API_KEY
capability:
  consumes:
  - type: http
    namespace: grafana-descendants
    baseUri: http://{defaultHost}
    description: Grafana — Descendants business capability. Self-contained, no shared references.
    resources:
    - name: folders-folder_uid-counts
      path: /folders/{folder_uid}/counts
      operations:
      - name: getfolderdescendantcounts
        method: GET
        description: Grafana Get Folder Descendant Counts
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: folder_uid
          in: path
          type: string
          required: true
    authentication:
      type: apikey
      key: Authorization
      value: '{{env.GRAFANA_API_KEY}}'
      placement: header
  exposes:
  - type: rest
    namespace: grafana-descendants-rest
    port: 8080
    description: REST adapter for Grafana — Descendants. One Spectral-compliant resource per consumed operation, prefixed
      with /v1.
    resources:
    - path: /v1/folders/{folder-uid}/counts
      name: folders-folder-uid-counts
      description: REST surface for folders-folder_uid-counts.
      operations:
      - method: GET
        name: getfolderdescendantcounts
        description: Grafana Get Folder Descendant Counts
        call: grafana-descendants.getfolderdescendantcounts
        with:
          folder_uid: rest.folder_uid
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: grafana-descendants-mcp
    port: 9090
    transport: http
    description: MCP adapter for Grafana — Descendants. One tool per consumed operation, routed inline through this capability's
      consumes block.
    tools:
    - name: grafana-get-folder-descendant-counts
      description: Grafana Get Folder Descendant Counts
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: grafana-descendants.getfolderdescendantcounts
      with:
        folder_uid: tools.folder_uid
      outputParameters:
      - type: object
        mapping: $.