Truein MCP by usefulapi

v1.2.1
io.usefulapi/truein Checked 2 days ago Published 10 hours ago

Read staff, punches, timesheets, leave and schedules; record punches and leave in Truein.

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

truein_list_employees List employees

List staff master records (employee id, name, status, manager). Use status=active to see current staff. Truein GET /apis/ext/attendance/v1.0/getEmployeeDtls.

ParameterTypeDescription
empIdstringEmployee ID. Leave empty to list all staff.
lastUidstringPagination cursor: the last_uid value from the previous reply.
managerEmpIdstringOnly staff who report to this manager employee ID.
modifiedAfterstringOnly records added or updated after this time, format YYYY-MM-DD HH:MM:SS.
statusstringFilter by status: active or inactive.

truein_list_punch_pairs List punch pairs

List clock-in and clock-out punch pairs for all staff, 1000 records per call. Send lastUid=0 first, then the uid of the last record for the next page. Filters on the clock-in time. Truein GET /apis/ext/attendance/v1.0/inOutDtls.

ParameterTypeDescription
lastUid *stringPagination cursor. Send 0 on the first call.
emp_idstringEmployee IDs, comma-separated, no spaces.
from_datestringStart of the clock-in window, YYYY-MM-DD (inclusive).
to_datestringEnd of the clock-in window, YYYY-MM-DD (inclusive).

truein_get_daily_attendance_log Get daily attendance log

Get the attendance log for one day: who was present, absent or late. Paginated by lastUid (send 0 first). Truein GET /apis/ext/attendance/v1.0/dailyAttendanceLog.

ParameterTypeDescription
date *stringDay to read, YYYY-MM-DD.
lastUid *stringPagination cursor. Send 0 on the first call.
attendanceStatusstringFilter by attendance status.
categorystringFilter by staff category.
emp_idstringEmployee IDs, comma-separated.
include_absentstringtrue to include absent staff.
site_namestringFilter by site name.

truein_get_punch_log Get punch log

Get raw punch records (each clock event) for a time window or employee. Paginated by lastUid. Truein GET /ext/v1/time-tracking/getPunchLog.

ParameterTypeDescription
emp_idstringEmployee ID.
from_timestringStart time, YYYY-MM-DD HH:mm:ss.
lastUidstringPagination cursor. Send 0 on the first call.
to_timestringEnd time, YYYY-MM-DD HH:mm:ss.

truein_get_timesheet_summary Get timesheet summary

Get the hours worked per employee for a date range, optionally with leave split and job-wise totals. Truein GET /ext/v1/timesheet/getTimesheetSummary.

ParameterTypeDescription
categorystringStaff category.
empIdstringEmployee ID.
fromDatestringStart date, YYYY-MM-DD.
includeAbsentstringtrue to include absent days.
includeJobWiseSummarystringtrue to add job-wise totals.
includeLeaveBifurcationstringtrue to split leave hours out.
jobCodestringJob code.
siteCodestringSite code.
toDatestringEnd date, YYYY-MM-DD.

truein_get_leave Get leave requests

List leave requests with their approval status for a site or employee. Truein GET /ext/v1/leave/getLeave.

ParameterTypeDescription
approvalStatusstringApproval status filter.
empIdstringEmployee ID.
extRefIdstringYour own reference id for the request.
fromDatestringStart date, YYYY-MM-DD.
leaveCodesstringLeave codes, comma-separated (for example PTO).
searchStringstringFree-text search.
siteCodestringSite code.
toDatestringEnd date, YYYY-MM-DD.

truein_get_leave_lite Get leave-lite requests

List leave-lite requests (short leave) with approval status. Truein GET /ext/v1/leave/getLeaveLite.

ParameterTypeDescription
approvalStatusstringApproval status filter.
empIdstringEmployee ID.
fromDatestringStart date, YYYY-MM-DD.
leaveCodesstringLeave codes, comma-separated.
searchStringstringFree-text search.
siteCodestringSite code.
toDatestringEnd date, YYYY-MM-DD.

truein_get_schedule Get shift schedule

Get who is scheduled on which shift and job for a date at a site. Paginated. Truein GET /ext/v1/schedule/getSchedule.

ParameterTypeDescription
datestringDate, YYYY-MM-DD.
employeeIdsstringEmployee IDs, comma-separated.
jobCodestringJob code.
pagestringPage number.
pageSizestringRecords per page.
shiftCodestringShift code.
siteCodestringSite code.

