Player Inventory
Track owned items and quantities per user with grant and consume operations.
The inventory system tracks what items each user owns, including quantities for consumable items.
Client API reference
| Method | Path | Description |
|---|---|---|
GET | /client/inventory | Get current user's inventory |
POST | /client/inventory/:id/consume | Use a consumable item |
Get inventory
MCP tools
| Tool | Description |
|---|---|
amba_grant_item | Grant an item directly to a user (bypasses purchase) |
amba_get_user_inventory | View a user's inventory |
Example: Grant starter items
Database tables
| Table | Purpose |
|---|---|
user_inventory | Per-user item ownership with quantities |
purchase_history | Full purchase and grant audit trail |