Documentation Index
Fetch the complete documentation index at: https://docs.nippy.la/llms.txt
Use this file to discover all available pages before exploring further.
Examples of what you can ask your agent
- “Create a welcome roulette: 70% keep participating, 20% 10% discount, 10% Bluetooth headphones”
- “What active roulettes do I have right now?”
- “Add a physical prize: 50 Nippy backpacks to use in roulettes”
- “Show me the full configuration of the May roulette”
- “What prize items do I have available with stock?”
Always call
list_roulette_items before proposing a roulette, to know which physical items are available with stock.Read tools
roulettes_list_roulette_items
Lists the physical prize items available for this business. Call this first before proposing any roulette.
No parameters.
Response: each item includes _id, name, available_stock, and whether it’s enabled_in_rewards.
Only items with available_stock > 0 and enabled_in_rewards = true should be used as physical prizes in a roulette.
roulettes_get_roulette
Gets the full configuration of a roulette by its _id.
Roulette ID to query.
gifts (with probabilities, typeOfGift, item_id), typeOfRoulette, timers, terms, isActive, and counters (totalSpins).
roulettes_list_roulettes
Lists the existing roulettes for this business.
No parameters.
Response includes: _id, name, isActive, typeOfRoulette, counters (totalSpins), createdAt.
Write tools — Items
roulettes_propose_item
Generates a preview of a physical prize item. Does not write to the database.
The country is inherited automatically from the business.
Item name.
Available stock quantity for prizes.
Item description.
Currency (ISO 4217 code).
Whether to track inventory for this item.
Whether the item is enabled for use as a prize in roulettes.
roulettes_create_item
Creates a new physical prize item. Same parameters as propose_item.
Response: {"_id": "...", "name": "Bluetooth Headphones", "status": "created"}
Write tools — Roulettes
roulettes_propose_roulette
Generates a preview of a roulette configuration. Does not write to the database.
Roulette name.
List of prize objects. Each gift must contain:
value(string, required): name shown on the wheelmessage(string, required): message shown when wonprobability(float, required): relative weight (e.g.80= 80% relative weight among all gifts)typeOfGift(object, required):{"name": "...", "_id": "..."}— prize type. The agent automatically looks up the available type catalog.emoji(string, optional): decorative emojiquantity(int, optional): available units. Required for physical prizesitem_id(string, optional):_idfromlist_roulette_items— only for physical prizes. Do not confuse withtypeOfGift._idguaranteedForFirstTimers(bool, optional)winInterval(int, optional)fallback(string, optional)
Win animation time (seconds).
Lose animation time (seconds).
Text shown when the user wins.
Text shown when the user loses.
Roulette terms and conditions.
Numeric ID of the roulette type. Check
nippy://roulettes/schema/gifts for valid options.Roulette type name (e.g.
"standard", "premium").Whether the roulette is activated immediately. Recommended:
false until the user confirms.Time unit for expiration:
"hours", "days". Only applies if roulette_type_id supports it.Time until the roulette expires, in
time_unit units.Maximum number of prizes a user can win in this roulette.
roulettes_create_roulette
Creates a new roulette for this business. Same parameters as propose_roulette.
Response: {"_id": "...", "name": "Welcome Roulette May 2026", "status": "created"}
Technical details (advanced)
Technical details (advanced)
Schema references for the agent:
| URI | Name | Description |
|---|---|---|
nippy://roulettes/schema/gifts | roulettes_gift_types | typeOfGift value catalog and typeOfRoulette options |
nippy://roulettes/schema/fields | roulettes_field_reference | Roulette and item document fields |
typeOfGift catalog IDs:| Type | _id |
|---|---|
| Porcentaje (Percentage) | 6342f530705c91dcbe8aba8b |
| Perder (Lose) | 634f356e33e5c76785516a2c |
| Points | 68b86722b5a6eee84f241985 |
Important notes
typeOfGift._idvalues must come from the official catalog — do not invent IDs.- The
item_idfor a physical prize goes in the gift’sitem_idfield, not intypeOfGift._id. - Always include at least one “Perder” (Lose) slot.
- The
countryfor items and roulettes is inherited automatically from the business. - Keep
is_active: falseuntil the user explicitly asks to activate the roulette.

