Apache ZooKeeper · Capability

Apache ZooKeeper Admin Server API

The ZooKeeper Admin Server provides an HTTP interface for monitoring and management commands. It exposes four-letter-word equivalent commands as REST endpoints for cluster monitoring, configuration, and diagnostics.

Run with Naftiko ApacheZookeeperAPI

What You Can Do

GET
Getconfiguration — Apache ZooKeeper Get Server Configuration
/conf
GET
Getconnections — Apache ZooKeeper List Client Connections
/cons
GET
Resetconnectionstats — Apache ZooKeeper Reset Connection Statistics
/crst
GET
Getdump — Apache ZooKeeper List Sessions and Ephemeral Nodes
/dump
GET
Getenvironment — Apache ZooKeeper Get Server Environment
/environment
GET
Healthcheck — Apache ZooKeeper Health Check
/ruok
GET
Getserverstats — Apache ZooKeeper Get Server Statistics
/stat
GET
Getserverinfo — Apache ZooKeeper Get Full Server Details
/srvr
GET
Resetstats — Apache ZooKeeper Reset Server Statistics
/srst
GET
Getmonitormetrics — Apache ZooKeeper Get Monitoring Metrics
/mntr
GET
Getwatchsummary — Apache ZooKeeper Get Watch Summary
/wchs
GET
Getwatchesbyconnection — Apache ZooKeeper Get Watches by Connection
/wchc
GET
Getwatchesbypath — Apache ZooKeeper Get Watches by Path
/wchp
GET
Getdirectorysize — Apache ZooKeeper Get Data Directory Sizes
/dirs
GET
Isreadonly — Apache ZooKeeper Check Read-only Mode
/isro
GET
Gethash — Apache ZooKeeper Get Data Tree Digest
/hash
GET
Getvotingview — Apache ZooKeeper Get Current Voting View
/voting_view
GET
Getleader — Apache ZooKeeper Check if Leader
/leader
GET
Getinitialconfiguration — Apache ZooKeeper Get Initial Configuration
/initial_configuration
GET
Getlastsnapshot — Apache ZooKeeper Get Last Snapshot Info
/last_snapshot
GET
Getsystemproperties — Apache ZooKeeper Get JVM System Properties
/system_properties

MCP Tools

getconfiguration

Apache ZooKeeper Get Server Configuration

read-only idempotent
getconnections

Apache ZooKeeper List Client Connections

read-only idempotent
resetconnectionstats

Apache ZooKeeper Reset Connection Statistics

read-only idempotent
getdump

Apache ZooKeeper List Sessions and Ephemeral Nodes

read-only idempotent
getenvironment

Apache ZooKeeper Get Server Environment

read-only idempotent
healthcheck

Apache ZooKeeper Health Check

read-only idempotent
getserverstats

Apache ZooKeeper Get Server Statistics

read-only idempotent
getserverinfo

Apache ZooKeeper Get Full Server Details

read-only idempotent
resetstats

Apache ZooKeeper Reset Server Statistics

read-only idempotent
getmonitormetrics

Apache ZooKeeper Get Monitoring Metrics

read-only idempotent
getwatchsummary

Apache ZooKeeper Get Watch Summary

read-only idempotent
getwatchesbyconnection

Apache ZooKeeper Get Watches by Connection

read-only idempotent
getwatchesbypath

Apache ZooKeeper Get Watches by Path

read-only idempotent
getdirectorysize

Apache ZooKeeper Get Data Directory Sizes

read-only idempotent
isreadonly

Apache ZooKeeper Check Read-only Mode

read-only idempotent
gethash

Apache ZooKeeper Get Data Tree Digest

read-only idempotent
getvotingview

Apache ZooKeeper Get Current Voting View

read-only idempotent
getleader

Apache ZooKeeper Check if Leader

read-only idempotent
getinitialconfiguration

Apache ZooKeeper Get Initial Configuration

read-only idempotent
getlastsnapshot

Apache ZooKeeper Get Last Snapshot Info

read-only idempotent
getsystemproperties

Apache ZooKeeper Get JVM System Properties

read-only idempotent

Capability Spec

apache-zookeeper-capability.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Apache ZooKeeper Admin Server API
  description: The ZooKeeper Admin Server provides an HTTP interface for monitoring and management commands. It exposes four-letter-word
    equivalent commands as REST endpoints for cluster monitoring, configuration, and diagnostics.
  tags:
  - Apache
  - Zookeeper
  - API
  created: '2026-05-06'
  modified: '2026-05-06'
