Waste Management · Capability

Waste Management Customer API — Contacts

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

Run with Naftiko Waste ManagementContacts

What You Can Do

GET
Listcontacts — List Contacts
/v1/customers/{customerid}/contacts
PATCH
Updatecontacts — Update Contacts
/v1/customers/{customerid}/contacts

MCP Tools

list-contacts

List Contacts

read-only idempotent
update-contacts

Update Contacts

idempotent

Capability Spec

customer-contacts.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Waste Management Customer API — Contacts
  description: 'Waste Management Customer API — Contacts. 2 operations. Lead operation: List Contacts. Self-contained Naftiko
    capability covering one Waste Management business surface.'
  tags:
  - Waste Management
  - Contacts
  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-contacts
    baseUri: https://api.wm.com/v1
    description: Waste Management Customer API — Contacts business capability. Self-contained, no shared references.
    resources:
    - name: customers-customerId-contacts
      path: /customers/{customerId}/contacts
      operations:
      - name: listcontacts
        method: GET
        description: List Contacts
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: updatecontacts
        method: PATCH
        description: Update Contacts
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    authentication:
      type: bearer
      token: '{{env.WASTE_MANAGEMENT_API_KEY}}'
  exposes:
  - type: rest
    namespace: customer-contacts-rest
    port: 8080
    description: REST adapter for Waste Management Customer API — Contacts. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/customers/{customerid}/contacts
      name: customers-customerid-contacts
      description: REST surface for customers-customerId-contacts.
      operations:
      - method: GET
        name: listcontacts
        description: List Contacts
        call: customer-contacts.listcontacts
        outputParameters:
        - type: object
          mapping: $.
      - method: PATCH
        name: updatecontacts
        description: Update Contacts
        call: customer-contacts.updatecontacts
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: customer-contacts-mcp
    port: 9090
    transport: http
    description: MCP adapter for Waste Management Customer API — Contacts. One tool per consumed operation, routed inline
      through this capability's consumes block.
    tools:
    - name: list-contacts
      description: List Contacts
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: customer-contacts.listcontacts
      outputParameters:
      - type: object
        mapping: $.
    - name: update-contacts
      description: Update Contacts
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: customer-contacts.updatecontacts
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.