7shifts MCP by usefulapi

v1.2.1
io.usefulapi/7shifts Checked 2 days ago Published 12 hours ago

Read locations, employees, roles, shifts and time punches of a restaurant in 7shifts.

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

7shifts_whoami Who am I

Show the identity behind the connected 7shifts access token. First call to check the connection. 7shifts API: GET /v2/whoami.

7shifts_list_companies List companies

List the companies the access token can read (one for a single-company token). 7shifts API: GET /v2/companies.

ParameterTypeDescription
modified_sincestringOnly items modified after this ISO 8601 date-time.

7shifts_get_company Get a company

Get one company: plan status, expiry, country, start-of-week and POS type. 7shifts API: GET /v2/companies/{id}.

ParameterTypeDescription
company_idintegerCompany id. Default: the company of the connected token.

7shifts_list_locations List locations

List the company's locations (restaurants or sites). Use the ids in other tools. 7shifts API: GET /v2/company/{company_id}/locations.

ParameterTypeDescription
company_idintegerCompany id. Default: the company of the connected token.
cursorstringCursor from the previous page's cursor.next.
deletedbooleanReturn deleted locations instead of active ones.
limitintegerItems per page.
modified_sincestringOnly items modified after this ISO 8601 date-time.

7shifts_get_location Get a location

Get one location by id, with its settings. 7shifts API: GET /v2/company/{company_id}/locations/{location_id}.

ParameterTypeDescription
location_id *integerLocation id (from 7shifts_list_locations).
company_idintegerCompany id. Default: the company of the connected token.

7shifts_list_departments List departments

List departments, optionally for one location. 7shifts API: GET /v2/company/{company_id}/departments.

ParameterTypeDescription
company_idintegerCompany id. Default: the company of the connected token.
cursorstringCursor from the previous page's cursor.next.
limitintegerItems per page.
location_idintegerOnly departments of this location.
modified_sincestringOnly items modified after this ISO 8601 date-time.

7shifts_list_roles List roles

List job roles (positions), optionally for one location or department. 7shifts API: GET /v2/company/{company_id}/roles.

ParameterTypeDescription
company_idintegerCompany id. Default: the company of the connected token.
cursorstringCursor from the previous page's cursor.next.
department_idintegerOnly roles of this department.
limitintegerItems per page.
location_idintegerOnly roles of this location.
modified_sincestringOnly items modified after this ISO 8601 date-time.

7shifts_list_inactive_reasons List inactive reasons

List the reasons used to deactivate an employee. 7shifts API: GET /v2/company/{company_id}/inactive_reasons.

ParameterTypeDescription
company_idintegerCompany id. Default: the company of the connected token.

7shifts_list_users List employees

List employees (users) with their role, location and department ids. Filter by status (active or inactive) or name. 7shifts API: GET /v2/company/{company_id}/users.

ParameterTypeDescription
company_idintegerCompany id. Default: the company of the connected token.
cursorstringCursor from the previous page's cursor.next.
department_idintegerOnly employees in this department.
limitintegerItems per page.
location_idintegerOnly employees at this location.
modified_sincestringOnly items modified after this ISO 8601 date-time.
namestringFilter by employee name.
role_idintegerOnly employees with this role.
sort_bystringSort field, as the 7shifts API names it.
statusstringOnly active or only inactive employees.

7shifts_get_user Get an employee

Get one employee by id, with profile fields. 7shifts API: GET /v2/company/{company_id}/users/{identifier}.

ParameterTypeDescription
identifier *stringEmployee id (from 7shifts_list_users).
company_idintegerCompany id. Default: the company of the connected token.
include_inactivebooleanAlso find an inactive employee.

7shifts_list_user_assignments List an employee's assignments

List the locations, departments and roles one employee is assigned to. 7shifts API: GET /v2/company/{company_id}/users/{user_id}/assignments.

ParameterTypeDescription
user_id *integerEmployee id (from 7shifts_list_users).
company_idintegerCompany id. Default: the company of the connected token.

7shifts_list_shifts List shifts

List scheduled shifts, filtered by time window, location, department, role or employee. Use start and end bounds for a date range. 7shifts API: GET /v2/company/{company_id}/shifts.

ParameterTypeDescription
company_idintegerCompany id. Default: the company of the connected token.
cursorstringCursor from the previous page's cursor.next.
department_idintegerOnly shifts in this department.
end_gtestringShifts ending at or after this date-time.
end_ltestringShifts ending at or before this date-time.
include_draftbooleanInclude draft (unpublished) shifts.
limitintegerItems per page.
location_idintegerOnly shifts at this location.
modified_sincestringOnly items modified after this ISO 8601 date-time.
openbooleanOnly open (unassigned) shifts.
role_idintegerOnly shifts for this role.
sort_bystringSort field, as the 7shifts API names it.
sort_dirstringSort direction.
start_gtestringShifts starting at or after this date-time.
start_ltestringShifts starting at or before this date-time.
user_idintegerOnly shifts of this employee.

7shifts_get_shift Get a shift

Get one shift by id. 7shifts API: GET /v2/company/{company_id}/shifts/{shift_id}.

ParameterTypeDescription
shift_id *integerShift id (from 7shifts_list_shifts).
company_idintegerCompany id. Default: the company of the connected token.
include_deletedbooleanAlso return a deleted shift.

7shifts_list_time_punches List time punches

List clock-in and clock-out records (time punches), filtered by employee, location, role, approval or clock time. 7shifts API: GET /v2/company/{company_id}/time_punches.

ParameterTypeDescription
approvedbooleanOnly approved (true) or unapproved (false) punches.
business_date_endstringLast business date (YYYY-MM-DD).
business_date_startstringFirst business date (YYYY-MM-DD).
clocked_in_gtestringPunches clocked in at or after this date-time.
clocked_in_ltestringPunches clocked in at or before this date-time.
clocked_out_gtestringPunches clocked out at or after this date-time.
clocked_out_ltestringPunches clocked out at or before this date-time.
company_idintegerCompany id. Default: the company of the connected token.
cursorstringCursor from the previous page's cursor.next.
department_idintegerOnly punches in this department.
include_deletedbooleanInclude deleted punches.
limitintegerItems per page.
location_idintegerOnly punches at this location.
modified_sincestringOnly items modified after this ISO 8601 date-time.
role_idintegerOnly punches for this role.
sort_bystringSort field, as the 7shifts API names it.
user_idintegerOnly punches of this employee.

7shifts_get_time_punch Get a time punch

Get one time punch by id. 7shifts API: GET /v2/company/{company_id}/time_punches/{time_punch_id}.

ParameterTypeDescription
time_punch_id *integerTime punch id (from 7shifts_list_time_punches).
company_idintegerCompany id. Default: the company of the connected token.