Go2Clock MCP by usefulapi

v1.9.0
io.usefulapi/go2clock Checked 1 day ago Published 11 hours ago

Read clock records, timesheets and rotas; change employees and rotas, add clock records in Go2Clock.

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

go2clock_list_users List clock users

List every clock user with id, name, department, shift, payroll number and manager flag. Clock PINs are removed. Go2Clock API: POST /api/users/.

go2clock_list_employees List employee details

List employee details: contact, department, trade, pay rates, roles, start and termination dates. Go2Clock API: POST /api/employees/.

go2clock_list_clock_records List clock records for a day

List every clocking record (punch) for one date. Go2Clock API: POST /api/punches/ with punch_date.

ParameterTypeDescription
punch_date *stringDate to read, yyyy-mm-dd.

go2clock_list_clock_records_range List clock records for a date range

List clocking records between two dates, optionally for one employee. Keep the range to 7 days or fewer per call; Go2Clock advises against larger pulls. Go2Clock API: POST /api/punches_range/.

ParameterTypeDescription
end_date *stringLast date, yyyy-mm-dd.
start_date *stringFirst date, yyyy-mm-dd.
useridstringEmployee ID (userid), numeric.

go2clock_get_timesheet_csv Get timesheet CSV

Generate the timesheet report as CSV for up to 7 days, optionally for one department or one employee. Returns the CSV text. Go2Clock API: POST /api/timesheet_csv_v1.

ParameterTypeDescription
nodays *integerNumber of days, 1 to 7.
start_date *stringFirst day of the report, yyyy-mm-dd.
deptstringDepartment name to filter by (default: all departments).
useridstringEmployee ID (userid), numeric.

go2clock_get_rota Get employee rota

Read an employee's rota (shift schedule) between two dates: shift name, colour and planned hours per day. Go2Clock API: GET /api/employee_rota.

ParameterTypeDescription
end_date *stringLast date, yyyy-mm-dd.
start_date *stringFirst date, yyyy-mm-dd.
userid *stringEmployee ID (userid), numeric.

go2clock_update_employee Update employee details

Change some details of one existing employee. Send only the fields to change. Go2Clock API: PUT /api/employee_update. Does not change sign-in passwords or roles.

ParameterTypeDescription
userid *stringEmployee ID (userid), numeric.
deptnamestring
emailstring
holiday_total_allowedstring | number
home_addressstring
home_phonestring
hourlypaystring | number
max_hours_daystring | number
max_hours_weekstring | number
mobilenumberstring
namestring
payratestring | number
payrollnostring
peoplehr_employeeidstring
sagehr_employeenostring
start_datestring
termination_datestring
termination_reasonstring
tradenamestring

go2clock_upload_employees Create or update employees

Upload a list of employees (new or changed). Go2Clock keys each record on userid. Sends a JSON array. Go2Clock API: PUT /api/employees/. Does not set passwords or roles.

ParameterTypeDescription
employees *arrayEmployees to create or update.

go2clock_upload_clock_record Add a clock record

Add one clocking record (punch) for an employee. Go2Clock refuses a duplicate record. Go2Clock API: PUT /api/punches/.

ParameterTypeDescription
checktime *stringWhen the employee clocked, yyyy-mm-ddThh:mm:ss.
checktype *string | number0 = in, 1 = out, or another number your instance uses.
userid *stringEmployee ID (userid), numeric.
deviceserialstring
eventdescriptionstring
latitudestring | number
longitudestring | number
sensoridstring | number
worktypestring | numberJob code number.

go2clock_create_rota Create rota shifts

Put a named shift on an employee's rota for one or more days from a start date. An existing rota entry on the same date is replaced. The shift name must match a shift in Go2Clock's shift settings. Go2Clock API: POST /api/employee_rota.

ParameterTypeDescription
shift_name *stringShift name exactly as set in Go2Clock shift settings.
start_date *stringFirst day of the shift, yyyy-mm-dd.
userid *stringEmployee ID (userid), numeric.
nodaysintegerConsecutive days from the start date (default 1).