ZenHR MCP by usefulapi
v1.2.1Read 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.
| Parameter | Type | Description |
|---|---|---|
page | integer | Page number, from 1 (default 1). The reply's `pagination` gives the total. |
per_page | integer | Records per page, 1-100 (default: the API's own default). |
zenhr_list_departments List departments
The departments of one branch, page by page.
| Parameter | Type | Description |
|---|---|---|
branch_id * | integer | The branch id (an integer, from zenhr_list_branches). |
page | integer | Page number, from 1 (default 1). The reply's `pagination` gives the total. |
per_page | integer | Records 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.
| Parameter | Type | Description |
|---|---|---|
branch_id * | integer | The branch id (an integer, from zenhr_list_branches). |
page | integer | Page number, from 1 (default 1). The reply's `pagination` gives the total. |
per_page | integer | Records 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.
| Parameter | Type | Description |
|---|---|---|
branch_id * | integer | The branch id (an integer, from zenhr_list_branches). |
employee_id * | integer | The 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.
| Parameter | Type | Description |
|---|---|---|
branch_id * | integer | The branch id (an integer, from zenhr_list_branches). |
employee_id * | integer | The 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.
| Parameter | Type | Description |
|---|---|---|
branch_id * | integer | The branch id (an integer, from zenhr_list_branches). |
page | integer | Page number, from 1 (default 1). The reply's `pagination` gives the total. |
per_page | integer | Records 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.
| Parameter | Type | Description |
|---|---|---|
branch_id * | integer | The branch id (an integer, from zenhr_list_branches). |
employee_id | integer | The employee id (an integer, from zenhr_list_employees). |
page | integer | Page number, from 1 (default 1). The reply's `pagination` gives the total. |
per_page | integer | Records 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.
| Parameter | Type | Description |
|---|---|---|
branch_id * | integer | The branch id (an integer, from zenhr_list_branches). |
from_date | string | A date, YYYY-MM-DD. |
page | integer | Page number, from 1 (default 1). The reply's `pagination` gives the total. |
per_page | integer | Records per page, 1-100 (default: the API's own default). |
to_date | string | A date, YYYY-MM-DD. |