RotaCloud MCP by usefulapi

v1.36.1
io.usefulapi/rotacloud Checked 1 day ago Published 7 hours ago

Read RotaCloud shifts, attendance, leave, availability and payroll; create shifts and handle leave.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

rotacloud_list_accounts List accounts

The RotaCloud account(s) this API key belongs to: name, plan, time zone, employee count. GET /accounts.

ParameterTypeDescription
limitintegerResults per page, 1-500 (RotaCloud may cap it lower; the reply's total and next_offset show what is left).
offsetintegerIndex of the first result; pass the previous reply's next_offset.

rotacloud_list_users List users

List employees (users) with their level, roles, locations, contact details and pay settings. Use it to map user ids in shifts, leave and attendance to names. GET /users.

ParameterTypeDescription
idsarrayOnly these user ids.
include_deletedbooleanInclude deleted (former) users.
limitintegerResults per page, 1-500 (default 25; RotaCloud may cap it lower; the reply's total and next_offset show what is left).
locationsarrayOnly users in these location ids.
offsetintegerIndex of the first result; pass the previous reply's next_offset.

rotacloud_get_user Get user

One employee by id. GET /users/{id}.

ParameterTypeDescription
user_id *integerRotaCloud user id.

rotacloud_list_locations List locations

List locations (sites/branches) with address, time zone and managers. GET /locations.

ParameterTypeDescription
idsarrayOnly these location ids.
include_deletedbooleanInclude deleted locations.
limitintegerResults per page, 1-500 (RotaCloud may cap it lower; the reply's total and next_offset show what is left).
offsetintegerIndex of the first result; pass the previous reply's next_offset.

rotacloud_list_roles List roles

List job roles (positions) with colour, default break and pay rate. GET /roles.

ParameterTypeDescription
idsarrayOnly these role ids.
include_deletedbooleanInclude deleted roles.
limitintegerResults per page, 1-500 (RotaCloud may cap it lower; the reply's total and next_offset show what is left).
offsetintegerIndex of the first result; pass the previous reply's next_offset.

rotacloud_list_shifts List shifts

List rota shifts in a time range: start/end times (Unix seconds), break, assigned user (null = open shift), location, role, notes, published and acknowledged state. Filter by users, locations, roles, open or published. GET /shifts.

ParameterTypeDescription
end *Unix timestamp (seconds), an ISO 8601 date (2026-10-12 = 00:00 UTC) or an ISO 8601 date-time with a time zone (2026-10-12T09:00:00+01:00 or ...Z).
start *Unix timestamp (seconds), an ISO 8601 date (2026-10-12 = 00:00 UTC) or an ISO 8601 date-time with a time zone (2026-10-12T09:00:00+01:00 or ...Z).
include_deletedbooleanInclude deleted shifts.
limitintegerResults per page, 1-500 (default 25; RotaCloud may cap it lower; the reply's total and next_offset show what is left).
locationsarrayOnly shifts at these location ids.
offsetintegerIndex of the first result; pass the previous reply's next_offset.
openbooleantrue = only open (unassigned) shifts, false = only assigned shifts.
publishedbooleantrue = only published shifts, false = only unpublished (draft) shifts.
rolesarrayOnly shifts with these role ids.
usersarrayOnly shifts of these user ids (add 0 to include open shifts).

rotacloud_get_shift Get shift

One shift by id. GET /shifts/{id}.

ParameterTypeDescription
shift_id *integerRotaCloud shift id.

rotacloud_list_swap_requests List shift swap requests

List shift swap requests with their status, the shifts and the users involved. GET /swap_requests.

ParameterTypeDescription
include_deletedbooleanInclude deleted swap requests.
limitintegerResults per page, 1-500 (RotaCloud may cap it lower; the reply's total and next_offset show what is left).
offsetintegerIndex of the first result; pass the previous reply's next_offset.

rotacloud_list_day_notes List day notes

List day notes (notices pinned to rota dates, e.g. events or deliveries), optionally for one location. GET /day_notes.

ParameterTypeDescription
endstringLast date (yyyy-mm-dd).
limitintegerResults per page, 1-500 (RotaCloud may cap it lower; the reply's total and next_offset show what is left).
locationintegerOnly notes for this location id.
offsetintegerIndex of the first result; pass the previous reply's next_offset.
startstringFirst date (yyyy-mm-dd).

rotacloud_list_attendance List attendance records

List time & attendance records (clock-in/out times, breaks, minutes late, hours, approval state) in a time range. GET /attendance.

ParameterTypeDescription
end *Unix timestamp (seconds), an ISO 8601 date (2026-10-12 = 00:00 UTC) or an ISO 8601 date-time with a time zone (2026-10-12T09:00:00+01:00 or ...Z).
start *Unix timestamp (seconds), an ISO 8601 date (2026-10-12 = 00:00 UTC) or an ISO 8601 date-time with a time zone (2026-10-12T09:00:00+01:00 or ...Z).
approvedbooleantrue = only approved records, false = only unapproved.
include_deletedbooleanInclude deleted records.
limitintegerResults per page, 1-500 (default 25; RotaCloud may cap it lower; the reply's total and next_offset show what is left).
locationsarrayOnly these location ids.
offsetintegerIndex of the first result; pass the previous reply's next_offset.
rolesarrayOnly these role ids.
usersarrayOnly these user ids.

rotacloud_list_clocked_in List clocked-in users

Who is clocked in right now: user, location, role, clock-in time, minutes late and break state. GET /users_clocked_in.

ParameterTypeDescription
limitintegerResults per page, 1-500 (RotaCloud may cap it lower; the reply's total and next_offset show what is left).
offsetintegerIndex of the first result; pass the previous reply's next_offset.

rotacloud_list_leave List leave

List booked leave (holiday, sickness, etc.) with type, user, dates, hours and status. Filter by date range or leave year, users and leave types; pending/denied/expired requests are excluded unless asked for. GET /leave.

ParameterTypeDescription
endstringLast date (yyyy-mm-dd).
include_deletedbooleanInclude deleted leave.
include_deniedbooleanInclude denied leave requests.
include_expiredbooleanInclude expired leave requests.
include_requestedbooleanInclude pending leave requests.
limitintegerResults per page, 1-500 (default 25; RotaCloud may cap it lower; the reply's total and next_offset show what is left).
offsetintegerIndex of the first result; pass the previous reply's next_offset.
startstringFirst date (yyyy-mm-dd).
typesarrayOnly these leave type ids (see rotacloud_list_leave_types).
usersarrayOnly these user ids.
yearintegerLeave year instead of a date range.

rotacloud_list_leave_requests List leave requests

List leave requests awaiting a decision (and past ones): user, leave type, dates, half days, the employee's message. GET /leave_requests.

ParameterTypeDescription
include_deletedbooleanInclude deleted requests.
limitintegerResults per page, 1-500 (RotaCloud may cap it lower; the reply's total and next_offset show what is left).
offsetintegerIndex of the first result; pass the previous reply's next_offset.

rotacloud_get_leave_request Get leave request

One leave request by id, with the per-day breakdown. GET /leave_requests/{id}.

ParameterTypeDescription
request_id *integerLeave request id.

rotacloud_list_leave_types List leave types

List leave types (Holiday, Sickness, Unpaid, ...) with id, short name and whether employees can request them. GET /leave_types.

ParameterTypeDescription
limitintegerResults per page, 1-500 (RotaCloud may cap it lower; the reply's total and next_offset show what is left).
offsetintegerIndex of the first result; pass the previous reply's next_offset.

rotacloud_list_holiday_allowances List holiday allowances

Every employee's holiday allowance for a leave year (default and custom allowance, unit, carried over). GET /holiday_allowances/{year}.

ParameterTypeDescription
year *integerLeave year, e.g. 2026.
limitintegerResults per page, 1-500 (RotaCloud may cap it lower; the reply's total and next_offset show what is left).
offsetintegerIndex of the first result; pass the previous reply's next_offset.

rotacloud_get_availability Get availability

Employees' availability per date in a range (available / unavailable times). GET /availability.

ParameterTypeDescription
end *stringLast date (yyyy-mm-dd).
start *stringFirst date (yyyy-mm-dd).
limitintegerResults per page, 1-500 (RotaCloud may cap it lower; the reply's total and next_offset show what is left).
offsetintegerIndex of the first result; pass the previous reply's next_offset.
usersarrayOnly these user ids.

rotacloud_list_days_off List days off

Employees' scheduled days off per date in a range. GET /days_off.

ParameterTypeDescription
end *stringLast date (yyyy-mm-dd).
start *stringFirst date (yyyy-mm-dd).
limitintegerResults per page, 1-500 (RotaCloud may cap it lower; the reply's total and next_offset show what is left).
offsetintegerIndex of the first result; pass the previous reply's next_offset.
usersarrayOnly these user ids.

rotacloud_list_pay_periods List pay periods

List pay periods overlapping a date range (id, name, start/end date, locked). GET /pay_periods.

ParameterTypeDescription
end *stringLast date (yyyy-mm-dd).
start *stringFirst date (yyyy-mm-dd).
limitintegerResults per page, 1-500 (RotaCloud may cap it lower; the reply's total and next_offset show what is left).
offsetintegerIndex of the first result; pass the previous reply's next_offset.

rotacloud_get_payroll Get payroll for a pay period

Payroll for one pay period, per employee: pay settings, attendance worked, paid/unpaid leave, overtime and pay totals. Contains pay data. Pages of employees: pass the reply's next_offset as offset for the next page. For every attendance record of one employee use rotacloud_list_attendance. GET /pay_periods/{id}/payroll.

ParameterTypeDescription
pay_period_id *integerPay period id (from rotacloud_list_pay_periods).
limitintegerMost employees per page, 1-500 (default 25); a page also stops at about 45,000 characters. The reply's total and next_offset show what is left.
offsetintegerIndex of the first result; pass the previous reply's next_offset.

rotacloud_create_shift Create shift

WRITE: create a shift on the rota. Leave user_id out for an open shift. Unpublished by default (employees see it once published). POST /shifts.

ParameterTypeDescription
end_time *Unix timestamp (seconds), an ISO 8601 date (2026-10-12 = 00:00 UTC) or an ISO 8601 date-time with a time zone (2026-10-12T09:00:00+01:00 or ...Z).
location_id *integerLocation id.
start_time *Unix timestamp (seconds), an ISO 8601 date (2026-10-12 = 00:00 UTC) or an ISO 8601 date-time with a time zone (2026-10-12T09:00:00+01:00 or ...Z).
minutes_breakintegerUnpaid break in minutes.
notesstringShift notes shown to the employee.
publishedbooleanPublish immediately (default false).
role_idintegerRole id.
user_idintegerAssigned user id; omit for an open shift.

rotacloud_update_shift Update shift

WRITE: change a shift's times, assignee, location, role, break, notes or published state. Only the fields you pass change. POST /shifts/{id}.

ParameterTypeDescription
shift_id *integerShift id.
end_timeUnix timestamp (seconds), an ISO 8601 date (2026-10-12 = 00:00 UTC) or an ISO 8601 date-time with a time zone (2026-10-12T09:00:00+01:00 or ...Z).
location_idintegerNew location id.
minutes_breakintegerUnpaid break in minutes.
notesstringShift notes.
publishedbooleanPublished state.
role_idintegerNew role id.
start_timeUnix timestamp (seconds), an ISO 8601 date (2026-10-12 = 00:00 UTC) or an ISO 8601 date-time with a time zone (2026-10-12T09:00:00+01:00 or ...Z).
user_idNew assignee; null makes it an open shift.

rotacloud_publish_shifts Publish shifts

WRITE: publish shifts so the assigned employees see them (and get notified). POST /shifts_published.

ParameterTypeDescription
shift_ids *arrayIds of the shifts to publish.

rotacloud_find_shifts Find shifts

Find shifts in a time range by open/assigned state, published state, location, role and ELAPSED duration (end − start; the break is not subtracted). It reads page after page, so it is the way to select shifts for a bulk change such as rotacloud_delete_shifts: e.g. open shifts shorter than 3 hours = open: true, shorter_than_minutes: 180 (a shift of exactly 180 minutes does not match). Deleted shifts never match. Returns up to max_results matches (shift_ids plus a summary each: UTC times, elapsed_minutes, user, location, role, published). complete: true = the whole range was read. Otherwise pa…

ParameterTypeDescription
end *Unix timestamp (seconds), an ISO 8601 date (2026-10-12 = 00:00 UTC) or an ISO 8601 date-time with a time zone (2026-10-12T09:00:00+01:00 or ...Z).
start *Unix timestamp (seconds), an ISO 8601 date (2026-10-12 = 00:00 UTC) or an ISO 8601 date-time with a time zone (2026-10-12T09:00:00+01:00 or ...Z).
at_least_minutesnumberOnly shifts whose elapsed duration is this many minutes or more.
locationsarrayOnly shifts at these location ids.
max_resultsintegerMost matches to return (1-100, default 100; rotacloud_delete_shifts takes up to 100 ids).
offsetintegerPosition in the range to start reading at; pass the previous reply's next_offset (0 again after a delete).
openbooleantrue = only open (unassigned) shifts, false = only assigned shifts, omit = both.
publishedbooleantrue = only published shifts, false = only unpublished (draft) shifts.
rolesarrayOnly shifts with these role ids.
shorter_than_minutesnumberOnly shifts whose elapsed duration is strictly less than this many minutes.
usersarrayOnly shifts of these user ids (add 0 to include open shifts).

rotacloud_delete_shifts Delete shifts

WRITE — deletes shifts from the rota (assigned employees lose the shift). Delete 1-100 shifts by id; select them first with rotacloud_find_shifts. Without confirm it only previews: it reads each shift and deletes nothing. Show the preview to the user, then call again with confirm: true. Guards re-check each shift right before its delete and skip it if it no longer qualifies: require_open (skip assigned shifts), require_shorter_than_minutes (skip shifts whose elapsed duration is not strictly less). After each delete the shift is read again to verify it is gone. DELETE /shifts/{id}.

ParameterTypeDescription
shift_ids *arrayIds of the shifts to delete (1-100).
confirmbooleantrue = delete now. Omit or false = preview only (nothing is deleted).
require_openbooleantrue = delete a shift only if it is still open (unassigned) at delete time.
require_shorter_than_minutesnumberDelete a shift only if its elapsed duration (end − start) is still strictly less than this many minutes.

rotacloud_create_leave_request Request leave

WRITE: submit a leave request on behalf of an employee (sent as that user, for a manager to approve). POST /leave_requests with the User header.

ParameterTypeDescription
end_date *stringLast day (yyyy-mm-dd).
leave_type_id *integerLeave type id (see rotacloud_list_leave_types; must be requestable).
start_date *stringFirst day (yyyy-mm-dd).
user_id *integerThe employee requesting leave (the request is made as this user).
end_am_pmstring'am' ends at midday (half day); default 'pm'.
messagestringMessage from the employee to the manager.
start_am_pmstring'pm' starts at midday (half day); default 'am'.

rotacloud_approve_leave_request Approve leave request

WRITE: approve a pending leave request (it becomes booked leave and the employee is notified). POST /leave_requests/{id}/approve.

ParameterTypeDescription
request_id *integerLeave request id.
admin_messagestringMessage to the employee.

rotacloud_deny_leave_request Deny leave request

WRITE: deny a pending leave request (the employee is notified). POST /leave_requests/{id}/deny.

ParameterTypeDescription
request_id *integerLeave request id.
admin_messagestringReason shown to the employee.

rotacloud_create_location Create location

WRITE: create a location (site). Ask the user before. POST /locations.

ParameterTypeDescription
name *stringLocation name.
addressstringStreet address.
locationobjectMap point and radius that check-ins are matched against (RotaCloud's `location`).

rotacloud_create_role Create role

WRITE: create a job role (position). Ask the user before. POST /roles.

ParameterTypeDescription
name *stringRole name.
colourstringHex colour without #, e.g. f79986.
default_break_minutesintegerDefault unpaid break in minutes.

rotacloud_create_user Create user

WRITE: create an employee. Ask the user before. send_invite emails them an invite: set it and confirm_invite true only when the user agrees. POST /users.

ParameterTypeDescription
first_name *stringFirst name.
last_name *stringLast name.
confirm_invitebooleanMust be true together with send_invite: the user agreed to send the invite.
default_role_idintegerDefault role id; must be one of role_ids.
emailstringEmail address; required when send_invite is true.
levelstringAccess level, e.g. admin.
location_idsarrayLocation ids the employee works at.
role_idsarrayRole ids the employee may work in.
send_invitebooleanEmail an invite to the employee (default false).
start_datestringStart date (yyyy-mm-dd).
weekly_hoursnumberContracted hours per week.

rotacloud_assign_user Assign user to locations and roles

WRITE: add locations and/or roles to an employee. It sends the full lists with the ones already assigned, and never asks RotaCloud to remove one. Reads the user, then writes. default_role_id must be one of the user's roles after the change. Run one call per user at a time. Ask the user before. GET and POST /users/{id}.

ParameterTypeDescription
user_id *integerRotaCloud user id.
default_role_idintegerNew default role id; must be one of the user's roles after the change.
location_idsarrayLocation ids to add.
role_idsarrayRole ids to add.