RotaCloud MCP by usefulapi is an MCP server published by io.usefulapi, hosted at rotacloud.usefulapi.io. When last checked on 2026-11-22 it was working: it answers and lists its tools. It declares 28 tools, including rotacloud_list_accounts, rotacloud_list_users, rotacloud_get_user, rotacloud_list_locations, rotacloud_list_roles.
Read RotaCloud shifts, attendance, leave, availability and payroll; create shifts and handle leave.
4,406 connections through 5 shared values. Tap any node.
Squares are this server's values; dots are other servers sharing them. A shared address or publisher is a lead, not proof of a common operator.
Inferred from the host name and headers: what a server runs on, not who runs it.
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. |
{
"name": "rotacloud_list_accounts",
"title": "List accounts",
"description": "The RotaCloud account(s) this API key belongs to: name, plan, time zone, employee count. GET /accounts.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"limit": {
"type": "integer",
"maximum": 500,
"description": "Results per page, 1-500 (RotaCloud may cap it lower; the reply's total and next_offset show what is left).",
"exclusiveMinimum": 0
},
"offset": {
"type": "integer",
"maximum": 1000000,
"minimum": 0,
"description": "Index of the first result; pass the previous reply's next_offset."
}
}
},
"annotations": {
"title": "List accounts",
"readOnlyHint": true
}
}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. |
| 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. |
| locations | array | Only users in these location ids. |
| include_deleted | boolean | Include deleted (former) users. |
{
"name": "rotacloud_list_users",
"title": "List users",
"description": "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.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"ids": {
"type": "array",
"items": {
"type": "integer",
"maximum": 9007199254740991,
"exclusiveMinimum": 0
},
"description": "Only these user ids."
},
"limit": {
"type": "integer",
"maximum": 500,
"description": "Results per page, 1-500 (RotaCloud may cap it lower; the reply's total and next_offset show what is left).",
"exclusiveMinimum": 0
},
"offset": {
"type": "integer",
"maximum": 1000000,
"minimum": 0,
"description": "Index of the first result; pass the previous reply's next_offset."
},
"locations": {
"type": "array",
"items": {
"type": "integer",
"maximum": 9007199254740991,
"exclusiveMinimum": 0
},
"description": "Only users in these location ids."
},
"include_deleted": {
"type": "boolean",
"description": "Include deleted (former) users."
}
}
},
"annotations": {
"title": "List users",
"readOnlyHint": true
}
}One employee by id. GET /users/{id}.
| Parameter | Type | Description |
|---|---|---|
| user_id * | integer | RotaCloud user id. |
{
"name": "rotacloud_get_user",
"title": "Get user",
"description": "One employee by id. GET /users/{id}.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"user_id"
],
"properties": {
"user_id": {
"type": "integer",
"maximum": 9007199254740991,
"description": "RotaCloud user id.",
"exclusiveMinimum": 0
}
}
},
"annotations": {
"title": "Get user",
"readOnlyHint": true
}
}List locations (sites/branches) with address, time zone and managers. GET /locations.
| Parameter | Type | Description |
|---|---|---|
| ids | array | Only these location ids. |
| 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. |
| include_deleted | boolean | Include deleted locations. |
{
"name": "rotacloud_list_locations",
"title": "List locations",
"description": "List locations (sites/branches) with address, time zone and managers. GET /locations.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"ids": {
"type": "array",
"items": {
"type": "integer",
"maximum": 9007199254740991,
"exclusiveMinimum": 0
},
"description": "Only these location ids."
},
"limit": {
"type": "integer",
"maximum": 500,
"description": "Results per page, 1-500 (RotaCloud may cap it lower; the reply's total and next_offset show what is left).",
"exclusiveMinimum": 0
},
"offset": {
"type": "integer",
"maximum": 1000000,
"minimum": 0,
"description": "Index of the first result; pass the previous reply's next_offset."
},
"include_deleted": {
"type": "boolean",
"description": "Include deleted locations."
}
}
},
"annotations": {
"title": "List locations",
"readOnlyHint": true
}
}List job roles (positions) with colour, default break and pay rate. GET /roles.
| Parameter | Type | Description |
|---|---|---|
| ids | array | Only these role ids. |
| 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. |
| include_deleted | boolean | Include deleted roles. |
{
"name": "rotacloud_list_roles",
"title": "List roles",
"description": "List job roles (positions) with colour, default break and pay rate. GET /roles.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"ids": {
"type": "array",
"items": {
"type": "integer",
"maximum": 9007199254740991,
"exclusiveMinimum": 0
},
"description": "Only these role ids."
},
"limit": {
"type": "integer",
"maximum": 500,
"description": "Results per page, 1-500 (RotaCloud may cap it lower; the reply's total and next_offset show what is left).",
"exclusiveMinimum": 0
},
"offset": {
"type": "integer",
"maximum": 1000000,
"minimum": 0,
"description": "Index of the first result; pass the previous reply's next_offset."
},
"include_deleted": {
"type": "boolean",
"description": "Include deleted roles."
}
}
},
"annotations": {
"title": "List roles",
"readOnlyHint": true
}
}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 * | any | 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). |
| open | boolean | true = only open (unassigned) shifts, false = only assigned shifts. |
| limit | integer | Results per page, 1-500 (RotaCloud may cap it lower; the reply's total and next_offset show what is left). |
| roles | array | Only shifts with these role ids. |
| start * | any | 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). |
| users | array | Only shifts of these user ids (add 0 to include open shifts). |
| offset | integer | Index of the first result; pass the previous reply's next_offset. |
| locations | array | Only shifts at these location ids. |
| published | boolean |
One shift by id. GET /shifts/{id}.
| Parameter | Type | Description |
|---|---|---|
| shift_id * | integer | RotaCloud shift id. |
{
"name": "rotacloud_get_shift",
"title": "Get shift",
"description": "One shift by id. GET /shifts/{id}.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"shift_id"
],
"properties": {
"shift_id": {
"type": "integer",
"maximum": 9007199254740991,
"description": "RotaCloud shift id.",
"exclusiveMinimum": 0
}
}
},
"annotations": {
"title": "Get shift",
"readOnlyHint": true
}
}List shift swap requests with their status, the shifts and the users involved. GET /swap_requests.
| 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. |
| include_deleted | boolean | Include deleted swap requests. |
{
"name": "rotacloud_list_swap_requests",
"title": "List shift swap requests",
"description": "List shift swap requests with their status, the shifts and the users involved. GET /swap_requests.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"limit": {
"type": "integer",
"maximum": 500,
"description": "Results per page, 1-500 (RotaCloud may cap it lower; the reply's total and next_offset show what is left).",
"exclusiveMinimum": 0
},
"offset": {
"type": "integer",
"maximum": 1000000,
"minimum": 0,
"description": "Index of the first result; pass the previous reply's next_offset."
},
"include_deleted": {
"type": "boolean",
"description": "Include deleted swap requests."
}
}
},
"annotations": {
"title": "List shift swap requests",
"readOnlyHint": true
}
}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). |
| start | string | First date (yyyy-mm-dd). |
| offset | integer | Index of the first result; pass the previous reply's next_offset. |
| location | integer | Only notes for this location id. |
{
"name": "rotacloud_list_day_notes",
"title": "List day notes",
"description": "List day notes (notices pinned to rota dates, e.g. events or deliveries), optionally for one location. GET /day_notes.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"end": {
"type": "string",
"pattern": "^\\d{4}-\\d{2}-\\d{2}$",
"description": "Last date (yyyy-mm-dd)."
},
"limit": {
"type": "integer",
"maximum": 500,
"description": "Results per page, 1-500 (RotaCloud may cap it lower; the reply's total and next_offset show what is left).",
"exclusiveMinimum": 0
},
"start": {
"type": "string",
"pattern": "^\\d{4}-\\d{2}-\\d{2}$",
"description": "First date (yyyy-mm-dd)."
},
"offset": {
"type": "integer",
"maximum": 1000000,
"minimum": 0,
"description": "Index of the first result; pass the previous reply's next_offset."
},
"location": {
"type": "integer",
"maximum": 9007199254740991,
"description": "Only notes for this location id.",
"exclusiveMinimum": 0
}
}
},
"annotations": {
"title": "List day notes",
"readOnlyHint": true
}
}List time & attendance records (clock-in/out times, breaks, minutes late, hours, approval state) in a time range. GET /attendance.
| Parameter | Type | Description |
|---|---|---|
| end * | any | 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). |
| limit | integer | Results per page, 1-500 (RotaCloud may cap it lower; the reply's total and next_offset show what is left). |
| roles | array | Only these role ids. |
| start * | any | 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). |
| users | array | Only these user ids. |
| offset | integer | Index of the first result; pass the previous reply's next_offset. |
| approved | boolean | true = only approved records, false = only unapproved. |
| locations | array | Only these location ids. |
| include_deleted | boolean | Include deleted records. |
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. |
{
"name": "rotacloud_list_clocked_in",
"title": "List clocked-in users",
"description": "Who is clocked in right now: user, location, role, clock-in time, minutes late and break state. GET /users_clocked_in.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"limit": {
"type": "integer",
"maximum": 500,
"description": "Results per page, 1-500 (RotaCloud may cap it lower; the reply's total and next_offset show what is left).",
"exclusiveMinimum": 0
},
"offset": {
"type": "integer",
"maximum": 1000000,
"minimum": 0,
"description": "Index of the first result; pass the previous reply's next_offset."
}
}
},
"annotations": {
"title": "List clocked-in users",
"readOnlyHint": true
}
}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). |
| year | integer | Leave year instead of a date range. |
| limit | integer | Results per page, 1-500 (RotaCloud may cap it lower; the reply's total and next_offset show what is left). |
| 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. |
| offset | integer | Index of the first result; pass the previous reply's next_offset. |
| include_denied | boolean | Include denied leave requests. |
| include_deleted | boolean | Include deleted leave. |
| include_expired | boolean | Include expired leave requests. |
| include_requested |
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 |
|---|---|---|
| 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. |
| include_deleted | boolean | Include deleted requests. |
{
"name": "rotacloud_list_leave_requests",
"title": "List leave requests",
"description": "List leave requests awaiting a decision (and past ones): user, leave type, dates, half days, the employee's message. GET /leave_requests.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"limit": {
"type": "integer",
"maximum": 500,
"description": "Results per page, 1-500 (RotaCloud may cap it lower; the reply's total and next_offset show what is left).",
"exclusiveMinimum": 0
},
"offset": {
"type": "integer",
"maximum": 1000000,
"minimum": 0,
"description": "Index of the first result; pass the previous reply's next_offset."
},
"include_deleted": {
"type": "boolean",
"description": "Include deleted requests."
}
}
},
"annotations": {
"title": "List leave requests",
"readOnlyHint": true
}
}One leave request by id, with the per-day breakdown. GET /leave_requests/{id}.
| Parameter | Type | Description |
|---|---|---|
| request_id * | integer | Leave request id. |
{
"name": "rotacloud_get_leave_request",
"title": "Get leave request",
"description": "One leave request by id, with the per-day breakdown. GET /leave_requests/{id}.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"request_id"
],
"properties": {
"request_id": {
"type": "integer",
"maximum": 9007199254740991,
"description": "Leave request id.",
"exclusiveMinimum": 0
}
}
},
"annotations": {
"title": "Get leave request",
"readOnlyHint": true
}
}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. |
{
"name": "rotacloud_list_leave_types",
"title": "List leave types",
"description": "List leave types (Holiday, Sickness, Unpaid, ...) with id, short name and whether employees can request them. GET /leave_types.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"limit": {
"type": "integer",
"maximum": 500,
"description": "Results per page, 1-500 (RotaCloud may cap it lower; the reply's total and next_offset show what is left).",
"exclusiveMinimum": 0
},
"offset": {
"type": "integer",
"maximum": 1000000,
"minimum": 0,
"description": "Index of the first result; pass the previous reply's next_offset."
}
}
},
"annotations": {
"title": "List leave types",
"readOnlyHint": true
}
}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. |
{
"name": "rotacloud_list_holiday_allowances",
"title": "List holiday allowances",
"description": "Every employee's holiday allowance for a leave year (default and custom allowance, unit, carried over). GET /holiday_allowances/{year}.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"year"
],
"properties": {
"year": {
"type": "integer",
"maximum": 2100,
"minimum": 2000,
"description": "Leave year, e.g. 2026."
},
"limit": {
"type": "integer",
"maximum": 500,
"description": "Results per page, 1-500 (RotaCloud may cap it lower; the reply's total and next_offset show what is left).",
"exclusiveMinimum": 0
},
"offset": {
"type": "integer",
"maximum": 1000000,
"minimum": 0,
"description": "Index of the first result; pass the previous reply's next_offset."
}
}
},
"annotations": {
"title": "List holiday allowances",
"readOnlyHint": true
}
}Employees' availability per date in a range (available / unavailable times). GET /availability.
| 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). |
| start * | string | First date (yyyy-mm-dd). |
| users | array | Only these user ids. |
| offset | integer | Index of the first result; pass the previous reply's next_offset. |
{
"name": "rotacloud_get_availability",
"title": "Get availability",
"description": "Employees' availability per date in a range (available / unavailable times). GET /availability.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"start",
"end"
],
"properties": {
"end": {
"type": "string",
"pattern": "^\\d{4}-\\d{2}-\\d{2}$",
"description": "Last date (yyyy-mm-dd)."
},
"limit": {
"type": "integer",
"maximum": 500,
"description": "Results per page, 1-500 (RotaCloud may cap it lower; the reply's total and next_offset show what is left).",
"exclusiveMinimum": 0
},
"start": {
"type": "string",
"pattern": "^\\d{4}-\\d{2}-\\d{2}$",
"description": "First date (yyyy-mm-dd)."
},
"users": {
"type": "array",
"items": {
"type": "integer",
"maximum": 9007199254740991,
"exclusiveMinimum": 0
},
"description": "Only these user ids."
},
"offset": {
"type": "integer",
"maximum": 1000000,
"minimum": 0,
"description": "Index of the first result; pass the previous reply's next_offset."
}
}
},
"annotations": {
"title": "Get availability",
"readOnlyHint": true
}
}Employees' scheduled days off per date in a range. GET /days_off.
| 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). |
| start * | string | First date (yyyy-mm-dd). |
| users | array | Only these user ids. |
| offset | integer | Index of the first result; pass the previous reply's next_offset. |
{
"name": "rotacloud_list_days_off",
"title": "List days off",
"description": "Employees' scheduled days off per date in a range. GET /days_off.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"start",
"end"
],
"properties": {
"end": {
"type": "string",
"pattern": "^\\d{4}-\\d{2}-\\d{2}$",
"description": "Last date (yyyy-mm-dd)."
},
"limit": {
"type": "integer",
"maximum": 500,
"description": "Results per page, 1-500 (RotaCloud may cap it lower; the reply's total and next_offset show what is left).",
"exclusiveMinimum": 0
},
"start": {
"type": "string",
"pattern": "^\\d{4}-\\d{2}-\\d{2}$",
"description": "First date (yyyy-mm-dd)."
},
"users": {
"type": "array",
"items": {
"type": "integer",
"maximum": 9007199254740991,
"exclusiveMinimum": 0
},
"description": "Only these user ids."
},
"offset": {
"type": "integer",
"maximum": 1000000,
"minimum": 0,
"description": "Index of the first result; pass the previous reply's next_offset."
}
}
},
"annotations": {
"title": "List days off",
"readOnlyHint": true
}
}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). |
| limit | integer | Results per page, 1-500 (RotaCloud may cap it lower; the reply's total and next_offset show what is left). |
| start * | string | First date (yyyy-mm-dd). |
| offset | integer | Index of the first result; pass the previous reply's next_offset. |
{
"name": "rotacloud_list_pay_periods",
"title": "List pay periods",
"description": "List pay periods overlapping a date range (id, name, start/end date, locked). GET /pay_periods.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"start",
"end"
],
"properties": {
"end": {
"type": "string",
"pattern": "^\\d{4}-\\d{2}-\\d{2}$",
"description": "Last date (yyyy-mm-dd)."
},
"limit": {
"type": "integer",
"maximum": 500,
"description": "Results per page, 1-500 (RotaCloud may cap it lower; the reply's total and next_offset show what is left).",
"exclusiveMinimum": 0
},
"start": {
"type": "string",
"pattern": "^\\d{4}-\\d{2}-\\d{2}$",
"description": "First date (yyyy-mm-dd)."
},
"offset": {
"type": "integer",
"maximum": 1000000,
"minimum": 0,
"description": "Index of the first result; pass the previous reply's next_offset."
}
}
},
"annotations": {
"title": "List pay periods",
"readOnlyHint": true
}
}Payroll for one pay period, per employee: pay settings, attendance worked, paid/unpaid leave, overtime and pay totals. Contains pay data. GET /pay_periods/{id}/payroll.
| 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. |
| pay_period_id * | integer | Pay period id (from rotacloud_list_pay_periods). |
{
"name": "rotacloud_get_payroll",
"title": "Get payroll for a pay period",
"description": "Payroll for one pay period, per employee: pay settings, attendance worked, paid/unpaid leave, overtime and pay totals. Contains pay data. GET /pay_periods/{id}/payroll.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"pay_period_id"
],
"properties": {
"limit": {
"type": "integer",
"maximum": 500,
"description": "Results per page, 1-500 (RotaCloud may cap it lower; the reply's total and next_offset show what is left).",
"exclusiveMinimum": 0
},
"offset": {
"type": "integer",
"maximum": 1000000,
"minimum": 0,
"description": "Index of the first result; pass the previous reply's next_offset."
},
"pay_period_id": {
"type": "integer",
"maximum": 9007199254740991,
"description": "Pay period id (from rotacloud_list_pay_periods).",
"exclusiveMinimum": 0
}
}
},
"annotations": {
"title": "Get payroll for a pay period",
"readOnlyHint": true
}
}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 |
|---|---|---|
| notes | string | Shift notes shown to the employee. |
| role_id | integer | Role id. |
| user_id | integer | Assigned user id; omit for an open shift. |
| end_time * | any | 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). |
| published | boolean | Publish immediately (default false). |
| start_time * | any | 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. |
| minutes_break | integer | Unpaid break in minutes. |
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 |
|---|---|---|
| notes | string | Shift notes. |
| role_id | integer | New role id. |
| user_id | any | New assignee; null makes it an open shift. |
| end_time | any | 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). |
| shift_id * | integer | Shift id. |
| published | boolean | Published state. |
| start_time | any | 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. |
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. |
{
"name": "rotacloud_publish_shifts",
"title": "Publish shifts",
"description": "WRITE: publish shifts so the assigned employees see them (and get notified). POST /shifts_published.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"shift_ids"
],
"properties": {
"shift_ids": {
"type": "array",
"items": {
"type": "integer",
"maximum": 9007199254740991,
"exclusiveMinimum": 0
},
"maxItems": 500,
"minItems": 1,
"description": "Ids of the shifts to publish."
}
}
},
"annotations": {
"title": "Publish shifts",
"idempotentHint": true,
"destructiveHint": true
}
}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 pass next_offset as offset to continue — but after deleting or changing shifts, search again from offset 0, because the list positions move. GET /shifts.
| Parameter | Type | Description |
|---|---|---|
| end * | any | 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). |
| open | boolean | true = only open (unassigned) shifts, false = only assigned shifts, omit = both. |
| roles | array | Only shifts with these role ids. |
| start * | any | 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). |
| users | array | Only shifts of these user ids (add 0 to include open shifts). |
| offset | integer | Position in the range to start reading at; pass the previous reply's next_offset (0 again after a delete). |
| locations |
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 |
|---|---|---|
| confirm | boolean | true = delete now. Omit or false = preview only (nothing is deleted). |
| shift_ids * | array | Ids of the shifts to delete (1-100). |
| 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. |
{
"name": "rotacloud_delete_shifts",
"title": "Delete shifts",
"description": "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}.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"shift_ids"
],
"properties": {
"confirm": {
"type": "boolean",
"description": "true = delete now. Omit or false = preview only (nothing is deleted)."
},
"shift_ids": {
"type": "array",
"items": {
"type": "integer",
"maximum": 9007199254740991,
"exclusiveMinimum": 0
},
"maxItems": 100,
"minItems": 1,
"description": "Ids of the shifts to delete (1-100)."
},
"require_open": {
"type": "boolean",
"description": "true = delete a shift only if it is still open (unassigned) at delete time."
},
"require_shorter_than_minutes": {
"type": "number",
"description": "Delete a shift only if its elapsed duration (end − start) is still strictly less than this many minutes.",
"exclusiveMinimum": 0
}
}
},
"annotations": {
"title": "Delete shifts",
"idempotentHint": true,
"destructiveHint": true
}
}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 |
|---|---|---|
| message | string | Message from the employee to the manager. |
| user_id * | integer | The employee requesting leave (the request is made as this user). |
| end_date * | string | Last day (yyyy-mm-dd). |
| end_am_pm | string | 'am' ends at midday (half day); default 'pm'. |
| start_date * | string | First day (yyyy-mm-dd). |
| start_am_pm | string | 'pm' starts at midday (half day); default 'am'. |
| leave_type_id * | integer | Leave type id (see rotacloud_list_leave_types; must be requestable). |
{
"name": "rotacloud_create_leave_request",
"title": "Request leave",
"description": "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.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"user_id",
"leave_type_id",
"start_date",
"end_date"
],
"properties": {
"message": {
"type": "string",
"maxLength": 2000,
"description": "Message from the employee to the manager."
},
"user_id": {
"type": "integer",
"maximum": 9007199254740991,
"description": "The employee requesting leave (the request is made as this user).",
"exclusiveMinimum": 0
},
"end_date": {
"type": "string",
"pattern": "^\\d{4}-\\d{2}-\\d{2}$",
"description": "Last day (yyyy-mm-dd)."
},
"end_am_pm": {
"enum": [
"am",
"pm"
],
"type": "string",
"description": "'am' ends at midday (half day); default 'pm'."
},
"start_date": {
"type": "string",
"pattern": "^\\d{4}-\\d{2}-\\d{2}$",
"description": "First day (yyyy-mm-dd)."
},
"start_am_pm": {
"enum": [
"am",
"pm"
],
"type": "string",
"description": "'pm' starts at midday (half day); default 'am'."
},
"leave_type_id": {
"type": "integer",
"maximum": 9007199254740991,
"description": "Leave type id (see rotacloud_list_leave_types; must be requestable).",
"exclusiveMinimum": 0
}
}
},
"annotations": {
"title": "Request leave",
"destructiveHint": true
}
}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. |
{
"name": "rotacloud_approve_leave_request",
"title": "Approve leave request",
"description": "WRITE: approve a pending leave request (it becomes booked leave and the employee is notified). POST /leave_requests/{id}/approve.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"request_id"
],
"properties": {
"request_id": {
"type": "integer",
"maximum": 9007199254740991,
"description": "Leave request id.",
"exclusiveMinimum": 0
},
"admin_message": {
"type": "string",
"maxLength": 2000,
"description": "Message to the employee."
}
}
},
"annotations": {
"title": "Approve leave request",
"idempotentHint": true,
"destructiveHint": true
}
}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. |
{
"name": "rotacloud_deny_leave_request",
"title": "Deny leave request",
"description": "WRITE: deny a pending leave request (the employee is notified). POST /leave_requests/{id}/deny.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"request_id"
],
"properties": {
"request_id": {
"type": "integer",
"maximum": 9007199254740991,
"description": "Leave request id.",
"exclusiveMinimum": 0
},
"admin_message": {
"type": "string",
"maxLength": 2000,
"description": "Reason shown to the employee."
}
}
},
"annotations": {
"title": "Deny leave request",
"idempotentHint": true,
"destructiveHint": true
}
}Tools for RotaCloud, hosted by usefulapi.io. If the user is new or asks what this server can do, suggest requests such as: "Who is working tomorrow and at which location?"; "Who is clocked in right now and is anyone late?"; "Which leave requests are waiting for my decision?". Read-only tools never change data; ask the user before a tool that creates, changes or deletes RotaCloud data. Free plan: 50 tool calls per month. Run rotacloud_usage_status to see the calls used this month. If the user asks for something none of these tools can do, tell the user and, with their OK, run rotacloud_request_feature to record the request. Paid plans: Pro (10,000 tool calls a month, $9/month or $90/year, for normal use) and Pro+ (100,000 tool calls a month, $39/month or $390/year, for automations and heavy use). A plan can be cancelled at any time and then runs to the end of the paid period, so it also suits a one-time job. When the user wants more calls or reaches the limit, run rotacloud_upgrade without a plan: it returns both plans, each with a payment link for the user to open. rotacloud_cancel_subscription cancels Pro at the end of the paid period.
Names, descriptions and schemas were written by the server and are shown as data.
Pattern matches on what the server declares. They show what it says it can do, not what it does.
None yet. Changes appear after a server's second daily check.
| true = only published shifts, false = only unpublished (draft) shifts. |
| include_deleted | boolean | Include deleted shifts. |
{
"name": "rotacloud_list_shifts",
"title": "List shifts",
"description": "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.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"start",
"end"
],
"properties": {
"end": {
"anyOf": [
{
"type": "integer",
"maximum": 9007199254740991,
"minimum": -9007199254740991
},
{
"type": "string"
}
],
"description": "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)."
},
"open": {
"type": "boolean",
"description": "true = only open (unassigned) shifts, false = only assigned shifts."
},
"limit": {
"type": "integer",
"maximum": 500,
"description": "Results per page, 1-500 (RotaCloud may cap it lower; the reply's total and next_offset show what is left).",
"exclusiveMinimum": 0
},
"roles": {
"type": "array",
"items": {
"type": "integer",
"maximum": 9007199254740991,
"exclusiveMinimum": 0
},
"description": "Only shifts with these role ids."
},
"start": {
"anyOf": [
{
"type": "integer",
"maximum": 9007199254740991,
"minimum": -9007199254740991
},
{
"type": "string"
}
],
"description": "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)."
},
"users": {
"type": "array",
"items": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0
},
"description": "Only shifts of these user ids (add 0 to include open shifts)."
},
"offset": {
"type": "integer",
"maximum": 1000000,
"minimum": 0,
"description": "Index of the first result; pass the previous reply's next_offset."
},
"locations": {
"type": "array",
"items": {
"type": "integer",
"maximum": 9007199254740991,
"exclusiveMinimum": 0
},
"description": "Only shifts at these location ids."
},
"published": {
"type": "boolean",
"description": "true = only published shifts, false = only unpublished (draft) shifts."
},
"include_deleted": {
"type": "boolean",
"description": "Include deleted shifts."
}
}
},
"annotations": {
"title": "List shifts",
"readOnlyHint": true
}
}{
"name": "rotacloud_list_attendance",
"title": "List attendance records",
"description": "List time & attendance records (clock-in/out times, breaks, minutes late, hours, approval state) in a time range. GET /attendance.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"start",
"end"
],
"properties": {
"end": {
"anyOf": [
{
"type": "integer",
"maximum": 9007199254740991,
"minimum": -9007199254740991
},
{
"type": "string"
}
],
"description": "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)."
},
"limit": {
"type": "integer",
"maximum": 500,
"description": "Results per page, 1-500 (RotaCloud may cap it lower; the reply's total and next_offset show what is left).",
"exclusiveMinimum": 0
},
"roles": {
"type": "array",
"items": {
"type": "integer",
"maximum": 9007199254740991,
"exclusiveMinimum": 0
},
"description": "Only these role ids."
},
"start": {
"anyOf": [
{
"type": "integer",
"maximum": 9007199254740991,
"minimum": -9007199254740991
},
{
"type": "string"
}
],
"description": "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)."
},
"users": {
"type": "array",
"items": {
"type": "integer",
"maximum": 9007199254740991,
"exclusiveMinimum": 0
},
"description": "Only these user ids."
},
"offset": {
"type": "integer",
"maximum": 1000000,
"minimum": 0,
"description": "Index of the first result; pass the previous reply's next_offset."
},
"approved": {
"type": "boolean",
"description": "true = only approved records, false = only unapproved."
},
"locations": {
"type": "array",
"items": {
"type": "integer",
"maximum": 9007199254740991,
"exclusiveMinimum": 0
},
"description": "Only these location ids."
},
"include_deleted": {
"type": "boolean",
"description": "Include deleted records."
}
}
},
"annotations": {
"title": "List attendance records",
"readOnlyHint": true
}
}| boolean |
| Include pending leave requests. |
{
"name": "rotacloud_list_leave",
"title": "List leave",
"description": "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.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"end": {
"type": "string",
"pattern": "^\\d{4}-\\d{2}-\\d{2}$",
"description": "Last date (yyyy-mm-dd)."
},
"year": {
"type": "integer",
"maximum": 2100,
"minimum": 2000,
"description": "Leave year instead of a date range."
},
"limit": {
"type": "integer",
"maximum": 500,
"description": "Results per page, 1-500 (RotaCloud may cap it lower; the reply's total and next_offset show what is left).",
"exclusiveMinimum": 0
},
"start": {
"type": "string",
"pattern": "^\\d{4}-\\d{2}-\\d{2}$",
"description": "First date (yyyy-mm-dd)."
},
"types": {
"type": "array",
"items": {
"type": "integer",
"maximum": 9007199254740991,
"exclusiveMinimum": 0
},
"description": "Only these leave type ids (see rotacloud_list_leave_types)."
},
"users": {
"type": "array",
"items": {
"type": "integer",
"maximum": 9007199254740991,
"exclusiveMinimum": 0
},
"description": "Only these user ids."
},
"offset": {
"type": "integer",
"maximum": 1000000,
"minimum": 0,
"description": "Index of the first result; pass the previous reply's next_offset."
},
"include_denied": {
"type": "boolean",
"description": "Include denied leave requests."
},
"include_deleted": {
"type": "boolean",
"description": "Include deleted leave."
},
"include_expired": {
"type": "boolean",
"description": "Include expired leave requests."
},
"include_requested": {
"type": "boolean",
"description": "Include pending leave requests."
}
}
},
"annotations": {
"title": "List leave",
"readOnlyHint": true
}
}{
"name": "rotacloud_create_shift",
"title": "Create shift",
"description": "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.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"start_time",
"end_time",
"location_id"
],
"properties": {
"notes": {
"type": "string",
"maxLength": 2000,
"description": "Shift notes shown to the employee."
},
"role_id": {
"type": "integer",
"maximum": 9007199254740991,
"description": "Role id.",
"exclusiveMinimum": 0
},
"user_id": {
"type": "integer",
"maximum": 9007199254740991,
"description": "Assigned user id; omit for an open shift.",
"exclusiveMinimum": 0
},
"end_time": {
"anyOf": [
{
"type": "integer",
"maximum": 9007199254740991,
"minimum": -9007199254740991
},
{
"type": "string"
}
],
"description": "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)."
},
"published": {
"type": "boolean",
"description": "Publish immediately (default false)."
},
"start_time": {
"anyOf": [
{
"type": "integer",
"maximum": 9007199254740991,
"minimum": -9007199254740991
},
{
"type": "string"
}
],
"description": "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": {
"type": "integer",
"maximum": 9007199254740991,
"description": "Location id.",
"exclusiveMinimum": 0
},
"minutes_break": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0,
"description": "Unpaid break in minutes."
}
}
},
"annotations": {
"title": "Create shift",
"destructiveHint": true
}
}{
"name": "rotacloud_update_shift",
"title": "Update shift",
"description": "WRITE: change a shift's times, assignee, location, role, break, notes or published state. Only the fields you pass change. POST /shifts/{id}.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"shift_id"
],
"properties": {
"notes": {
"type": "string",
"maxLength": 2000,
"description": "Shift notes."
},
"role_id": {
"type": "integer",
"maximum": 9007199254740991,
"description": "New role id.",
"exclusiveMinimum": 0
},
"user_id": {
"anyOf": [
{
"type": "integer",
"maximum": 9007199254740991,
"exclusiveMinimum": 0
},
{
"type": "null"
}
],
"description": "New assignee; null makes it an open shift."
},
"end_time": {
"anyOf": [
{
"type": "integer",
"maximum": 9007199254740991,
"minimum": -9007199254740991
},
{
"type": "string"
}
],
"description": "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)."
},
"shift_id": {
"type": "integer",
"maximum": 9007199254740991,
"description": "Shift id.",
"exclusiveMinimum": 0
},
"published": {
"type": "boolean",
"description": "Published state."
},
"start_time": {
"anyOf": [
{
"type": "integer",
"maximum": 9007199254740991,
"minimum": -9007199254740991
},
{
"type": "string"
}
],
"description": "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": {
"type": "integer",
"maximum": 9007199254740991,
"description": "New location id.",
"exclusiveMinimum": 0
},
"minutes_break": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0,
"description": "Unpaid break in minutes."
}
}
},
"annotations": {
"title": "Update shift",
"idempotentHint": true,
"destructiveHint": true
}
}| array |
| Only shifts at these location ids. |
| published | boolean | true = only published shifts, false = only unpublished (draft) shifts. |
| max_results | integer | Most matches to return (1-100, default 100; rotacloud_delete_shifts takes up to 100 ids). |
| at_least_minutes | number | Only shifts whose elapsed duration is this many minutes or more. |
| shorter_than_minutes | number | Only shifts whose elapsed duration is strictly less than this many minutes. |
{
"name": "rotacloud_find_shifts",
"title": "Find shifts",
"description": "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 pass next_offset as offset to continue — but after deleting or changing shifts, search again from offset 0, because the list positions move. GET /shifts.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"start",
"end"
],
"properties": {
"end": {
"anyOf": [
{
"type": "integer",
"maximum": 9007199254740991,
"minimum": -9007199254740991
},
{
"type": "string"
}
],
"description": "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)."
},
"open": {
"type": "boolean",
"description": "true = only open (unassigned) shifts, false = only assigned shifts, omit = both."
},
"roles": {
"type": "array",
"items": {
"type": "integer",
"maximum": 9007199254740991,
"exclusiveMinimum": 0
},
"description": "Only shifts with these role ids."
},
"start": {
"anyOf": [
{
"type": "integer",
"maximum": 9007199254740991,
"minimum": -9007199254740991
},
{
"type": "string"
}
],
"description": "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)."
},
"users": {
"type": "array",
"items": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0
},
"description": "Only shifts of these user ids (add 0 to include open shifts)."
},
"offset": {
"type": "integer",
"maximum": 1000000,
"minimum": 0,
"description": "Position in the range to start reading at; pass the previous reply's next_offset (0 again after a delete)."
},
"locations": {
"type": "array",
"items": {
"type": "integer",
"maximum": 9007199254740991,
"exclusiveMinimum": 0
},
"description": "Only shifts at these location ids."
},
"published": {
"type": "boolean",
"description": "true = only published shifts, false = only unpublished (draft) shifts."
},
"max_results": {
"type": "integer",
"maximum": 100,
"minimum": 1,
"description": "Most matches to return (1-100, default 100; rotacloud_delete_shifts takes up to 100 ids)."
},
"at_least_minutes": {
"type": "number",
"minimum": 0,
"description": "Only shifts whose elapsed duration is this many minutes or more."
},
"shorter_than_minutes": {
"type": "number",
"description": "Only shifts whose elapsed duration is strictly less than this many minutes.",
"exclusiveMinimum": 0
}
}
},
"annotations": {
"title": "Find shifts",
"readOnlyHint": true
}
}