ZenHR MCP by usefulapi

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

Read branches, employees, time off and attendance records in ZenHR.

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

zenhr_who_am_i Who am I

The token's identity and scopes: which ZenHR data this connection can read. Use it to check the connection.

zenhr_get_company Get company

The company of this ZenHR instance: id, name, country and active flag.

zenhr_list_branches List branches

The branches (locations or legal entities) of the company, page by page. Branch ids feed the other tools.

ParameterTypeDescription
pageintegerPage number, from 1 (default 1). The reply's `pagination` gives the total.
per_pageintegerRecords per page, 1-100 (default: the API's own default).

zenhr_list_departments List departments

The departments of one branch, page by page.

ParameterTypeDescription
branch_id *integerThe branch id (an integer, from zenhr_list_branches).
pageintegerPage number, from 1 (default 1). The reply's `pagination` gives the total.
per_pageintegerRecords per page, 1-100 (default: the API's own default).

zenhr_list_employees List employees

The employees of one branch, page by page, as ZenHR returns them. Use zenhr_get_employee for one employee.

ParameterTypeDescription
branch_id *integerThe branch id (an integer, from zenhr_list_branches).
pageintegerPage number, from 1 (default 1). The reply's `pagination` gives the total.
per_pageintegerRecords per page, 1-100 (default: the API's own default).

zenhr_get_employee Get an employee

One employee of a branch, by id, as ZenHR returns the record.

ParameterTypeDescription
branch_id *integerThe branch id (an integer, from zenhr_list_branches).
employee_id *integerThe employee id (an integer, from zenhr_list_employees).

zenhr_get_active_professional_data Get active job record

The job record that is active now for one employee: position, department, site, manager and effective dates.

ParameterTypeDescription
branch_id *integerThe branch id (an integer, from zenhr_list_branches).
employee_id *integerThe employee id (an integer, from zenhr_list_employees).

zenhr_list_timeoffs List time-off types

The time-off types (leave policies) of one branch, page by page.

ParameterTypeDescription
branch_id *integerThe branch id (an integer, from zenhr_list_branches).
pageintegerPage number, from 1 (default 1). The reply's `pagination` gives the total.
per_pageintegerRecords per page, 1-100 (default: the API's own default).

zenhr_list_timeoff_transactions List time-off entries

Time-off entries (days taken, added or adjusted) of one branch, or of one employee when employee_id is given. Page by page.

ParameterTypeDescription
branch_id *integerThe branch id (an integer, from zenhr_list_branches).
employee_idintegerThe employee id (an integer, from zenhr_list_employees).
pageintegerPage number, from 1 (default 1). The reply's `pagination` gives the total.
per_pageintegerRecords per page, 1-100 (default: the API's own default).

zenhr_list_attendance_records List attendance records

Clock-in and clock-out records of one branch, between two dates (inclusive), page by page.

ParameterTypeDescription
branch_id *integerThe branch id (an integer, from zenhr_list_branches).
from_datestringA date, YYYY-MM-DD.
pageintegerPage number, from 1 (default 1). The reply's `pagination` gives the total.
per_pageintegerRecords per page, 1-100 (default: the API's own default).
to_datestringA date, YYYY-MM-DD.