save_wakeup
Create or update a scheduled wakeup. Create mode (no id): schedule a future analysis with context and a metric snapshot. Call when the merchant asks to check back later, OR proactively before a retail event or trend worth monitoring. At save time pull the relevant metrics and write context as instructions for your future self. Returns { id } — save that id to link the Claude routine. Update mode (with id): patch an existing wakeup — use this to link a Claude routine ID after creating it: save_wakeup({ id: 'abc', routineId: 'trig_...' }). The two systems work together: your wakeup holds the benchmarks and context; the Claude routine fires the session; the routine prompt includes the wakeup id so it calls get_wakeup(id) to retrieve everything it needs.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | Wakeup UUID. Omit to create; provide to update an existing wakeup (e.g. to link a routineId after creating the Claude routine). | |
| name | No | Short label (≤80 chars). Required on create. | |
| store | No | Store domain (short or full). Required on create; ignored on update. | |
| _offset | No | Pagination offset. If a response includes _pagination.hasMore=true, use _offset to fetch the next page. | |
| context | No | What to analyse when this fires and why it matters — instructions for your future self. Required on create. | |
| routineId | No | Claude remote routine ID (trig_...) to link to this wakeup. Set this in an update call after creating the routine. | |
| benchmarks | No | Current metric snapshot for before/after comparison. Be selective — only capture what's relevant to this check. | |
| triggerDate | No | YYYY-MM-DD. Required on create. |