Unified.to · Capability

Unified.to API — inventory

Unified.to API — inventory. 6 operations. Lead operation: List All Inventories. Self-contained Naftiko capability covering one Unified To business surface.

Run with Naftiko Unified Toinventory

What You Can Do

GET
Listcommerceinventories — List All Inventories
/v1/commerce/{connection-id}/inventory
POST
Createcommerceinventory — Create an Inventory
/v1/commerce/{connection-id}/inventory
DELETE
Removecommerceinventory — Remove an Inventory
/v1/commerce/{connection-id}/inventory/{id}
GET
Getcommerceinventory — Retrieve an Inventory
/v1/commerce/{connection-id}/inventory/{id}
PATCH
Patchcommerceinventory — Update an Inventory
/v1/commerce/{connection-id}/inventory/{id}
PUT
Updatecommerceinventory — Update an Inventory
/v1/commerce/{connection-id}/inventory/{id}

MCP Tools

list-all-inventories

List All Inventories

read-only idempotent
create-inventory

Create an Inventory

remove-inventory

Remove an Inventory

idempotent
retrieve-inventory

Retrieve an Inventory

read-only idempotent
update-inventory

Update an Inventory

idempotent
update-inventory-2

Update an Inventory

idempotent

Capability Spec

full-inventory.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Unified.to  API — inventory
  description: 'Unified.to  API — inventory. 6 operations. Lead operation: List All Inventories. Self-contained Naftiko capability
    covering one Unified To business surface.'
  tags:
  - Unified To
  - inventory
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    UNIFIED_TO_API_KEY: UNIFIED_TO_API_KEY
capability:
  consumes:
  - type: http
    namespace: full-inventory
    baseUri: https://api.unified.to
    description: Unified.to  API — inventory business capability. Self-contained, no shared references.
    resources:
    - name: commerce-connection_id-inventory
      path: /commerce/{connection_id}/inventory
      operations:
      - name: listcommerceinventories
        method: GET
        description: List All Inventories
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: limit
          in: query
          type: number
        - name: offset
          in: query
          type: number
        - name: updated_gte
          in: query
          type: string
          description: Return only results whose updated date is equal or greater to this value (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ
            format)
        - name: sort
          in: query
          type: string
        - name: order
          in: query
          type: string
        - name: query
          in: query
          type: string
          description: Query string to search. eg. email address or name
        - name: item_variant_id
          in: query
          type: string
          description: The item variant ID to filter by (reference to CommerceCommerceItemvariant)
        - name: location_id
          in: query
          type: string
          description: The location ID to filter by (reference to CommerceLocation)
        - name: fields
          in: query
          type: array
          description: Fields to return
        - name: raw
          in: query
          type: string
          description: 'Raw parameters to include in the 3rd-party request. Encoded as a URL component. eg. raw parameters:
            foo=bar&zoo=bar -> raw=foo%3Dbar%26zoo%3Dbar'
        - name: connection_id
          in: path
          type: string
          description: ID of the connection
          required: true
      - name: createcommerceinventory
        method: POST
        description: Create an Inventory
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: fields
          in: query
          type: array
          description: Fields to return
        - name: raw
          in: query
          type: string
          description: 'Raw parameters to include in the 3rd-party request. Encoded as a URL component. eg. raw parameters:
            foo=bar&zoo=bar -> raw=foo%3Dbar%26zoo%3Dbar'
        - name: connection_id
          in: path
          type: string
          description: ID of the connection
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: commerce-connection_id-inventory-id
      path: /commerce/{connection_id}/inventory/{id}
      operations:
      - name: removecommerceinventory
        method: DELETE
        description: Remove an Inventory
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: connection_id
          in: path
          type: string
          description: ID of the connection
          required: true
        - name: id
          in: path
          type: string
          description: ID of the Inventory
          required: true
      - name: getcommerceinventory
        method: GET
        description: Retrieve an Inventory
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: fields
          in: query
          type: array
          description: Fields to return
        - name: raw
          in: query
          type: string
          description: 'Raw parameters to include in the 3rd-party request. Encoded as a URL component. eg. raw parameters:
            foo=bar&zoo=bar -> raw=foo%3Dbar%26zoo%3Dbar'
        - name: connection_id
          in: path
          type: string
          description: ID of the connection
          required: true
        - name: id
          in: path
          type: string
          description: ID of the Inventory
          required: true
      - name: patchcommerceinventory
        method: PATCH
        description: Update an Inventory
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: fields
          in: query
          type: array
          description: Fields to return
        - name: raw
          in: query
          type: string
          description: 'Raw parameters to include in the 3rd-party request. Encoded as a URL component. eg. raw parameters:
            foo=bar&zoo=bar -> raw=foo%3Dbar%26zoo%3Dbar'
        - name: connection_id
          in: path
          type: string
          description: ID of the connection
          required: true
        - name: id
          in: path
          type: string
          description: ID of the Inventory
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
      - name: updatecommerceinventory
        method: PUT
        description: Update an Inventory
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: fields
          in: query
          type: array
          description: Fields to return
        - name: raw
          in: query
          type: string
          description: 'Raw parameters to include in the 3rd-party request. Encoded as a URL component. eg. raw parameters:
            foo=bar&zoo=bar -> raw=foo%3Dbar%26zoo%3Dbar'
        - name: connection_id
          in: path
          type: string
          description: ID of the connection
          required: true
        - name: id
          in: path
          type: string
          description: ID of the Inventory
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    authentication:
      type: apikey
      key: authorization
      value: '{{env.UNIFIED_TO_API_KEY}}'
      placement: header
  exposes:
  - type: rest
    namespace: full-inventory-rest
    port: 8080
    description: REST adapter for Unified.to  API — inventory. One Spectral-compliant resource per consumed operation, prefixed
      with /v1.
    resources:
    - path: /v1/commerce/{connection-id}/inventory
      name: commerce-connection-id-inventory
      description: REST surface for commerce-connection_id-inventory.
      operations:
      - method: GET
        name: listcommerceinventories
        description: List All Inventories
        call: full-inventory.listcommerceinventories
        with:
          limit: rest.limit
          offset: rest.offset
          updated_gte: rest.updated_gte
          sort: rest.sort
          order: rest.order
          query: rest.query
          item_variant_id: rest.item_variant_id
          location_id: rest.location_id
          fields: rest.fields
          raw: rest.raw
          connection_id: rest.connection_id
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: createcommerceinventory
        description: Create an Inventory
        call: full-inventory.createcommerceinventory
        with:
          fields: rest.fields
          raw: rest.raw
          connection_id: rest.connection_id
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/commerce/{connection-id}/inventory/{id}
      name: commerce-connection-id-inventory-id
      description: REST surface for commerce-connection_id-inventory-id.
      operations:
      - method: DELETE
        name: removecommerceinventory
        description: Remove an Inventory
        call: full-inventory.removecommerceinventory
        with:
          connection_id: rest.connection_id
          id: rest.id
        outputParameters:
        - type: object
          mapping: $.
      - method: GET
        name: getcommerceinventory
        description: Retrieve an Inventory
        call: full-inventory.getcommerceinventory
        with:
          fields: rest.fields
          raw: rest.raw
          connection_id: rest.connection_id
          id: rest.id
        outputParameters:
        - type: object
          mapping: $.
      - method: PATCH
        name: patchcommerceinventory
        description: Update an Inventory
        call: full-inventory.patchcommerceinventory
        with:
          fields: rest.fields
          raw: rest.raw
          connection_id: rest.connection_id
          id: rest.id
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: PUT
        name: updatecommerceinventory
        description: Update an Inventory
        call: full-inventory.updatecommerceinventory
        with:
          fields: rest.fields
          raw: rest.raw
          connection_id: rest.connection_id
          id: rest.id
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: full-inventory-mcp
    port: 9090
    transport: http
    description: MCP adapter for Unified.to  API — inventory. One tool per consumed operation, routed inline through this
      capability's consumes block.
    tools:
    - name: list-all-inventories
      description: List All Inventories
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: full-inventory.listcommerceinventories
      with:
        limit: tools.limit
        offset: tools.offset
        updated_gte: tools.updated_gte
        sort: tools.sort
        order: tools.order
        query: tools.query
        item_variant_id: tools.item_variant_id
        location_id: tools.location_id
        fields: tools.fields
        raw: tools.raw
        connection_id: tools.connection_id
      outputParameters:
      - type: object
        mapping: $.
    - name: create-inventory
      description: Create an Inventory
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: full-inventory.createcommerceinventory
      with:
        fields: tools.fields
        raw: tools.raw
        connection_id: tools.connection_id
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: remove-inventory
      description: Remove an Inventory
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: full-inventory.removecommerceinventory
      with:
        connection_id: tools.connection_id
        id: tools.id
      outputParameters:
      - type: object
        mapping: $.
    - name: retrieve-inventory
      description: Retrieve an Inventory
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: full-inventory.getcommerceinventory
      with:
        fields: tools.fields
        raw: tools.raw
        connection_id: tools.connection_id
        id: tools.id
      outputParameters:
      - type: object
        mapping: $.
    - name: update-inventory
      description: Update an Inventory
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: full-inventory.patchcommerceinventory
      with:
        fields: tools.fields
        raw: tools.raw
        connection_id: tools.connection_id
        id: tools.id
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: update-inventory-2
      description: Update an Inventory
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: full-inventory.updatecommerceinventory
      with:
        fields: tools.fields
        raw: tools.raw
        connection_id: tools.connection_id
        id: tools.id
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.