Elastic · Capability

Elasticsearch REST API — Cluster

Elasticsearch REST API — Cluster. 1 operations. Lead operation: Get cluster health. Self-contained Naftiko capability covering one Elastic business surface.

Run with Naftiko ElasticCluster

What You Can Do

GET
Getclusterhealth — Get cluster health
/v1/cluster/health

MCP Tools

get-cluster-health

Get cluster health

read-only idempotent

Capability Spec

elasticsearch-cluster.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Elasticsearch REST API — Cluster
  description: 'Elasticsearch REST API — Cluster. 1 operations. Lead operation: Get cluster health. Self-contained Naftiko
    capability covering one Elastic business surface.'
  tags:
  - Elastic
  - Cluster
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    ELASTIC_API_KEY: ELASTIC_API_KEY
capability:
  consumes:
  - type: http
    namespace: elasticsearch-cluster
    baseUri: https://{deployment}.es.{region}.cloud.es.io:9243
    description: Elasticsearch REST API — Cluster business capability. Self-contained, no shared references.
    resources:
    - name: _cluster-health
      path: /_cluster/health
      operations:
      - name: getclusterhealth
        method: GET
        description: Get cluster health
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    authentication:
      type: apikey
      key: Authorization
      value: '{{env.ELASTIC_API_KEY}}'
      placement: header
  exposes:
  - type: rest
    namespace: elasticsearch-cluster-rest
    port: 8080
    description: REST adapter for Elasticsearch REST API — Cluster. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/cluster/health
      name: cluster-health
      description: REST surface for _cluster-health.
      operations:
      - method: GET
        name: getclusterhealth
        description: Get cluster health
        call: elasticsearch-cluster.getclusterhealth
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: elasticsearch-cluster-mcp
    port: 9090
    transport: http
    description: MCP adapter for Elasticsearch REST API — Cluster. One tool per consumed operation, routed inline through
      this capability's consumes block.
    tools:
    - name: get-cluster-health
      description: Get cluster health
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: elasticsearch-cluster.getclusterhealth
      outputParameters:
      - type: object
        mapping: $.