Linkerd · Capability

Linkerd Viz Metrics API — Statistics

Linkerd Viz Metrics API — Statistics. 1 operations. Lead operation: Linkerd Get stat summary for resources. Self-contained Naftiko capability covering one Linkerd business surface.

Run with Naftiko LinkerdStatistics

What You Can Do

POST
Getstatsummary — Linkerd Get stat summary for resources
/v1/api/v1/stat

MCP Tools

linkerd-get-stat-summary-resources

Linkerd Get stat summary for resources

read-only

Capability Spec

viz-metrics-statistics.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Linkerd Viz Metrics API — Statistics
  description: 'Linkerd Viz Metrics API — Statistics. 1 operations. Lead operation: Linkerd Get stat summary for resources.
    Self-contained Naftiko capability covering one Linkerd business surface.'
  tags:
  - Linkerd
  - Statistics
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    LINKERD_API_KEY: LINKERD_API_KEY
capability:
  consumes:
  - type: http
    namespace: viz-metrics-statistics
    baseUri: http://metrics-api.linkerd-viz.svc.cluster.local:8085
    description: Linkerd Viz Metrics API — Statistics business capability. Self-contained, no shared references.
    resources:
    - name: api-v1-stat
      path: /api/v1/stat
      operations:
      - name: getstatsummary
        method: POST
        description: Linkerd Get stat summary for resources
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
  exposes:
  - type: rest
    namespace: viz-metrics-statistics-rest
    port: 8080
    description: REST adapter for Linkerd Viz Metrics API — Statistics. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/api/v1/stat
      name: api-v1-stat
      description: REST surface for api-v1-stat.
      operations:
      - method: POST
        name: getstatsummary
        description: Linkerd Get stat summary for resources
        call: viz-metrics-statistics.getstatsummary
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: viz-metrics-statistics-mcp
    port: 9090
    transport: http
    description: MCP adapter for Linkerd Viz Metrics API — Statistics. One tool per consumed operation, routed inline through
      this capability's consumes block.
    tools:
    - name: linkerd-get-stat-summary-resources
      description: Linkerd Get stat summary for resources
      hints:
        readOnly: true
        destructive: false
        idempotent: false
      call: viz-metrics-statistics.getstatsummary
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.