Zovo Fair Draw

v1.0.0
io.github.theluckystrike/fair-draw Checked 4 days ago Published 28 days ago

Organize a prize draw that everyone can check.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

create_prize_draw Create prize draw

Use this when the user wants a fair random pick of winners from a group: a giveaway, door prize, raffle without tickets, classroom or team pick. Publishes a draw page with a public link where entrants add their names (or only the organizer adds them), and returns a private organizer link. Optionally adds a first list of names. Up to 500 entries, 1 to 20 winners, up to 10 backups. For free draws only: set free_entry to true to confirm nobody pays to enter; it does not handle money. Does not draw yet; use draw_winners for that.

ParameterTypeDescription
free_entry *booleanSet true to confirm nobody pays to enter and no money is pooled; this tool does not handle money.
title *stringShort title of the draw, up to 120 characters, e.g. Team lunch voucher draw.
backupsintegerNumber of backup winners drawn in order after the winners, 0 to 10 (default 0). Example: 2.
namesarrayEntrant display names, up to 500, each up to 40 characters, one person per item, e.g. ["Ana", "Ben K.", "Chloe"]. First names or nicknames only.
notestringOptional short note shown on the page, up to 400 characters, e.g. Draw on Friday at the team call.
prizestringWhat the winners get, up to 200 characters, e.g. One 50-minute massage voucher.
public_entrybooleantrue (default) = people add their own name on the public page; false = only the organizer adds names.
winnersintegerNumber of winners, 1 to 20 (default 1). Example: 2.

add_draw_entries Add names to prize draw

Use this when the organizer wants to add entrant names to a draw made with create_prize_draw, before the winners are drawn. Takes the private organizer link and a list of up to 100 names per call (send more in further calls). Duplicate names (ignoring case) are skipped and reported. Does not draw; does not remove names.

ParameterTypeDescription
manage_url *stringThe private organizer link of the draw, e.g. https://fair-draw.zovo.one/m/AbC123.../XyZ789... (contains /m/).
names *arrayEntrant display names to add, up to 100 per call (send more in further calls), each up to 40 characters, one person per item, e.g. ["Ana", "Ben K.", "Chloe"]. First names or nicknames only.

draw_winners Draw prize winners

Use this when the organizer is ready to pick the winners of a draw made with create_prize_draw. Takes the private organizer link. Closes entries, picks the winners and backups with the published method, and reveals the seed on the public page so anyone can verify. The result is final: running it again returns the same winners. Needs at least one entry. Does not add or remove names and does not redraw.

ParameterTypeDescription
manage_url *stringThe private organizer link of the draw, e.g. https://fair-draw.zovo.one/m/AbC123.../XyZ789... (contains /m/).

show_draw_results Show prize draw

Use this when the user wants the state of a draw made with create_prize_draw: number of entries, the names, the commitment, and after the draw the winners, backups and proof values. Takes the private organizer link. Does not change the draw.

ParameterTypeDescription
manage_url *stringThe private organizer link of the draw, e.g. https://fair-draw.zovo.one/m/AbC123.../XyZ789... (contains /m/).