Unity · Capability

Unity Economy API — Inventory

Unity Economy API — Inventory. 1 operations. Lead operation: Get Player Inventory. Self-contained Naftiko capability covering one Unity business surface.

Run with Naftiko UnityInventory

What You Can Do

GET
Getplayerinventory — Get Player Inventory
/v1/v2/projects/{projectid}/environments/{environmentid}/players/{playerid}/inventory

MCP Tools

get-player-inventory

Get Player Inventory

read-only idempotent

Capability Spec

economy-inventory.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Unity Economy API — Inventory
  description: 'Unity Economy API — Inventory. 1 operations. Lead operation: Get Player Inventory. Self-contained Naftiko
    capability covering one Unity business surface.'
  tags:
  - Unity
  - Inventory
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    UNITY_API_KEY: UNITY_API_KEY
capability:
  consumes:
  - type: http
    namespace: economy-inventory
    baseUri: https://economy.services.api.unity.com
    description: Unity Economy API — Inventory business capability. Self-contained, no shared references.
    resources:
    - name: v2-projects-projectId-environments-environmentId-players-playerId-inventory
      path: /v2/projects/{projectId}/environments/{environmentId}/players/{playerId}/inventory
      operations:
      - name: getplayerinventory
        method: GET
        description: Get Player Inventory
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: projectId
          in: path
          type: string
          required: true
        - name: environmentId
          in: path
          type: string
          required: true
        - name: playerId
          in: path
          type: string
          required: true
        - name: playersItemIds
          in: query
          type: array
        - name: itemIds
          in: query
          type: array
    authentication:
      type: bearer
      token: '{{env.UNITY_API_KEY}}'
  exposes:
  - type: rest
    namespace: economy-inventory-rest
    port: 8080
    description: REST adapter for Unity Economy API — Inventory. One Spectral-compliant resource per consumed operation, prefixed
      with /v1.
    resources:
    - path: /v1/v2/projects/{projectid}/environments/{environmentid}/players/{playerid}/inventory
      name: v2-projects-projectid-environments-environmentid-players-playerid-inventory
      description: REST surface for v2-projects-projectId-environments-environmentId-players-playerId-inventory.
      operations:
      - method: GET
        name: getplayerinventory
        description: Get Player Inventory
        call: economy-inventory.getplayerinventory
        with:
          projectId: rest.projectId
          environmentId: rest.environmentId
          playerId: rest.playerId
          playersItemIds: rest.playersItemIds
          itemIds: rest.itemIds
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: economy-inventory-mcp
    port: 9090
    transport: http
    description: MCP adapter for Unity Economy API — Inventory. One tool per consumed operation, routed inline through this
      capability's consumes block.
    tools:
    - name: get-player-inventory
      description: Get Player Inventory
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: economy-inventory.getplayerinventory
      with:
        projectId: tools.projectId
        environmentId: tools.environmentId
        playerId: tools.playerId
        playersItemIds: tools.playersItemIds
        itemIds: tools.itemIds
      outputParameters:
      - type: object
        mapping: $.