# modifier_message_recurrent

> For AI agents: the complete documentation index is at [llms.txt](https://stampywallet.com/en/docs/llms.txt), and the whole documentation fits in one file: [llms-full.txt](https://stampywallet.com/en/docs/llms-full.txt). Online page: https://stampywallet.com/en/docs/mcp/tools/modifier_message_recurrent/

With account · Writes (confirm) · Growth plan.

Changes the text or the rhythm of a recurring message (id from lister_messages_recurrents). Only the fields given change; sans_fin=true removes the end. Rules: one message per day (on a day when another message already goes out, the occurrence is skipped), closed days and holidays are skipped (or moved to the next open day with si_ferme=decaler), quiet hours are respected, first send within 60 days. confirmer=false (default) returns a preview; confirmer=true carries it out, after the person's explicit approval.

## Parameters

- `id` (integer, ≥ 1, required) : The rule concerned, from lister_messages_recurrents.
- `texte` (string, ≤ 180 characters, optional) : The exact text of the notification, 180 characters at most.
- `frequence` (enum, optional) : semaine: with jours. mois: with jour_mois, or rang and jour_rang. Values : semaine, mois.
- `jours` (array<enum>, ≤ 7, optional) : For frequence=semaine: the sending days. Values : dimanche, lundi, mardi, mercredi, jeudi, vendredi, samedi.
- `jour_mois` (integer, 1…31, optional) : For frequence=mois: the day of the month (1 to 31; a 31 falls on the last day of a shorter month).
- `rang` (enum, optional) : For frequence=mois: the "premier" (first) Monday, ..., the "dernier" (last) Friday of the month (with jour_rang). Values : premier, deuxieme, troisieme, quatrieme, dernier.
- `jour_rang` (enum, optional) : The day of the week that goes with rang. Values : dimanche, lundi, mardi, mercredi, jeudi, vendredi, samedi.
- `heure` (string, optional) : The business's local time, HH:MM, between 07:00 and 21:45.
- `debut` (string (date), optional) : First possible day (YYYY-MM-DD). Today by default.
- `fin` (string (date), optional) : Last possible day, included (YYYY-MM-DD). Optional.
- `nombre` (integer, 1…366, optional) : Or: the number of messages actually sent after which the rule stops.
- `si_ferme` (enum, optional) : On a closed day or during holidays: skip it (sauter, default) or move to the next open day (decaler). Values : sauter, decaler.
- `sans_fin` (boolean, optional) : Removes the end date or the number of sends.
- `confirmer` (boolean, optional) : 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`.

## Example

Prompt : « Move my food truck message to Wednesday at 11:30. »

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "modifier_message_recurrent",
    "arguments": {
      "id": 7,
      "jours": [
        "mercredi"
      ],
      "heure": "11:30",
      "confirmer": false
    }
  }
}
```

```bash
curl https://app.stampywallet.com/mcp \
  -H "Content-Type: application/json" \
  -H "Accept: application/json, text/event-stream" \
  -H "Authorization: Bearer $STAMPY_JETON" \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"modifier_message_recurrent","arguments":{"id":7,"jours":["mercredi"],"heure":"11:30","confirmer":false}}}'
```

`$STAMPY_JETON` is the OAuth token the assistant gets when you connect your account ([see Connect](https://stampywallet.com/en/docs/mcp/connect/#connexion)). You don't have to handle it yourself.
