RotaCloud MCP by usefulapi
v1.36.1Read 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.
| Parameter | Type | Description |
|---|---|---|
limit | integer | Results per page, 1-500 (RotaCloud may cap it lower; the reply's total and next_offset show what is left). |
offset | integer | Index 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.
| Parameter | Type | Description |
|---|---|---|
ids | array | Only these user ids. |
include_deleted | boolean | Include deleted (former) users. |
limit | integer | Results per page, 1-500 (default 25; RotaCloud may cap it lower; the reply's total and next_offset show what is left). |
locations | array | Only users in these location ids. |
offset | integer | Index of the first result; pass the previous reply's next_offset. |
rotacloud_get_user Get user
One employee by id. GET /users/{id}.
| Parameter | Type | Description |
|---|---|---|
user_id * | integer | RotaCloud user id. |
rotacloud_list_locations List locations
List locations (sites/branches) with address, time zone and managers. GET /locations.
| Parameter | Type | Description |
|---|---|---|
ids | array | Only these location ids. |
include_deleted | boolean | Include deleted locations. |
limit | integer | Results per page, 1-500 (RotaCloud may cap it lower; the reply's total and next_offset show what is left). |
offset | integer | Index 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.
| Parameter | Type | Description |
|---|---|---|
ids | array | Only these role ids. |
include_deleted | boolean | Include deleted roles. |
limit | integer | Results per page, 1-500 (RotaCloud may cap it lower; the reply's total and next_offset show what is left). |
offset | integer | Index 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.
| Parameter | Type | Description |
|---|---|---|
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_deleted | boolean | Include deleted shifts. |
limit | integer | Results per page, 1-500 (default 25; RotaCloud may cap it lower; the reply's total and next_offset show what is left). |
locations | array | Only shifts at these location ids. |
offset | integer | Index of the first result; pass the previous reply's next_offset. |
open | boolean | true = only open (unassigned) shifts, false = only assigned shifts. |
published | boolean | true = only published shifts, false = only unpublished (draft) shifts. |
roles | array | Only shifts with these role ids. |
users | array | Only shifts of these user ids (add 0 to include open shifts). |
rotacloud_get_shift Get shift
One shift by id. GET /shifts/{id}.
| Parameter | Type | Description |
|---|---|---|
shift_id * | integer | RotaCloud 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.
| Parameter | Type | Description |
|---|---|---|
include_deleted | boolean | Include deleted swap requests. |
limit | integer | Results per page, 1-500 (RotaCloud may cap it lower; the reply's total and next_offset show what is left). |
offset | integer | Index 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.
| Parameter | Type | Description |
|---|---|---|
end | string | Last date (yyyy-mm-dd). |
limit | integer | Results per page, 1-500 (RotaCloud may cap it lower; the reply's total and next_offset show what is left). |
location | integer | Only notes for this location id. |
offset | integer | Index of the first result; pass the previous reply's next_offset. |
start | string | First 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.
| Parameter | Type | Description |
|---|---|---|
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). | |
approved | boolean | true = only approved records, false = only unapproved. |
include_deleted | boolean | Include deleted records. |
limit | integer | Results per page, 1-500 (default 25; RotaCloud may cap it lower; the reply's total and next_offset show what is left). |
locations | array | Only these location ids. |
offset | integer | Index of the first result; pass the previous reply's next_offset. |
roles | array | Only these role ids. |
users | array | Only 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.
| Parameter | Type | Description |
|---|---|---|
limit | integer | Results per page, 1-500 (RotaCloud may cap it lower; the reply's total and next_offset show what is left). |
offset | integer | Index 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.
| Parameter | Type | Description |
|---|---|---|
end | string | Last date (yyyy-mm-dd). |
include_deleted | boolean | Include deleted leave. |
include_denied | boolean | Include denied leave requests. |
include_expired | boolean | Include expired leave requests. |
include_requested | boolean | Include pending leave requests. |
limit | integer | Results per page, 1-500 (default 25; RotaCloud may cap it lower; the reply's total and next_offset show what is left). |
offset | integer | Index of the first result; pass the previous reply's next_offset. |
start | string | First date (yyyy-mm-dd). |
types | array | Only these leave type ids (see rotacloud_list_leave_types). |
users | array | Only these user ids. |
year | integer | Leave 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.
| Parameter | Type | Description |
|---|---|---|
include_deleted | boolean | Include deleted requests. |
limit | integer | Results per page, 1-500 (RotaCloud may cap it lower; the reply's total and next_offset show what is left). |
offset | integer | Index 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}.
| Parameter | Type | Description |
|---|---|---|
request_id * | integer | Leave 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.
| Parameter | Type | Description |
|---|---|---|
limit | integer | Results per page, 1-500 (RotaCloud may cap it lower; the reply's total and next_offset show what is left). |
offset | integer | Index 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}.
| Parameter | Type | Description |
|---|---|---|
year * | integer | Leave year, e.g. 2026. |
limit | integer | Results per page, 1-500 (RotaCloud may cap it lower; the reply's total and next_offset show what is left). |
offset | integer | Index 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.
| Parameter | Type | Description |
|---|---|---|
end * | string | Last date (yyyy-mm-dd). |
start * | string | First date (yyyy-mm-dd). |
limit | integer | Results per page, 1-500 (RotaCloud may cap it lower; the reply's total and next_offset show what is left). |
offset | integer | Index of the first result; pass the previous reply's next_offset. |
users | array | Only these user ids. |
rotacloud_list_days_off List days off
Employees' scheduled days off per date in a range. GET /days_off.
| Parameter | Type | Description |
|---|---|---|
end * | string | Last date (yyyy-mm-dd). |
start * | string | First date (yyyy-mm-dd). |
limit | integer | Results per page, 1-500 (RotaCloud may cap it lower; the reply's total and next_offset show what is left). |
offset | integer | Index of the first result; pass the previous reply's next_offset. |
users | array | Only 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.
| Parameter | Type | Description |
|---|---|---|
end * | string | Last date (yyyy-mm-dd). |
start * | string | First date (yyyy-mm-dd). |
limit | integer | Results per page, 1-500 (RotaCloud may cap it lower; the reply's total and next_offset show what is left). |
offset | integer | Index 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.
| Parameter | Type | Description |
|---|---|---|
pay_period_id * | integer | Pay period id (from rotacloud_list_pay_periods). |
limit | integer | Most 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. |
offset | integer | Index 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.
| Parameter | Type | Description |
|---|---|---|
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 * | integer | Location 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_break | integer | Unpaid break in minutes. |
notes | string | Shift notes shown to the employee. |
published | boolean | Publish immediately (default false). |
role_id | integer | Role id. |
user_id | integer | Assigned 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}.
| Parameter | Type | Description |
|---|---|---|
shift_id * | integer | Shift id. |
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 | integer | New location id. |
minutes_break | integer | Unpaid break in minutes. |
notes | string | Shift notes. |
published | boolean | Published state. |
role_id | integer | New role 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). | |
user_id | New 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.
| Parameter | Type | Description |
|---|---|---|
shift_ids * | array | Ids 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…
| Parameter | Type | Description |
|---|---|---|
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_minutes | number | Only shifts whose elapsed duration is this many minutes or more. |
locations | array | Only shifts at these location ids. |
max_results | integer | Most matches to return (1-100, default 100; rotacloud_delete_shifts takes up to 100 ids). |
offset | integer | Position in the range to start reading at; pass the previous reply's next_offset (0 again after a delete). |
open | boolean | true = only open (unassigned) shifts, false = only assigned shifts, omit = both. |
published | boolean | true = only published shifts, false = only unpublished (draft) shifts. |
roles | array | Only shifts with these role ids. |
shorter_than_minutes | number | Only shifts whose elapsed duration is strictly less than this many minutes. |
users | array | Only 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}.
| Parameter | Type | Description |
|---|---|---|
shift_ids * | array | Ids of the shifts to delete (1-100). |
confirm | boolean | true = delete now. Omit or false = preview only (nothing is deleted). |
require_open | boolean | true = delete a shift only if it is still open (unassigned) at delete time. |
require_shorter_than_minutes | number | Delete 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.
| Parameter | Type | Description |
|---|---|---|
end_date * | string | Last day (yyyy-mm-dd). |
leave_type_id * | integer | Leave type id (see rotacloud_list_leave_types; must be requestable). |
start_date * | string | First day (yyyy-mm-dd). |
user_id * | integer | The employee requesting leave (the request is made as this user). |
end_am_pm | string | 'am' ends at midday (half day); default 'pm'. |
message | string | Message from the employee to the manager. |
start_am_pm | string | '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.
| Parameter | Type | Description |
|---|---|---|
request_id * | integer | Leave request id. |
admin_message | string | Message 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.
| Parameter | Type | Description |
|---|---|---|
request_id * | integer | Leave request id. |
admin_message | string | Reason shown to the employee. |
rotacloud_create_location Create location
WRITE: create a location (site). Ask the user before. POST /locations.
| Parameter | Type | Description |
|---|---|---|
name * | string | Location name. |
address | string | Street address. |
location | object | Map 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.
| Parameter | Type | Description |
|---|---|---|
name * | string | Role name. |
colour | string | Hex colour without #, e.g. f79986. |
default_break_minutes | integer | Default 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.
| Parameter | Type | Description |
|---|---|---|
first_name * | string | First name. |
last_name * | string | Last name. |
confirm_invite | boolean | Must be true together with send_invite: the user agreed to send the invite. |
default_role_id | integer | Default role id; must be one of role_ids. |
email | string | Email address; required when send_invite is true. |
level | string | Access level, e.g. admin. |
location_ids | array | Location ids the employee works at. |
role_ids | array | Role ids the employee may work in. |
send_invite | boolean | Email an invite to the employee (default false). |
start_date | string | Start date (yyyy-mm-dd). |
weekly_hours | number | Contracted 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}.
| Parameter | Type | Description |
|---|---|---|
user_id * | integer | RotaCloud user id. |
default_role_id | integer | New default role id; must be one of the user's roles after the change. |
location_ids | array | Location ids to add. |
role_ids | array | Role ids to add. |