capability:
  consumes:
  - type: http
    namespace: apache-zookeeper
    baseUri: http://localhost:8080/commands
    description: Apache ZooKeeper Admin Server API HTTP API.
    resources:
    - name: conf
      path: /conf
      operations:
      - name: getconfiguration
        method: GET
        description: Apache ZooKeeper Get Server Configuration
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: cons
      path: /cons
      operations:
      - name: getconnections
        method: GET
        description: Apache ZooKeeper List Client Connections
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: crst
      path: /crst
      operations:
      - name: resetconnectionstats
        method: GET
        description: Apache ZooKeeper Reset Connection Statistics
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: dump
      path: /dump
      operations:
      - name: getdump
        method: GET
        description: Apache ZooKeeper List Sessions and Ephemeral Nodes
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: environment
      path: /environment
      operations:
      - name: getenvironment
        method: GET
        description: Apache ZooKeeper Get Server Environment
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: ruok
      path: /ruok
      operations:
      - name: healthcheck
        method: GET
        description: Apache ZooKeeper Health Check
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: stat
      path: /stat
      operations:
      - name: getserverstats
        method: GET
        description: Apache ZooKeeper Get Server Statistics
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: srvr
      path: /srvr
      operations:
      - name: getserverinfo
        method: GET
        description: Apache ZooKeeper Get Full Server Details
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: srst
      path: /srst
      operations:
      - name: resetstats
        method: GET
        description: Apache ZooKeeper Reset Server Statistics
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: mntr
      path: /mntr
      operations:
      - name: getmonitormetrics
        method: GET
        description: Apache ZooKeeper Get Monitoring Metrics
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: wchs
      path: /wchs
      operations:
      - name: getwatchsummary
        method: GET
        description: Apache ZooKeeper Get Watch Summary
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: wchc
      path: /wchc
      operations:
      - name: getwatchesbyconnection
        method: GET
        description: Apache ZooKeeper Get Watches by Connection
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: wchp
      path: /wchp
      operations:
      - name: getwatchesbypath
        method: GET
        description: Apache ZooKeeper Get Watches by Path
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: dirs
      path: /dirs
      operations:
      - name: getdirectorysize
        method: GET
        description: Apache ZooKeeper Get Data Directory Sizes
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: isro
      path: /isro
      operations:
      - name: isreadonly
        method: GET
        description: Apache ZooKeeper Check Read-only Mode
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: hash
      path: /hash
      operations:
      - name: gethash
        method: GET
        description: Apache ZooKeeper Get Data Tree Digest
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: voting-view
      path: /voting_view
      operations:
      - name: getvotingview
        method: GET
        description: Apache ZooKeeper Get Current Voting View
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: leader
      path: /leader
      operations:
      - name: getleader
        method: GET
        description: Apache ZooKeeper Check if Leader
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: initial-configuration
      path: /initial_configuration
      operations:
      - name: getinitialconfiguration
        method: GET
        description: Apache ZooKeeper Get Initial Configuration
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: last-snapshot
      path: /last_snapshot
      operations:
      - name: getlastsnapshot
        method: GET
        description: Apache ZooKeeper Get Last Snapshot Info
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: system-properties
      path: /system_properties
      operations:
      - name: getsystemproperties
        method: GET
        description: Apache ZooKeeper Get JVM System Properties
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
  exposes:
  - type: rest
    port: 8080
    namespace: apache-zookeeper-rest
    description: REST adapter for Apache ZooKeeper Admin Server API.
    resources:
    - path: /conf
      name: getconfiguration
      operations:
      - method: GET
        name: getconfiguration
        description: Apache ZooKeeper Get Server Configuration
        call: apache-zookeeper.getconfiguration
        outputParameters:
        - type: object
          mapping: $.
    - path: /cons
      name: getconnections
      operations:
      - method: GET
        name: getconnections
        description: Apache ZooKeeper List Client Connections
        call: apache-zookeeper.getconnections
        outputParameters:
        - type: object
          mapping: $.
    - path: /crst
      name: resetconnectionstats
      operations:
      - method: GET
        name: resetconnectionstats
        description: Apache ZooKeeper Reset Connection Statistics
        call: apache-zookeeper.resetconnectionstats
        outputParameters:
        - type: object
          mapping: $.
    - path: /dump
      name: getdump
      operations:
      - method: GET
        name: getdump
        description: Apache ZooKeeper List Sessions and Ephemeral Nodes
        call: apache-zookeeper.getdump
        outputParameters:
        - type: object
          mapping: $.
    - path: /environment
      name: getenvironment
      operations:
      - method: GET
        name: getenvironment
        description: Apache ZooKeeper Get Server Environment
        call: apache-zookeeper.getenvironment
        outputParameters:
        - type: object
          mapping: $.
    - path: /ruok
      name: healthcheck
      operations:
      - method: GET
        name: healthcheck
        description: Apache ZooKeeper Health Check
        call: apache-zookeeper.healthcheck
        outputParameters:
        - type: object
          mapping: $.
    - path: /stat
      name: getserverstats
      operations:
      - method: GET
        name: getserverstats
        description: Apache ZooKeeper Get Server Statistics
        call: apache-zookeeper.getserverstats
        outputParameters:
        - type: object
          mapping: $.
    - path: /srvr
      name: getserverinfo
      operations:
      - method: GET
        name: getserverinfo
        description: Apache ZooKeeper Get Full Server Details
        call: apache-zookeeper.getserverinfo
        outputParameters:
        - type: object
          mapping: $.
    - path: /srst
      name: resetstats
      operations:
      - method: GET
        name: resetstats
        description: Apache ZooKeeper Reset Server Statistics
        call: apache-zookeeper.resetstats
        outputParameters:
        - type: object
          mapping: $.
    - path: /mntr
      name: getmonitormetrics
      operations:
      - method: GET
        name: getmonitormetrics
        description: Apache ZooKeeper Get Monitoring Metrics
        call: apache-zookeeper.getmonitormetrics
        outputParameters:
        - type: object
          mapping: $.
    - path: /wchs
      name: getwatchsummary
      operations:
      - method: GET
        name: getwatchsummary
        description: Apache ZooKeeper Get Watch Summary
        call: apache-zookeeper.getwatchsummary
        outputParameters:
        - type: object
          mapping: $.
    - path: /wchc
      name: getwatchesbyconnection
      operations:
      - method: GET
        name: getwatchesbyconnection
        description: Apache ZooKeeper Get Watches by Connection
        call: apache-zookeeper.getwatchesbyconnection
        outputParameters:
        - type: object
          mapping: $.
    - path: /wchp
      name: getwatchesbypath
      operations:
      - method: GET
        name: getwatchesbypath
        description: Apache ZooKeeper Get Watches by Path
        call: apache-zookeeper.getwatchesbypath
        outputParameters:
        - type: object
          mapping: $.
    - path: /dirs
      name: getdirectorysize
      operations:
      - method: GET
        name: getdirectorysize
        description: Apache ZooKeeper Get Data Directory Sizes
        call: apache-zookeeper.getdirectorysize
        outputParameters:
        - type: object
          mapping: $.
    - path: /isro
      name: isreadonly
      operations:
      - method: GET
        name: isreadonly
        description: Apache ZooKeeper Check Read-only Mode
        call: apache-zookeeper.isreadonly
        outputParameters:
        - type: object
          mapping: $.
    - path: /hash
      name: gethash
      operations:
      - method: GET
        name: gethash
        description: Apache ZooKeeper Get Data Tree Digest
        call: apache-zookeeper.gethash
        outputParameters:
        - type: object
          mapping: $.
    - path: /voting_view
      name: getvotingview
      operations:
      - method: GET
        name: getvotingview
        description: Apache ZooKeeper Get Current Voting View
        call: apache-zookeeper.getvotingview
        outputParameters:
        - type: object
          mapping: $.
    - path: /leader
      name: getleader
      operations:
      - method: GET
        name: getleader
        description: Apache ZooKeeper Check if Leader
        call: apache-zookeeper.getleader
        outputParameters:
        - type: object
          mapping: $.
    - path: /initial_configuration
      name: getinitialconfiguration
      operations:
      - method: GET
        name: getinitialconfiguration
        description: Apache ZooKeeper Get Initial Configuration
        call: apache-zookeeper.getinitialconfiguration
        outputParameters:
        - type: object
          mapping: $.
    - path: /last_snapshot
      name: getlastsnapshot
      operations:
      - method: GET
        name: getlastsnapshot
        description: Apache ZooKeeper Get Last Snapshot Info
        call: apache-zookeeper.getlastsnapshot
        outputParameters:
        - type: object
          mapping: $.
    - path: /system_properties
      name: getsystemproperties
      operations:
      - method: GET
        name: getsystemproperties
        description: Apache ZooKeeper Get JVM System Properties
        call: apache-zookeeper.getsystemproperties
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    port: 9090
    namespace: apache-zookeeper-mcp
    transport: http
    description: MCP adapter for Apache ZooKeeper Admin Server API for AI agent use.
    tools:
    - name: getconfiguration
      description: Apache ZooKeeper Get Server Configuration
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: apache-zookeeper.getconfiguration
      outputParameters:
      - type: object
        mapping: $.
    - name: getconnections
      description: Apache ZooKeeper List Client Connections
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: apache-zookeeper.getconnections
      outputParameters:
      - type: object
        mapping: $.
    - name: resetconnectionstats
      description: Apache ZooKeeper Reset Connection Statistics
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: apache-zookeeper.resetconnectionstats
      outputParameters:
      - type: object
        mapping: $.
    - name: getdump
      description: Apache ZooKeeper List Sessions and Ephemeral Nodes
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: apache-zookeeper.getdump
      outputParameters:
      - type: object
        mapping: $.
    - name: getenvironment
      description: Apache ZooKeeper Get Server Environment
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: apache-zookeeper.getenvironment
      outputParameters:
      - type: object
        mapping: $.
    - name: healthcheck
      description: Apache ZooKeeper Health Check
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: apache-zookeeper.healthcheck
      outputParameters:
      - type: object
        mapping: $.
    - name: getserverstats
      description: Apache ZooKeeper Get Server Statistics
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: apache-zookeeper.getserverstats
      outputParameters:
      - type: object
        mapping: $.
    - name: getserverinfo
      description: Apache ZooKeeper Get Full Server Details
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: apache-zookeeper.getserverinfo
      outputParameters:
      - type: object
        mapping: $.
    - name: resetstats
      description: Apache ZooKeeper Reset Server Statistics
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: apache-zookeeper.resetstats
      outputParameters:
      - type: object
        mapping: $.
    - name: getmonitormetrics
      description: Apache ZooKeeper Get Monitoring Metrics
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: apache-zookeeper.getmonitormetrics
      outputParameters:
      - type: object
        mapping: $.
    - name: getwatchsummary
      description: Apache ZooKeeper Get Watch Summary
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: apache-zookeeper.getwatchsummary
      outputParameters:
      - type: object
        mapping: $.
    - name: getwatchesbyconnection
      description: Apache ZooKeeper Get Watches by Connection
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: apache-zookeeper.getwatchesbyconnection
      outputParameters:
      - type: object
        mapping: $.
    - name: getwatchesbypath
      description: Apache ZooKeeper Get Watches by Path
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: apache-zookeeper.getwatchesbypath
      outputParameters:
      - type: object
        mapping: $.
    - name: getdirectorysize
      description: Apache ZooKeeper Get Data Directory Sizes
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: apache-zookeeper.getdirectorysize
      outputParameters:
      - type: object
        mapping: $.
    - name: isreadonly
      description: Apache ZooKeeper Check Read-only Mode
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: apache-zookeeper.isreadonly
      outputParameters:
      - type: object
        mapping: $.
    - name: gethash
      description: Apache ZooKeeper Get Data Tree Digest
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: apache-zookeeper.gethash
      outputParameters:
      - type: object
        mapping: $.
    - name: getvotingview
      description: Apache ZooKeeper Get Current Voting View
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: apache-zookeeper.getvotingview
      outputParameters:
      - type: object
        mapping: $.
    - name: getleader
      description: Apache ZooKeeper Check if Leader
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: apache-zookeeper.getleader
      outputParameters:
      - type: object
        mapping: $.
    - name: getinitialconfiguration
      description: Apache ZooKeeper Get Initial Configuration
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: apache-zookeeper.getinitialconfiguration
      outputParameters:
      - type: object
        mapping: $.
    - name: getlastsnapshot
      description: Apache ZooKeeper Get Last Snapshot Info
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: apache-zookeeper.getlastsnapshot
      outputParameters:
      - type: object
        mapping: $.
    - name: getsystemproperties
      description: Apache ZooKeeper Get JVM System Properties
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: apache-zookeeper.getsystemproperties
      outputParameters:
      - type: object
        mapping: $.