Publish week
publish_weekUse this when the user is ready to share a week with staff, or to share changes made since it was published, or to call a published week off (publish it with no shifts). Makes a read-only link anyone with it can open; staff see the version last published, so publish again after edits. On the Team plan email_staff emails each scheduled person their shifts the first time, and afterwards only the people whose shifts changed, with just their changes. Needs the user to be signed in. Staff are emailed only when email_staff is true.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"week_start": "<week_start>"
},
"name": "publish_week"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| week_start | Yes | The week to publish: "this", "next" or "last" (counted from today in the workplace's time zone), or any date in that week as YYYY-MM-DD. For next week pass "next". | |
| email_staff | No | Email each scheduled person who has an email address. Team plan only. | |
| workplace_id | No | Workplace id. Omit to use the first workplace. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fill | No | ||
| week | Yes | ||
| labor | Yes | ||
| links | Yes | ||
| staff | Yes | ||
| checks | Yes | ||
| notice | Yes | ||
| shifts | Yes | ||
| totals | Yes | ||
| account | Yes | ||
| coverage | Yes | ||
| requests | No | Time-off requests from staff waiting for an answer | |
| workplace | Yes | ||
| schemaVersion | Yes |