Shiftbase MCP by usefulapi
v1.33.1Read Shiftbase rosters, timesheets, absences and availability; schedule shifts and review absences.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
shiftbase_get_account Get account
The Shiftbase account this API key belongs to: company, country, time zone, working-day start/end, plan facts. GET /accounts.
shiftbase_list_users List employees
List employees (users) with their teams and departments, contact details, employee number, start/end dates and plus-min hours balance. Use it to map user ids in schedules, timesheets and absences to names. Identity, bank and birth data are never returned. GET /users.
| Parameter | Type | Description |
|---|---|---|
active | boolean | true = only active employees, false = only inactive. Default: both. |
department_id | integer | Only employees of this department. |
include_hidden | boolean | Also include hidden users. |
limit | integer | Results per page, 1-200 (default 10). 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. |
shiftbase_get_user Get employee
One employee by user id or email address, with teams and departments. GET /users/{identifier}.
| Parameter | Type | Description |
|---|---|---|
email | string | Or the employee's email address. |
user_id | integer | Shiftbase user id. |
shiftbase_list_departments List departments
List departments (sites/branches that own teams, shifts and schedules) with address and timesheet/clocking settings. GET /departments.
| Parameter | Type | Description |
|---|---|---|
limit | integer | Results per page, 1-200 (default 50). 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. |
shiftbase_list_teams List teams
List teams (the rows of the schedule within a department), optionally for one department. GET /teams.
| Parameter | Type | Description |
|---|---|---|
department_id | integer | Only teams of this department. |
limit | integer | Results per page, 1-200 (default 50). 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. |
shiftbase_list_locations List locations
List active locations (addresses that group departments). GET /locations.
| Parameter | Type | Description |
|---|---|---|
limit | integer | Results per page, 1-200 (default 50). 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. |
shiftbase_list_shift_types List shift types
List shift types (the templates a scheduled shift uses: name, short name, default start/end time and break), optionally for one department. Their ids are the shift_id for shiftbase_create_roster. GET /shifts.
| Parameter | Type | Description |
|---|---|---|
department_id | integer | Only shift types of this department. |
include_deleted | boolean | Also include deleted shift types. |
limit | integer | Results per page, 1-200 (default 10). 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. |
shiftbase_list_rosters List scheduled shifts
List the schedule (rosters = shifts assigned to employees) for a date range of at most 62 days: date, start/end time, break, employee, team, shift type, department, published state, hours and cost. Each item's occurrence_id identifies it for shiftbase_get_roster and shiftbase_update_roster. GET /rosters.
| Parameter | Type | Description |
|---|---|---|
max_date * | string | Last date (yyyy-mm-dd), at most 62 days after min_date. |
min_date * | string | First date (yyyy-mm-dd). |
department_id | integer | Only shifts in this department. |
limit | integer | Results per page, 1-200 (default 25). 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. |
user_id | integer | Only shifts of this employee. |
shiftbase_get_roster Get scheduled shift
One scheduled shift by its occurrence_id, with the employee, shift type, team and who created/changed it. GET /rosters/{occurrenceId}.
| Parameter | Type | Description |
|---|---|---|
occurrence_id * | string | The occurrence_id from shiftbase_list_rosters: "<roster id>" or, for a recurring shift, "<roster id>:<yyyy-mm-dd>". |
shiftbase_list_open_shifts List open shifts
List open (unassigned) shifts that employees can pick up, for a date range of at most 62 days (default: today). Needs the Basic plan or higher. GET /open_shifts.
| Parameter | Type | Description |
|---|---|---|
department_id | integer | Only open shifts in this department. |
limit | integer | Results per page, 1-200 (default 50). The reply's total and next_offset show what is left. |
max_date | string | Last date (yyyy-mm-dd). |
min_date | string | First date (yyyy-mm-dd). Give both dates or neither (= today). |
offset | integer | Index of the first result; pass the previous reply's next_offset. |
user_id | integer | Only open shifts this employee can take. |
shiftbase_get_availability Get employee availability
Employee availability (available / unavailable, all day or from a time) for a date range of at most 62 days, from Shiftbase's availability report. Needs the Basic plan and the "View reports" permission. POST /reports/availability (export json; reads only).
| Parameter | Type | Description |
|---|---|---|
from * | string | First date (yyyy-mm-dd). |
to * | string | Last date (yyyy-mm-dd), at most 62 days after from. |
department_ids | array | Only these departments. |
limit | integer | Results per page, 1-200 (default 50). 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. |
statuses | array | Only these availability types. |
user_id | integer | Only this employee. |
shiftbase_list_timesheets List timesheets
List timesheets (worked hours: clock in/out, breaks, total, status Approved/Declined/Pending, wage and surcharges) for a date range of at most 62 days. GET /timesheets.
| Parameter | Type | Description |
|---|---|---|
max_date * | string | Last date (yyyy-mm-dd), at most 62 days after min_date. |
min_date * | string | First date (yyyy-mm-dd). |
department_id | integer | Only this department. |
limit | integer | Results per page, 1-200 (default 10). 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. |
status | string | Only timesheets with this status. |
user_id | integer | Only this employee. |
shiftbase_get_timesheet Get timesheet
One timesheet by id, with its clocked breaks. GET /timesheets/{timesheetId}.
| Parameter | Type | Description |
|---|---|---|
timesheet_id * | integer | Shiftbase timesheet id. |
shiftbase_list_clocked_in List clocked-in employees
Who is clocked in right now: employee, since when, their scheduled shift, team, department and location. GET /timesheets/clock.
| Parameter | Type | Description |
|---|---|---|
limit | integer | Results per page, 1-200 (default 50). 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. |
shiftbase_list_absences List absences
List absences (leave, sick leave, other time off) overlapping a date range of at most 366 days: employee, absence type, start/end date, hours or days, status Approved/Declined/Pending and who reviewed it. Needs the Basic plan. GET /absentees.
| Parameter | Type | Description |
|---|---|---|
max_date * | string | Last date (yyyy-mm-dd), at most 366 days after min_date. |
min_date * | string | First date (yyyy-mm-dd). |
absence_type_ids | array | Only these absence types (ids from shiftbase_list_absence_types). |
include | string | Add related data: the per-day breakdown, the employee or the absence type. |
limit | integer | Results per page, 1-200 (default 25). 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. |
only_open_ended | boolean | Only open-ended absences (no end date yet, e.g. long-term sick leave). |
status | string | Only absences with this status (Pending = requests waiting for review). |
user_id | integer | Only this employee. |
shiftbase_get_absence Get absence
One absence by id, with the per-day hours and who reviewed it. GET /absentees/{absenteeId}.
| Parameter | Type | Description |
|---|---|---|
absence_id * | integer | Shiftbase absence (absentee) id. |
shiftbase_list_absence_types List absence types
List absence types (e.g. Holiday, Sick, Unpaid leave): name, unit (hours or days), whether it costs leave hours, colour. Their ids are the absence_type_id for absences. GET /absentee_options.
| Parameter | Type | Description |
|---|---|---|
limit | integer | Results per page, 1-200 (default 50). 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. |
shiftbase_get_expected_absence_hours Get expected absence hours
How many hours an absence would cost for an employee, per day and in total (from the schedule or the contract, per the absence policy), for a period of at most 366 days. Changes nothing. POST /absentees/expected.
| Parameter | Type | Description |
|---|---|---|
absence_type_id * | integer | Absence type id (shiftbase_list_absence_types). |
end_date * | string | Last day (yyyy-mm-dd). |
start_date * | string | First day (yyyy-mm-dd). |
user_id * | integer | The employee. |
shiftbase_create_roster Schedule a shift
WRITE: put one employee on the schedule for one date (a single, non-recurring shift) in a team, with a shift type, start/end time and break. The employee is notified only when notify is true. POST /rosters.
| Parameter | Type | Description |
|---|---|---|
date * | string | Date of the shift (yyyy-mm-dd). |
department_id * | integer | Department of the team. |
end_time * | string | End, 24-hour hh:mm (e.g. 17:30); earlier than start = ends the next day. |
shift_id * | integer | Shift type (shiftbase_list_shift_types). |
start_time * | string | Start, 24-hour hh:mm (e.g. 09:00). |
team_id * | integer | Team (shiftbase_list_teams). |
user_id * | integer | The employee to schedule. |
break_minutes | integer | Unpaid break in minutes (default 0). |
description | string | Note shown on the shift. |
notify | boolean | Notify the employee (default false). |
paid_break_minutes | integer | Paid break in minutes (default 0). |
shiftbase_update_roster Change a scheduled shift
WRITE: change a scheduled shift: move it to another date, time, employee, team or shift type, or change its break or note. Reads the shift first and sends it back with your changes. For a recurring shift, scope says what changes: "occurrence" (this date only), "sequence" (this date and all later ones) or "original" (the whole series; also the right scope for a non-recurring shift). PUT /rosters/{occurrenceId}/{scope}.
| Parameter | Type | Description |
|---|---|---|
occurrence_id * | string | occurrence_id from shiftbase_list_rosters. |
scope * | string | "original" for a non-recurring shift; see the description for recurring ones. |
break_minutes | integer | New unpaid break in minutes. |
date | string | New date (yyyy-mm-dd). |
department_id | integer | New department (when moving to a team of another department). |
description | string | New note. |
end_time | string | New end, hh:mm. |
notify | boolean | Notify the employee (default false). |
paid_break_minutes | integer | New paid break in minutes. |
shift_id | integer | New shift type. |
start_time | string | New start, hh:mm. |
team_id | integer | New team. |
user_id | integer | New employee. |
shiftbase_request_absence Request an absence
WRITE: add an absence (leave/time-off request) for an employee. By default it is a Pending request for a manager to review; status Approved books it directly (needs the approve-absence permission). The hours per day come from Shiftbase's own expected-hours calculation (the same as shiftbase_get_expected_absence_hours). Needs the Basic plan. POST /absentees.
| Parameter | Type | Description |
|---|---|---|
absence_type_id * | integer | Absence type id (shiftbase_list_absence_types). |
end_date * | string | Last day (yyyy-mm-dd), at most 366 days after start_date. |
start_date * | string | First day (yyyy-mm-dd). |
user_id * | integer | The employee. |
note | string | Note from the requester. |
notify_employee | boolean | Notify the employee (default false). |
status | string | Pending (default) = a request to review; Approved = book it directly. |
shiftbase_review_absence Approve or decline an absence
WRITE: approve or decline an absence request. Reads the absence first and sends it back unchanged except for the status (needs the approve-absence permission). PUT /absentees/{absenteeId}.
| Parameter | Type | Description |
|---|---|---|
absence_id * | integer | Absence (absentee) id, e.g. from shiftbase_list_absences with status Pending. |
decision * | string | Approved or Declined. |
notify_employee | boolean | Notify the employee (default false). |