Dropwizard · Capability

Dropwizard Admin API — Metrics

Dropwizard Admin API — Metrics. 1 operations. Lead operation: Get all metrics. Self-contained Naftiko capability covering one Dropwizard business surface.

Run with Naftiko DropwizardMetrics

What You Can Do

GET
Getmetrics — Get all metrics
/v1/metrics

MCP Tools

get-all-metrics

Get all metrics

read-only idempotent

Capability Spec

admin-metrics.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Dropwizard Admin API — Metrics
  description: 'Dropwizard Admin API — Metrics. 1 operations. Lead operation: Get all metrics. Self-contained Naftiko capability
    covering one Dropwizard business surface.'
  tags:
  - Dropwizard
  - Metrics
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    DROPWIZARD_API_KEY: DROPWIZARD_API_KEY
capability:
  consumes:
  - type: http
    namespace: admin-metrics
    baseUri: http://localhost:8081
    description: Dropwizard Admin API — Metrics business capability. Self-contained, no shared references.
    resources:
    - name: metrics
      path: /metrics
      operations:
      - name: getmetrics
        method: GET
        description: Get all metrics
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: pretty
          in: query
          type: boolean
          description: Pretty-print the JSON output.
  exposes:
  - type: rest
    namespace: admin-metrics-rest
    port: 8080
    description: REST adapter for Dropwizard Admin API — Metrics. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/metrics
      name: metrics
      description: REST surface for metrics.
      operations:
      - method: GET
        name: getmetrics
        description: Get all metrics
        call: admin-metrics.getmetrics
        with:
          pretty: rest.pretty
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: admin-metrics-mcp
    port: 9090
    transport: http
    description: MCP adapter for Dropwizard Admin API — Metrics. One tool per consumed operation, routed inline through this
      capability's consumes block.
    tools:
    - name: get-all-metrics
      description: Get all metrics
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: admin-metrics.getmetrics
      with:
        pretty: tools.pretty
      outputParameters:
      - type: object
        mapping: $.