Shiftbrook MCP by usefulapi
v1.3.1Read shifts, people, leave and timesheets; add people and approve leave in Shiftbrook.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
shiftbrook_check_key Check API key
Check that the API key is valid. Returns the organisation name. Shiftbrook GET /api/v1/auth/test.
shiftbrook_list_people List people
List people in the organisation, with open invites. Use status to filter. Shiftbrook GET /api/v1/people.
| Parameter | Type | Description |
|---|---|---|
cursor | string | nextCursor from the previous page. |
limit | integer | Page size, 1 to 100 (default 50). |
status | string | Filter by status, as the Shiftbrook API defines it. |
shiftbrook_get_person Get a person
Get one person by id. Shiftbrook GET /api/v1/people/{id}.
| Parameter | Type | Description |
|---|---|---|
person_id * | string | The person id. |
shiftbrook_create_person Add a person
Add a person to the organisation. Shiftbrook sends that person an invite email. The invite token is not returned. Shiftbrook POST /api/v1/people.
| Parameter | Type | Description |
|---|---|---|
email * | string | Email address for the invite. |
name * | string | Full name. |
role * | string | Role, as the Shiftbrook API defines it. |
shiftbrook_list_locations List locations
List the organisation's locations (sites). Shiftbrook GET /api/v1/locations.
| Parameter | Type | Description |
|---|---|---|
cursor | string | nextCursor from the previous page. |
limit | integer | Page size, 1 to 100 (default 50). |
shiftbrook_get_location Get a location
Get one location by id. Shiftbrook GET /api/v1/locations/{id}.
| Parameter | Type | Description |
|---|---|---|
location_id * | string | The location id. |
shiftbrook_list_shifts List shifts
List shifts in the rota, optionally between two dates. Draft shifts are not published. Shiftbrook GET /api/v1/shifts.
| Parameter | Type | Description |
|---|---|---|
cursor | string | nextCursor from the previous page. |
from | string | Date, yyyy-mm-dd. |
limit | integer | Page size, 1 to 100 (default 50). |
status | string | Filter by status, as the Shiftbrook API defines it. |
to | string | Date, yyyy-mm-dd. |
shiftbrook_get_shift Get a shift
Get one shift by id. Shiftbrook GET /api/v1/shifts/{id}.
| Parameter | Type | Description |
|---|---|---|
shift_id * | string | The shift id. |
shiftbrook_list_leave_requests List leave requests
List leave requests. Use status to see only pending or approved requests. Shiftbrook GET /api/v1/leave-requests.
| Parameter | Type | Description |
|---|---|---|
cursor | string | nextCursor from the previous page. |
limit | integer | Page size, 1 to 100 (default 50). |
status | string | Filter by status, as the Shiftbrook API defines it. |
shiftbrook_get_leave_request Get a leave request
Get one leave request by id. Shiftbrook GET /api/v1/leave-requests/{id}.
| Parameter | Type | Description |
|---|---|---|
leave_request_id * | string | The leave request id. |
shiftbrook_approve_leave_request Approve a leave request
Approve one leave request. This changes the request and its approved absence. Shiftbrook POST /api/v1/leave-requests/{id}/approve.
| Parameter | Type | Description |
|---|---|---|
leave_request_id * | string | The leave request id. |
shiftbrook_list_timesheets List timesheets
List timesheets. With status 'approved', each item includes approvedHours. Shiftbrook GET /api/v1/timesheets.
| Parameter | Type | Description |
|---|---|---|
cursor | string | nextCursor from the previous page. |
limit | integer | Page size, 1 to 100 (default 50). |
status | string | Filter by status, as the Shiftbrook API defines it. |
shiftbrook_get_timesheet Get a timesheet
Get one timesheet by id. Shiftbrook GET /api/v1/timesheets/{id}.
| Parameter | Type | Description |
|---|---|---|
timesheet_id * | string | The timesheet id. |
shiftbrook_list_absences List absences
List approved leave that overlaps a date range, for example one month. Shiftbrook GET /api/v1/absences.
| Parameter | Type | Description |
|---|---|---|
from * | string | Date, yyyy-mm-dd. |
to * | string | Date, yyyy-mm-dd. |