truein_get_shifts List shifts

List shift definitions (code, name, start and end times) for a site. Truein GET /ext/v1/shift/getShifts.

ParameterTypeDescription
shiftCodestringShift code.
shiftNamestringShift name.
siteCodestringSite code.

truein_get_client_sites List client sites

List sites (work locations) with their codes. Truein GET /ext/v1/client-site/getClientSites.

ParameterTypeDescription
siteCodestringSite code. Leave empty to list all sites.

truein_get_regions List regions

List regions that group sites. Truein GET /ext/v1/region/getRegions.

ParameterTypeDescription
regionNamestringRegion name.

truein_get_public_holidays List public holidays

List public holidays for a year or a date. Truein GET /ext/v1/holiday/getPublicHoliday.

ParameterTypeDescription
extRefIdstringYour own reference id.
holidayDatestringHoliday date, YYYY-MM-DD.
yearstringYear, for example 2026.

truein_get_geofencing_locations List geofence locations

List the geofenced locations used for GPS attendance at a site. Truein GET /ext/v1/geofencing-location/getGeoFencingLocations.

ParameterTypeDescription
siteCodestringSite code.

truein_get_spoof_punches List spoof alerts

List punches that Truein flagged as possible spoofing (for example a photo held up to the camera). Truein GET /ext/v1/alerts/getSpoofPunches.

ParameterTypeDescription
empIdsstringEmployee IDs, comma-separated.
fromDatestringStart date, YYYY-MM-DD.
siteCodesstringSite codes, comma-separated.
toDatestringEnd date, YYYY-MM-DD.

truein_get_kiosk_devices List kiosk devices

List the kiosk (punch device) records for a site. Truein GET /ext/v1/kiosk-device/getKioskDevice.

ParameterTypeDescription
kioskIdstringKiosk id.
siteCodestringSite code.

truein_get_punch_checklist_answers Get punch checklist answers

Get the answers staff gave to the punch checklist questions for a date. Truein GET /ext/v1/timesheet/getPunchChecklistAnswers.

ParameterTypeDescription
datestringDate, YYYY-MM-DD.
empIdstringEmployee ID.
punchTypestringPunch type (In or Out).

truein_clock_in Clock an employee in

WRITE: record a clock-in punch for an employee at a site, at the given time. Truein POST /v1/time-tracking/clockIn. Geofenced sites may reject a punch without a photo or location.

ParameterTypeDescription
empId *stringEmployee ID.
inTime *stringClock-in time, YYYY-MM-DD HH:mm:ss.
siteCode *stringSite code where the punch is made.
jobCodestringJob code, if the punch is for a job.

truein_clock_out Clock an employee out

WRITE: record a clock-out punch for an employee at a site, at the given time. Truein POST /v1/time-tracking/clockOut.

ParameterTypeDescription
empId *stringEmployee ID.
outTime *stringClock-out time, YYYY-MM-DD HH:mm:ss.
siteCode *stringSite code where the punch is made.
jobCodestringJob code, if the punch is for a job.

truein_request_leave Request leave

WRITE: submit a leave-lite request for an employee for the given dates. The request then waits for approval. Truein POST /ext/v1/leave/addLeaveLite.

ParameterTypeDescription
empId *stringEmployee ID of the person taking leave.
fromDate *stringFirst day of leave, YYYY-MM-DD.
leaveCode *stringLeave type code, for example PTO.
siteCode *stringSite code where the employee is assigned.
toDate *stringLast day of leave, YYYY-MM-DD.
fromDateHalfDaystringFirst Half or Second Half, if the first day is a half day.
leaveReasonstringReason for the leave.
toDateHalfDaystringFirst Half or Second Half, if the last day is a half day.

truein_cancel_leave_request Cancel a leave request

WRITE: cancel a leave-lite request for an employee on the given dates. Truein POST /ext/v1/leave/cancelLeaveLiteStatus.

ParameterTypeDescription
empId *stringEmployee ID.
fromDate *stringFirst day of the leave, YYYY-MM-DD.
leaveCode *stringLeave type code, for example PTO.
siteCode *stringSite code where the employee is assigned.
toDate *stringLast day of the leave, YYYY-MM-DD.
fromDateHalfDaystringFirst Half or Second Half, if the first day was a half day.