UNFI Supplier and Data API — Suppliers

UNFI Supplier and Data API — Suppliers. 2 operations. Lead operation: Get Supplier Profile. Self-contained Naftiko capability covering one United Natural Foods business surface.

Run with Naftiko United Natural FoodsSuppliers

What You Can Do

GET
Getsupplier — Get Supplier Profile
/v1/suppliers/{supplierid}
PUT
Updatesupplier — Update Supplier Profile
/v1/suppliers/{supplierid}

MCP Tools

get-supplier-profile

Get Supplier Profile

read-only idempotent
update-supplier-profile

Update Supplier Profile

idempotent

Capability Spec

unfi-supplier-suppliers.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: UNFI Supplier and Data API — Suppliers
  description: 'UNFI Supplier and Data API — Suppliers. 2 operations. Lead operation: Get Supplier Profile. Self-contained
    Naftiko capability covering one United Natural Foods business surface.'
  tags:
  - United Natural Foods
  - Suppliers
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    UNITED_NATURAL_FOODS_API_KEY: UNITED_NATURAL_FOODS_API_KEY
capability:
  consumes:
  - type: http
    namespace: unfi-supplier-suppliers
    baseUri: https://api.unfi.com/v1
    description: UNFI Supplier and Data API — Suppliers business capability. Self-contained, no shared references.
    resources:
    - name: suppliers-supplierId
      path: /suppliers/{supplierId}
      operations:
      - name: getsupplier
        method: GET
        description: Get Supplier Profile
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: supplierId
          in: path
          type: string
          description: UNFI supplier identifier
          required: true
      - name: updatesupplier
        method: PUT
        description: Update Supplier Profile
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: supplierId
          in: path
          type: string
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    authentication:
      type: apikey
      key: X-API-Key
      value: '{{env.UNITED_NATURAL_FOODS_API_KEY}}'
      placement: header
  exposes:
  - type: rest
    namespace: unfi-supplier-suppliers-rest
    port: 8080
    description: REST adapter for UNFI Supplier and Data API — Suppliers. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/suppliers/{supplierid}
      name: suppliers-supplierid
      description: REST surface for suppliers-supplierId.
      operations:
      - method: GET
        name: getsupplier
        description: Get Supplier Profile
        call: unfi-supplier-suppliers.getsupplier
        with:
          supplierId: rest.supplierId
        outputParameters:
        - type: object
          mapping: $.
      - method: PUT
        name: updatesupplier
        description: Update Supplier Profile
        call: unfi-supplier-suppliers.updatesupplier
        with:
          supplierId: rest.supplierId
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: unfi-supplier-suppliers-mcp
    port: 9090
    transport: http
    description: MCP adapter for UNFI Supplier and Data API — Suppliers. One tool per consumed operation, routed inline through
      this capability's consumes block.
    tools:
    - name: get-supplier-profile
      description: Get Supplier Profile
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: unfi-supplier-suppliers.getsupplier
      with:
        supplierId: tools.supplierId
      outputParameters:
      - type: object
        mapping: $.
    - name: update-supplier-profile
      description: Update Supplier Profile
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: unfi-supplier-suppliers.updatesupplier
      with:
        supplierId: tools.supplierId
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.