Linkerd · Capability

Linkerd Viz Metrics API — Routes

Linkerd Viz Metrics API — Routes. 1 operations. Lead operation: Linkerd Get top routes for a resource. Self-contained Naftiko capability covering one Linkerd business surface.

Run with Naftiko LinkerdRoutes

What You Can Do

POST
Gettoproutes — Linkerd Get top routes for a resource
/v1/api/v1/top-routes

MCP Tools

linkerd-get-top-routes-resource

Linkerd Get top routes for a resource

read-only

Capability Spec

viz-metrics-routes.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Linkerd Viz Metrics API — Routes
  description: 'Linkerd Viz Metrics API — Routes. 1 operations. Lead operation: Linkerd Get top routes for a resource. Self-contained
    Naftiko capability covering one Linkerd business surface.'
  tags:
  - Linkerd
  - Routes
  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-routes
    baseUri: http://metrics-api.linkerd-viz.svc.cluster.local:8085
    description: Linkerd Viz Metrics API — Routes business capability. Self-contained, no shared references.
    resources:
    - name: api-v1-top-routes
      path: /api/v1/top-routes
      operations:
      - name: gettoproutes
        method: POST
        description: Linkerd Get top routes for a resource
        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-routes-rest
    port: 8080
    description: REST adapter for Linkerd Viz Metrics API — Routes. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/api/v1/top-routes
      name: api-v1-top-routes
      description: REST surface for api-v1-top-routes.
      operations:
      - method: POST
        name: gettoproutes
        description: Linkerd Get top routes for a resource
        call: viz-metrics-routes.gettoproutes
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: viz-metrics-routes-mcp
    port: 9090
    transport: http
    description: MCP adapter for Linkerd Viz Metrics API — Routes. One tool per consumed operation, routed inline through
      this capability's consumes block.
    tools:
    - name: linkerd-get-top-routes-resource
      description: Linkerd Get top routes for a resource
      hints:
        readOnly: true
        destructive: false
        idempotent: false
      call: viz-metrics-routes.gettoproutes
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.