Scaleway · Capability

Load Balancer API — Stats

Load Balancer API — Stats. 1 operations. Lead operation: Get usage statistics of a given Load Balancer. Self-contained Naftiko capability covering one Scaleway business surface.

Run with Naftiko ScalewayStats

What You Can Do

GET
Getlbstats — Get usage statistics of a given Load Balancer
/v1/lb/v1/zones/{zone}/lbs/{lb-id}/stats

MCP Tools

get-usage-statistics-given-load

Get usage statistics of a given Load Balancer

read-only idempotent

Capability Spec

load-balancer-stats.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Load Balancer API — Stats
  description: 'Load Balancer API — Stats. 1 operations. Lead operation: Get usage statistics of a given Load Balancer. Self-contained
    Naftiko capability covering one Scaleway business surface.'
  tags:
  - Scaleway
  - Stats
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    SCALEWAY_API_KEY: SCALEWAY_API_KEY
capability:
  consumes:
  - type: http
    namespace: load-balancer-stats
    baseUri: https://api.scaleway.com
    description: Load Balancer API — Stats business capability. Self-contained, no shared references.
    resources:
    - name: lb-v1-zones-zone-lbs-lb_id-stats
      path: /lb/v1/zones/{zone}/lbs/{lb_id}/stats
      operations:
      - name: getlbstats
        method: GET
        description: Get usage statistics of a given Load Balancer
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: zone
          in: path
          type: string
          description: The zone you want to target
          required: true
        - name: lb_id
          in: path
          type: string
          description: Load Balancer ID.
          required: true
        - name: backend_id
          in: query
          type: string
          description: ID of the backend.
    authentication:
      type: apikey
      key: X-Auth-Token
      value: '{{env.SCALEWAY_API_KEY}}'
      placement: header
  exposes:
  - type: rest
    namespace: load-balancer-stats-rest
    port: 8080
    description: REST adapter for Load Balancer API — Stats. One Spectral-compliant resource per consumed operation, prefixed
      with /v1.
    resources:
    - path: /v1/lb/v1/zones/{zone}/lbs/{lb-id}/stats
      name: lb-v1-zones-zone-lbs-lb-id-stats
      description: REST surface for lb-v1-zones-zone-lbs-lb_id-stats.
      operations:
      - method: GET
        name: getlbstats
        description: Get usage statistics of a given Load Balancer
        call: load-balancer-stats.getlbstats
        with:
          zone: rest.zone
          lb_id: rest.lb_id
          backend_id: rest.backend_id
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: load-balancer-stats-mcp
    port: 9090
    transport: http
    description: MCP adapter for Load Balancer API — Stats. One tool per consumed operation, routed inline through this capability's
      consumes block.
    tools:
    - name: get-usage-statistics-given-load
      description: Get usage statistics of a given Load Balancer
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: load-balancer-stats.getlbstats
      with:
        zone: tools.zone
        lb_id: tools.lb_id
        backend_id: tools.backend_id
      outputParameters:
      - type: object
        mapping: $.