Skip to main content

Schedule Tools

Week-level scheduling operations: copy a week's shifts to another week, save and load schedule templates, and get insights into hours, booking demand, and understaffing gaps.

Required scope: staff:read for read operations, staff:write for write operations.

Tools Overviewโ€‹

ToolDescriptionRead-only?
list_schedule_templatesList saved schedule templatesYes
get_schedule_insightsGet scheduled hours and coverage gaps for a weekYes
get_booking_demandGet per-day rental and experience booking countsYes
get_understaffing_warningsFlag days with bookings but no staff scheduledYes
copy_schedule_weekCopy every shift from one week to anotherNo
save_schedule_templateSave a week's shifts as a named templateNo
load_schedule_templateApply a saved template to a target weekNo
delete_schedule_templateDelete a saved schedule templateNo

list_schedule_templatesโ€‹

List all saved schedule templates for the supplier.

Parametersโ€‹

None.

Response Fieldsโ€‹

Returns a templates array. Each entry includes id, name, shift_count, and created_at.


get_schedule_insightsโ€‹

Get scheduled hours, staff count, per-staff hour breakdown, and coverage gaps for a week.

Parametersโ€‹

NameTypeRequiredDescription
week_startstringNoAny date in the target week (YYYY-MM-DD). Defaults to the current week.

Response Fieldsโ€‹

Returns total scheduled hours, number of staff scheduled, a per-staff breakdown of hours, and a list of days with identified coverage gaps.


get_booking_demandโ€‹

Get per-day rental booking counts and experience session participant totals for a date range. Use alongside get_schedule_insights to correlate demand with staffing levels.

Parametersโ€‹

NameTypeRequiredDescription
start_datestringYesRange start (YYYY-MM-DD)
end_datestringYesRange end (YYYY-MM-DD)

Response Fieldsโ€‹

Returns a demand array keyed by date. Each entry includes rental booking count and experience participant totals for that day.


get_understaffing_warningsโ€‹

Flag days that have bookings but no staff scheduled, and experience sessions that are missing an assigned guide.

Parametersโ€‹

NameTypeRequiredDescription
start_datestringYesRange start (YYYY-MM-DD)
end_datestringYesRange end (YYYY-MM-DD)

Response Fieldsโ€‹

Returns a warnings array. Each warning includes the date, the type of issue (no_staff_scheduled or guide_missing), and relevant context such as the experience name or booking count.


copy_schedule_weekโ€‹

Copy every shift from a source week to a target week. Both week_start values should be a Monday.

Parametersโ€‹

NameTypeRequiredDescription
source_week_startstringYesSource week Monday (YYYY-MM-DD)
target_week_startstringYesTarget week Monday (YYYY-MM-DD)
include_staffbooleanNoDefault true โ€” copy staff assignments too. Set to false to copy shift times only (open shifts).
overwritebooleanNoDefault false โ€” when true, deletes existing target-week shifts before copying.

Response Fieldsโ€‹

Returns success and a summary of the copy operation including the number of shifts created.


save_schedule_templateโ€‹

Snapshot a week's shifts as a named reusable template. Templates can be loaded onto any future week with load_schedule_template.

Parametersโ€‹

NameTypeRequiredDescription
week_startstringYesSource week Monday (YYYY-MM-DD)
namestringYesTemplate name

Response Fieldsโ€‹

Returns success and a template object with id and name.


load_schedule_templateโ€‹

Apply a saved schedule template to a target week, creating shifts from the template's saved pattern.

Parametersโ€‹

NameTypeRequiredDescription
template_idintegerYesTemplate ID to load
target_week_startstringYesTarget week Monday (YYYY-MM-DD)
overwritebooleanNoDefault false โ€” when true, deletes existing target-week shifts before applying the template.

Response Fieldsโ€‹

Returns success and a summary of shifts created.


delete_schedule_templateโ€‹

Delete a saved schedule template. This is destructive and requires explicit user confirmation.

Parametersโ€‹

NameTypeRequiredDescription
template_idintegerYesTemplate ID to delete
user_confirmedbooleanYesMust be true โ€” user must confirm deletion

Response Fieldsโ€‹

Returns success: true on deletion, or an error if the template was not found.