Truein MCP by usefulapi
v1.2.1Read 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.
| Parameter | Type | Description |
|---|---|---|
empId | string | Employee ID. Leave empty to list all staff. |
lastUid | string | Pagination cursor: the last_uid value from the previous reply. |
managerEmpId | string | Only staff who report to this manager employee ID. |
modifiedAfter | string | Only records added or updated after this time, format YYYY-MM-DD HH:MM:SS. |
status | string | Filter 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.
| Parameter | Type | Description |
|---|---|---|
lastUid * | string | Pagination cursor. Send 0 on the first call. |
emp_id | string | Employee IDs, comma-separated, no spaces. |
from_date | string | Start of the clock-in window, YYYY-MM-DD (inclusive). |
to_date | string | End 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.
| Parameter | Type | Description |
|---|---|---|
date * | string | Day to read, YYYY-MM-DD. |
lastUid * | string | Pagination cursor. Send 0 on the first call. |
attendanceStatus | string | Filter by attendance status. |
category | string | Filter by staff category. |
emp_id | string | Employee IDs, comma-separated. |
include_absent | string | true to include absent staff. |
site_name | string | Filter 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.
| Parameter | Type | Description |
|---|---|---|
emp_id | string | Employee ID. |
from_time | string | Start time, YYYY-MM-DD HH:mm:ss. |
lastUid | string | Pagination cursor. Send 0 on the first call. |
to_time | string | End 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.
| Parameter | Type | Description |
|---|---|---|
category | string | Staff category. |
empId | string | Employee ID. |
fromDate | string | Start date, YYYY-MM-DD. |
includeAbsent | string | true to include absent days. |
includeJobWiseSummary | string | true to add job-wise totals. |
includeLeaveBifurcation | string | true to split leave hours out. |
jobCode | string | Job code. |
siteCode | string | Site code. |
toDate | string | End 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.
| Parameter | Type | Description |
|---|---|---|
approvalStatus | string | Approval status filter. |
empId | string | Employee ID. |
extRefId | string | Your own reference id for the request. |
fromDate | string | Start date, YYYY-MM-DD. |
leaveCodes | string | Leave codes, comma-separated (for example PTO). |
searchString | string | Free-text search. |
siteCode | string | Site code. |
toDate | string | End 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.
| Parameter | Type | Description |
|---|---|---|
approvalStatus | string | Approval status filter. |
empId | string | Employee ID. |
fromDate | string | Start date, YYYY-MM-DD. |
leaveCodes | string | Leave codes, comma-separated. |
searchString | string | Free-text search. |
siteCode | string | Site code. |
toDate | string | End 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.
| Parameter | Type | Description |
|---|---|---|
date | string | Date, YYYY-MM-DD. |
employeeIds | string | Employee IDs, comma-separated. |
jobCode | string | Job code. |
page | string | Page number. |
pageSize | string | Records per page. |
shiftCode | string | Shift code. |
siteCode | string | Site code. |
truein_get_shifts List shifts
List shift definitions (code, name, start and end times) for a site. Truein GET /ext/v1/shift/getShifts.
| Parameter | Type | Description |
|---|---|---|
shiftCode | string | Shift code. |
shiftName | string | Shift name. |
siteCode | string | Site code. |
truein_get_client_sites List client sites
List sites (work locations) with their codes. Truein GET /ext/v1/client-site/getClientSites.
| Parameter | Type | Description |
|---|---|---|
siteCode | string | Site code. Leave empty to list all sites. |
truein_get_regions List regions
List regions that group sites. Truein GET /ext/v1/region/getRegions.
| Parameter | Type | Description |
|---|---|---|
regionName | string | Region name. |
truein_get_public_holidays List public holidays
List public holidays for a year or a date. Truein GET /ext/v1/holiday/getPublicHoliday.
| Parameter | Type | Description |
|---|---|---|
extRefId | string | Your own reference id. |
holidayDate | string | Holiday date, YYYY-MM-DD. |
year | string | Year, 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.
| Parameter | Type | Description |
|---|---|---|
siteCode | string | Site 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.
| Parameter | Type | Description |
|---|---|---|
empIds | string | Employee IDs, comma-separated. |
fromDate | string | Start date, YYYY-MM-DD. |
siteCodes | string | Site codes, comma-separated. |
toDate | string | End 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.
| Parameter | Type | Description |
|---|---|---|
kioskId | string | Kiosk id. |
siteCode | string | Site 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.
| Parameter | Type | Description |
|---|---|---|
date | string | Date, YYYY-MM-DD. |
empId | string | Employee ID. |
punchType | string | Punch 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.
| Parameter | Type | Description |
|---|---|---|
empId * | string | Employee ID. |
inTime * | string | Clock-in time, YYYY-MM-DD HH:mm:ss. |
siteCode * | string | Site code where the punch is made. |
jobCode | string | Job 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.
| Parameter | Type | Description |
|---|---|---|
empId * | string | Employee ID. |
outTime * | string | Clock-out time, YYYY-MM-DD HH:mm:ss. |
siteCode * | string | Site code where the punch is made. |
jobCode | string | Job 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.
| Parameter | Type | Description |
|---|---|---|
empId * | string | Employee ID of the person taking leave. |
fromDate * | string | First day of leave, YYYY-MM-DD. |
leaveCode * | string | Leave type code, for example PTO. |
siteCode * | string | Site code where the employee is assigned. |
toDate * | string | Last day of leave, YYYY-MM-DD. |
fromDateHalfDay | string | First Half or Second Half, if the first day is a half day. |
leaveReason | string | Reason for the leave. |
toDateHalfDay | string | First 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.
| Parameter | Type | Description |
|---|---|---|
empId * | string | Employee ID. |
fromDate * | string | First day of the leave, YYYY-MM-DD. |
leaveCode * | string | Leave type code, for example PTO. |
siteCode * | string | Site code where the employee is assigned. |
toDate * | string | Last day of the leave, YYYY-MM-DD. |
fromDateHalfDay | string | First Half or Second Half, if the first day was a half day. |