Waste Management · Capability

Waste Management Customer API — Customers

Waste Management Customer API — Customers. 2 operations. Lead operation: Get Customer Overview. Self-contained Naftiko capability covering one Waste Management business surface.

Run with Naftiko Waste ManagementCustomers

What You Can Do

GET
Getcustomeroverview — Get Customer Overview
/v1/customers
GET
Getbalance — Get Balance
/v1/customers/{customerid}/balance

MCP Tools

get-customer-overview

Get Customer Overview

read-only idempotent
get-balance

Get Balance

read-only idempotent

Capability Spec

customer-customers.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Waste Management Customer API — Customers
  description: 'Waste Management Customer API — Customers. 2 operations. Lead operation: Get Customer Overview. Self-contained
    Naftiko capability covering one Waste Management business surface.'
  tags:
  - Waste Management
  - Customers
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    WASTE_MANAGEMENT_API_KEY: WASTE_MANAGEMENT_API_KEY
capability:
  consumes:
  - type: http
    namespace: customer-customers
    baseUri: https://api.wm.com/v1
    description: Waste Management Customer API — Customers business capability. Self-contained, no shared references.
    resources:
    - name: customers
      path: /customers
      operations:
      - name: getcustomeroverview
        method: GET
        description: Get Customer Overview
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: customers-customerId-balance
      path: /customers/{customerId}/balance
      operations:
      - name: getbalance
        method: GET
        description: Get Balance
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    authentication:
      type: bearer
      token: '{{env.WASTE_MANAGEMENT_API_KEY}}'
  exposes:
  - type: rest
    namespace: customer-customers-rest
    port: 8080
    description: REST adapter for Waste Management Customer API — Customers. One Spectral-compliant resource per consumed
      operation, prefixed with /v1.
    resources:
    - path: /v1/customers
      name: customers
      description: REST surface for customers.
      operations:
      - method: GET
        name: getcustomeroverview
        description: Get Customer Overview
        call: customer-customers.getcustomeroverview
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/customers/{customerid}/balance
      name: customers-customerid-balance
      description: REST surface for customers-customerId-balance.
      operations:
      - method: GET
        name: getbalance
        description: Get Balance
        call: customer-customers.getbalance
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: customer-customers-mcp
    port: 9090
    transport: http
    description: MCP adapter for Waste Management Customer API — Customers. One tool per consumed operation, routed inline
      through this capability's consumes block.
    tools:
    - name: get-customer-overview
      description: Get Customer Overview
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: customer-customers.getcustomeroverview
      outputParameters:
      - type: object
        mapping: $.
    - name: get-balance
      description: Get Balance
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: customer-customers.getbalance
      outputParameters:
      - type: object
        mapping: $.