Kibana · Capability

Kibana APIs — Fleet uninstall tokens

Kibana APIs — Fleet uninstall tokens. 2 operations. Lead operation: Get metadata for latest uninstall tokens. Self-contained Naftiko capability covering one Kibana business surface.

Run with Naftiko KibanaFleet uninstall tokens

What You Can Do

GET
Getfleetuninstalltokens — Get metadata for latest uninstall tokens
/v1/api/fleet/uninstall-tokens
GET
Getfleetuninstalltokensuninstalltokenid — Get a decrypted uninstall token
/v1/api/fleet/uninstall-tokens/{uninstalltokenid}

MCP Tools

get-metadata-latest-uninstall-tokens

Get metadata for latest uninstall tokens

read-only idempotent
get-decrypted-uninstall-token

Get a decrypted uninstall token

read-only idempotent

Capability Spec

kibana-fleet-uninstall-tokens.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Kibana APIs — Fleet uninstall tokens
  description: 'Kibana APIs — Fleet uninstall tokens. 2 operations. Lead operation: Get metadata for latest uninstall tokens.
    Self-contained Naftiko capability covering one Kibana business surface.'
  tags:
  - Kibana
  - Fleet uninstall tokens
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    KIBANA_API_KEY: KIBANA_API_KEY
capability:
  consumes:
  - type: http
    namespace: kibana-fleet-uninstall-tokens
    baseUri: https://{kibana_url}
    description: Kibana APIs — Fleet uninstall tokens business capability. Self-contained, no shared references.
    resources:
    - name: api-fleet-uninstall_tokens
      path: /api/fleet/uninstall_tokens
      operations:
      - name: getfleetuninstalltokens
        method: GET
        description: Get metadata for latest uninstall tokens
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: policyId
          in: query
          type: string
          description: Partial match filtering for policy IDs
        - name: search
          in: query
          type: string
          description: Partial match filtering for uninstall token values
        - name: perPage
          in: query
          type: number
          description: The number of items to return
        - name: page
          in: query
          type: number
          description: Page number
    - name: api-fleet-uninstall_tokens-uninstallTokenId
      path: /api/fleet/uninstall_tokens/{uninstallTokenId}
      operations:
      - name: getfleetuninstalltokensuninstalltokenid
        method: GET
        description: Get a decrypted uninstall token
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: uninstallTokenId
          in: path
          type: string
          description: The ID of the uninstall token
          required: true
    authentication:
      type: apikey
      key: Authorization
      value: '{{env.KIBANA_API_KEY}}'
      placement: header
  exposes:
  - type: rest
    namespace: kibana-fleet-uninstall-tokens-rest
    port: 8080
    description: REST adapter for Kibana APIs — Fleet uninstall tokens. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/api/fleet/uninstall-tokens
      name: api-fleet-uninstall-tokens
      description: REST surface for api-fleet-uninstall_tokens.
      operations:
      - method: GET
        name: getfleetuninstalltokens
        description: Get metadata for latest uninstall tokens
        call: kibana-fleet-uninstall-tokens.getfleetuninstalltokens
        with:
          policyId: rest.policyId
          search: rest.search
          perPage: rest.perPage
          page: rest.page
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/api/fleet/uninstall-tokens/{uninstalltokenid}
      name: api-fleet-uninstall-tokens-uninstalltokenid
      description: REST surface for api-fleet-uninstall_tokens-uninstallTokenId.
      operations:
      - method: GET
        name: getfleetuninstalltokensuninstalltokenid
        description: Get a decrypted uninstall token
        call: kibana-fleet-uninstall-tokens.getfleetuninstalltokensuninstalltokenid
        with:
          uninstallTokenId: rest.uninstallTokenId
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: kibana-fleet-uninstall-tokens-mcp
    port: 9090
    transport: http
    description: MCP adapter for Kibana APIs — Fleet uninstall tokens. One tool per consumed operation, routed inline through
      this capability's consumes block.
    tools:
    - name: get-metadata-latest-uninstall-tokens
      description: Get metadata for latest uninstall tokens
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: kibana-fleet-uninstall-tokens.getfleetuninstalltokens
      with:
        policyId: tools.policyId
        search: tools.search
        perPage: tools.perPage
        page: tools.page
      outputParameters:
      - type: object
        mapping: $.
    - name: get-decrypted-uninstall-token
      description: Get a decrypted uninstall token
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: kibana-fleet-uninstall-tokens.getfleetuninstalltokensuninstalltokenid
      with:
        uninstallTokenId: tools.uninstallTokenId
      outputParameters:
      - type: object
        mapping: $.