Skip to content
StampyWalletDocs
MCP and AI / Tools with an account / fermetures

fermetures

With accountWrites (confirm)

Manages the business's holidays and closing days: list them, add a holiday period, delete one, or set the days closed every week. Important for loyalty: closed days don't count in a customer's absence, so properly declared holidays stop regulars from looking "lost" and getting a win-back message when you reopen. Optionally, prevenir_clients=true with a text also prepares a notification to all customers (same rules as envoyer_message: one message per day, preview required). action=lister (default) changes nothing. To add, delete or set the days: confirmer=false returns a preview, confirmer=true saves (and sends the message if requested).

Parameters

actionenumoptional
lister: upcoming holidays and those of the last two months, and days closed every week. ajouter: a period (du, au). supprimer: a period by its id (from lister). jours_hebdo: replaces the days closed every week with jours_fermes.

Values : lister ajouter supprimer jours_hebdo

Default : "lister"

dustring (date)optional
First closed day (YYYY-MM-DD), to add.
austring (date)optional
Last closed day, included (YYYY-MM-DD). By default, the same day as du.
libellestring, ≤ 80 charactersoptional
Name of the period, to keep track ("Summer holidays").
idstringoptional
Identifier of the period to delete (from action=lister).
jours_fermesarray<enum>, ≤ 7optional
For jours_hebdo: the COMPLETE list of days closed every week (empty list = open every day).

Values : dimanche lundi mardi mercredi jeudi vendredi samedi

prevenir_clientsbooleanoptional
true: also sends a notification to all customers with texte. Counts as the message of the day.

Default : false

textestring, ≤ 180 charactersoptional
Text of the notification to customers (180 characters at most), if prevenir_clients=true.
confirmerbooleanoptional
false (default): only returns a preview of what would be done, without changing anything. true: carries it out. Always show the preview to the person and wait for their approval before calling again with true.

Default : false

Response

A text the assistant reads (content), and the same information as structured data (structuredContent). When a call is refused (a parameter to fix, plan, role), the response has isError: true and a sentence the assistant can rephrase.

Warning : this tool writes. Called with confirmer: false (the default), it only returns a preview, without changing anything. The assistant must show it to you and wait for your approval before calling again with confirmer: true.

Updated

Was this page helpful?