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_inventory_grant_item | Grant an item directly to a user (bypasses purchase) |
amba_inventory_revoke_item | Revoke an item — the support / correction inverse of grant |
amba_users_get_inventory | View a user's inventory |
Example: Grant starter items
Support & moderation: revoking an item
Granting is additive; amba_inventory_revoke_item is the inverse — use it to claw back a wrongly-granted item or fix a quantity. It decrements the held quantity (default 1) and removes the holding entirely when it reaches zero. Revoking more than the user holds returns INSUFFICIENT_QUANTITY; revoking an item they don't hold returns a not-found error. No partial revoke — the request either fully succeeds or fully fails.