Kibana · Capability

Kibana APIs — ml

Kibana APIs — ml. 3 operations. Lead operation: Sync saved objects in the default space. Self-contained Naftiko capability covering one Kibana business surface.

Run with Naftiko Kibanaml

What You Can Do

GET
Mlsync — Sync saved objects in the default space
/v1/api/ml/saved-objects/sync
POST
Mlupdatejobsspaces — Update jobs spaces
/v1/api/ml/saved-objects/update-jobs-spaces
POST
Mlupdatetrainedmodelsspaces — Update trained models spaces
/v1/api/ml/saved-objects/update-trained-models-spaces

MCP Tools

sync-saved-objects-default-space

Sync saved objects in the default space

read-only idempotent
update-jobs-spaces

Update jobs spaces

update-trained-models-spaces

Update trained models spaces

Capability Spec

kibana-ml.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Kibana APIs — ml
  description: 'Kibana APIs — ml. 3 operations. Lead operation: Sync saved objects in the default space. Self-contained Naftiko
    capability covering one Kibana business surface.'
  tags:
  - Kibana
  - ml
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    KIBANA_API_KEY: KIBANA_API_KEY
capability:
  consumes:
  - type: http
    namespace: kibana-ml
    baseUri: https://{kibana_url}
    description: Kibana APIs — ml business capability. Self-contained, no shared references.
    resources:
    - name: api-ml-saved_objects-sync
      path: /api/ml/saved_objects/sync
      operations:
      - name: mlsync
        method: GET
        description: Sync saved objects in the default space
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: api-ml-saved_objects-update_jobs_spaces
      path: /api/ml/saved_objects/update_jobs_spaces
      operations:
      - name: mlupdatejobsspaces
        method: POST
        description: Update jobs spaces
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
    - name: api-ml-saved_objects-update_trained_models_spaces
      path: /api/ml/saved_objects/update_trained_models_spaces
      operations:
      - name: mlupdatetrainedmodelsspaces
        method: POST
        description: Update trained models spaces
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
    authentication:
      type: apikey
      key: Authorization
      value: '{{env.KIBANA_API_KEY}}'
      placement: header
  exposes:
  - type: rest
    namespace: kibana-ml-rest
    port: 8080
    description: REST adapter for Kibana APIs — ml. One Spectral-compliant resource per consumed operation, prefixed with
      /v1.
    resources:
    - path: /v1/api/ml/saved-objects/sync
      name: api-ml-saved-objects-sync
      description: REST surface for api-ml-saved_objects-sync.
      operations:
      - method: GET
        name: mlsync
        description: Sync saved objects in the default space
        call: kibana-ml.mlsync
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/api/ml/saved-objects/update-jobs-spaces
      name: api-ml-saved-objects-update-jobs-spaces
      description: REST surface for api-ml-saved_objects-update_jobs_spaces.
      operations:
      - method: POST
        name: mlupdatejobsspaces
        description: Update jobs spaces
        call: kibana-ml.mlupdatejobsspaces
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/api/ml/saved-objects/update-trained-models-spaces
      name: api-ml-saved-objects-update-trained-models-spaces
      description: REST surface for api-ml-saved_objects-update_trained_models_spaces.
      operations:
      - method: POST
        name: mlupdatetrainedmodelsspaces
        description: Update trained models spaces
        call: kibana-ml.mlupdatetrainedmodelsspaces
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: kibana-ml-mcp
    port: 9090
    transport: http
    description: MCP adapter for Kibana APIs — ml. One tool per consumed operation, routed inline through this capability's
      consumes block.
    tools:
    - name: sync-saved-objects-default-space
      description: Sync saved objects in the default space
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: kibana-ml.mlsync
      outputParameters:
      - type: object
        mapping: $.
    - name: update-jobs-spaces
      description: Update jobs spaces
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: kibana-ml.mlupdatejobsspaces
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: update-trained-models-spaces
      description: Update trained models spaces
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: kibana-ml.mlupdatetrainedmodelsspaces
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.