kiwiHR MCP by usefulapi

v1.20.1
io.usefulapi/kiwihr Checked 1 day ago Published 7 hours ago

Read kiwiHR employees, time off, timesheets, projects; create and update employees, timesheets.

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

kiwihr_list_users List employees

List or search employees (kiwiHR 'users') with name, work email, active flag, employee number, employment dates, position, team, location and manager. Filter by active state, team, location, position, e-mail or name. Payroll, bank, tax and insurance data are never included. GraphQL query users.

ParameterTypeDescription
emailstringWork e-mail contains this text.
employment_start_fromstringOnly employees who started on or after this date.
first_namestringFirst name contains this text.
is_activebooleantrue = active employees only, false = deactivated only. Omit for both.
last_namestringLast name contains this text.
limitintegerItems per page (1-100, default 50).
location_idstringLocation id (from kiwihr_list_locations).
offsetintegerItems to skip (default 0). The reply's pageInfo.next says whether there is another page.
position_idstringPosition id (from kiwihr_list_positions).
sort_bystringSort field.
sort_directionstringSort direction (default ASC).
team_idstringTeam id (from kiwihr_list_teams).
user_idsarrayOnly these employee ids.

kiwihr_get_user Get employee

One employee by id: the list fields plus probation end, about-me, language, invitation status, work phones, all teams, work schedule and custom field values. With include_personal=true it also returns birth date, private e-mail and phone, nationality, gender, pronouns, home address, emergency contact and custom fields of the personal sections. Payroll, bank (IBAN/BIC), tax and insurance data are never returned. GraphQL query user.

ParameterTypeDescription
user_id *stringEmployee id.
include_personalbooleanAlso return private data (birth date, private contact data, address, emergency contact). Default false.

kiwihr_list_teams List teams

List teams and departments (id, name, kind GROUP or DEPARTMENT). Use the ids to filter employees. GraphQL query teams.

ParameterTypeDescription
limitintegerItems per page (1-100, default 50).
offsetintegerItems to skip (default 0). The reply's pageInfo.next says whether there is another page.
sort_bystring
sort_directionstringSort direction (default ASC).

kiwihr_list_locations List locations

List office locations (id, name). Use the ids to filter employees. GraphQL query locations.

ParameterTypeDescription
limitintegerItems per page (1-100, default 50).
offsetintegerItems to skip (default 0). The reply's pageInfo.next says whether there is another page.
sort_bystring
sort_directionstringSort direction (default ASC).

kiwihr_list_positions List positions

List job positions (id, name). Use the ids to filter employees. GraphQL query positions.

ParameterTypeDescription
limitintegerItems per page (1-100, default 50).
offsetintegerItems to skip (default 0). The reply's pageInfo.next says whether there is another page.
sort_bystring
sort_directionstringSort direction (default ASC).

kiwihr_list_custom_fields List custom fields

List the company's custom employee profile fields (id, name, section, data type, choice options). Payroll and bank sections are listed by name only; their values are never returned by any tool. GraphQL query customFields.

ParameterTypeDescription
limitintegerItems per page (1-100, default 50).
offsetintegerItems to skip (default 0). The reply's pageInfo.next says whether there is another page.
sort_bystring
sort_directionstringSort direction (default ASC).

kiwihr_list_time_off_types List time off types

List time off (absence) types such as vacation or sick leave: id, name, colour, visibility to team members. Use the ids with kiwihr_get_time_off_usage and kiwihr_list_time_off_balances. GraphQL query timeOffTypes.

ParameterTypeDescription
limitintegerItems per page (1-100, default 50).
offsetintegerItems to skip (default 0). The reply's pageInfo.next says whether there is another page.
sort_bystring
sort_directionstringSort direction (default ASC).

kiwihr_list_time_off_balances List time off balances

Time off balances of all employees: per employee and time off rule the allowance, accrued, used, requested, planned and available days, carry-over and the accrual/usage periods. Filter by time off type, active state and usage period. The API has no per-employee filter or paging for this query; read the result per user. GraphQL query timeOffBalances.

ParameterTypeDescription
is_activebooleantrue = active balances only.
sort_bystring
sort_directionstringSort direction (default ASC).
time_off_type_idstringOnly this time off type (from kiwihr_list_time_off_types).
usage_period_end_tostringUsage period ends on or before this date.
usage_period_start_fromstringUsage period starts on or after this date.

kiwihr_get_time_off_usage Get time off usage

Who took (or requested) how much time off in a date range: per employee the request count and used days for each time off rule of the chosen time off types. Use it for absence reports ('who was off in March?'). Optional employee filters as in kiwihr_list_users. GraphQL query timeOffRequestUsageStatements.

ParameterTypeDescription
date_from *stringRange start (YYYY-MM-DD).
date_to *stringRange end (YYYY-MM-DD).
time_off_type_ids *arrayTime off type ids (from kiwihr_list_time_off_types).
is_activebooleantrue = active employees only.
limitintegerItems per page (1-100, default 50).
location_idstringOnly employees at this location.
offsetintegerItems to skip (default 0). The reply's pageInfo.next says whether there is another page.
sort_bystring
sort_directionstringSort direction (default ASC).
team_idstringOnly employees of this team.

kiwihr_list_timesheets List timesheets

Daily timesheets of one employee (or the key's admin user when user_id is omitted) in a date range: expected, tracked, time off, holiday and break time in SECONDS, approval flag, time offs, holidays, entries (start/end, type, note, project) and break-rule violations. GraphQL query timesheets.

ParameterTypeDescription
date_from *stringRange start (YYYY-MM-DD).
date_to *stringRange end (YYYY-MM-DD).
limitintegerDays per page (1-100, default 50).
offsetintegerItems to skip (default 0). The reply's pageInfo.next says whether there is another page.
user_idstringEmployee id. Omit for the admin user the API key acts as.

kiwihr_get_timesheet Get timesheet

The timesheet of ONE employee for ONE day (user_id omitted = the admin user the key acts as), with all entries and their ids (needed to update or delete an entry). Times in seconds. GraphQL query timesheet.

ParameterTypeDescription
date *stringDay (YYYY-MM-DD).
user_idstringEmployee id. Omit for the admin user the API key acts as.

kiwihr_get_attendance_statement Get attendance statement

Attendance summary of ONE employee over a date range: expected, tracked, total, time off and holiday time (seconds) and days, balance, overtime, meal vouchers, and tracked time per project. GraphQL query attendanceStatement.

ParameterTypeDescription
date_from *stringRange start (YYYY-MM-DD).
date_to *stringRange end (YYYY-MM-DD).
user_id *stringEmployee id.

kiwihr_list_attendance_statements List attendance statements

Attendance summaries of ALL employees over a date range (expected vs tracked time, time off, holidays, balance, overtime, tracked time per project). Optionally only employees with time tracked on a project, or with uncategorized time; inactive employees can be included. GraphQL query attendanceStatements.

ParameterTypeDescription
date_from *stringRange start (YYYY-MM-DD).
date_to *stringRange end (YYYY-MM-DD).
has_uncategorized_timebooleantrue = only employees with tracked time not assigned to any project.
include_inactive_usersbooleanAlso include deactivated employees (default false).
project_idstringOnly employees with tracked time in this project.
sort_bystring
sort_directionstringSort direction (default ASC).

kiwihr_list_overtime_balances List overtime balances

Current overtime balance (seconds) per employee. GraphQL query overtimeBalanceStatements.

ParameterTypeDescription
limitintegerItems per page (1-100, default 50).
offsetintegerItems to skip (default 0). The reply's pageInfo.next says whether there is another page.
sort_bystring
sort_directionstringSort direction (default ASC).

kiwihr_list_projects List projects

List time-tracking projects (id, name, status ACTIVE or INACTIVE). GraphQL query projects.

ParameterTypeDescription
limitintegerItems per page (1-100, default 50).
offsetintegerItems to skip (default 0). The reply's pageInfo.next says whether there is another page.
sort_bystring
sort_directionstringSort direction (default ASC).
statusstringOnly projects with this status.

kiwihr_get_project Get project

One time-tracking project by id (name, status). GraphQL query project.

ParameterTypeDescription
project_id *stringProject id.

kiwihr_list_journeys List journeys

List onboarding/offboarding journeys (id, name, status DRAFT/ONGOING/COMPLETED/CANCELLED, assignee, journey type, custom date). Filter by status, assignee, type or team. GraphQL query journeys.

ParameterTypeDescription
assignee_idsarrayOnly journeys assigned to these employee ids.
journey_type_idsarrayOnly these journey types (from kiwihr_list_journey_types).
limitintegerItems per page (1-100, default 50).
offsetintegerItems to skip (default 0). The reply's pageInfo.next says whether there is another page.
statusstringOnly journeys with this status.
team_idsarrayOnly journeys of employees in these teams.

kiwihr_get_journey Get journey

One journey by id with its steps (name, description, fixed start and due dates). With include_personal=true it also returns the private e-mail address stored on the journey. GraphQL query journey.

ParameterTypeDescription
journey_id *stringJourney id.
include_personalbooleanAlso return the private e-mail on the journey. Default false.

kiwihr_list_journey_templates List journey templates

List journey templates (id, name, description, type). Use a template id with kiwihr_create_journey. GraphQL query journeyTemplates.

ParameterTypeDescription
journey_type_idstringOnly templates of this journey type.
limitintegerItems per page (1-100, default 50).
offsetintegerItems to skip (default 0). The reply's pageInfo.next says whether there is another page.

kiwihr_list_journey_types List journey types

List journey types such as pre-onboarding, onboarding or offboarding (id, name, key, archived date). GraphQL query journeyTypes.

ParameterTypeDescription
limitintegerItems per page (1-100, default 50).
offsetintegerItems to skip (default 0). The reply's pageInfo.next says whether there is another page.

kiwihr_create_timesheet_entry Create timesheet entry

WRITE: add a time entry to the timesheet of one employee on one day (user_id omitted = the admin user the key acts as). type MANUAL = worked time (give start_at and end_at as HH:mm:ss, or a part_of_day), BREAK = a break. Optional project and note. Creates a new entry each call (not idempotent). Returns the updated day. GraphQL mutation createTimesheetEntry.

ParameterTypeDescription
date *stringDay (YYYY-MM-DD).
type *stringMANUAL = worked time, BREAK = break.
end_atstringEnd time HH:mm:ss.
notestringNote for the entry.
part_of_daystringFor day-based tracking instead of start/end.
project_idstringProject id (from kiwihr_list_projects).
start_atstringStart time HH:mm:ss.
user_idstringEmployee id. Omit for the admin user the API key acts as.

kiwihr_update_timesheet_entry Update timesheet entry

WRITE: change an existing timesheet entry (get its id from kiwihr_get_timesheet): times, part of day, project or note. Only the fields you pass are changed. Setting the same values again gives the same result. Returns the updated day. GraphQL mutation updateTimesheetEntry.

ParameterTypeDescription
entry_id *stringTimesheet entry id.
end_atstringNew end time HH:mm:ss.
notestringNew note.
part_of_daystringNew part of day.
project_idstringNew project id.
start_atstringNew start time HH:mm:ss.

kiwihr_delete_timesheet_entry Delete timesheet entry

WRITE, DESTRUCTIVE: permanently delete one timesheet entry by id (get it from kiwihr_get_timesheet). This cannot be undone. Returns true when deleted. GraphQL mutation deleteTimesheetEntry.

ParameterTypeDescription
entry_id *stringTimesheet entry id.

kiwihr_create_project Create project

WRITE: create a time-tracking project (name, status ACTIVE or INACTIVE; default ACTIVE). Creates a new project each call (not idempotent). GraphQL mutation createProject.

ParameterTypeDescription
name *stringProject name.
statusstringACTIVE projects can be used for time tracking.

kiwihr_update_project Update project

WRITE: rename a project or switch it ACTIVE/INACTIVE (INACTIVE projects can no longer be used for time tracking). Only the fields you pass are changed. GraphQL mutation updateProject.

ParameterTypeDescription
project_id *stringProject id.
namestringNew name.
statusstringNew status.

kiwihr_create_user Create employee

WRITE: add a new employee record (first name, last name and work e-mail are required; optional start date, manager, teams, position, location and phones). Creates a new employee each call (not idempotent). No invitation is sent by this tool. Payroll and bank data cannot be set. GraphQL mutation createUser.

ParameterTypeDescription
email *stringWork e-mail address.
first_name *string
last_name *string
employment_start_datestringFirst day of employment (YYYY-MM-DD).
genderstring
location_idstringLocation id (from kiwihr_list_locations).
manager_idstringManager's employee id.
position_idstringPosition id (from kiwihr_list_positions).
team_idsarrayTeam ids (from kiwihr_list_teams).
work_phonesarray

kiwihr_update_user Update employee

WRITE: change an employee's work profile: name, start date, about-me, work phones, position, team(s), location, manager. Only the fields you pass are changed (team_ids replaces the whole team list). Private, payroll and bank data cannot be changed with this tool. GraphQL mutation updateUser.

ParameterTypeDescription
user_id *stringEmployee id.
about_mestring
employment_start_datestring
first_namestring
last_namestring
location_idstring
manager_idstring
position_idstring
team_idsarrayReplaces the list of teams.
work_phonesarrayReplaces the list of work phones.

kiwihr_deactivate_user Deactivate employee

WRITE, ACCESS-CHANGING: deactivate an active employee (typically after they leave): they lose access to kiwiHR and drop out of active lists. Reversible with kiwihr_activate_user. GraphQL mutation deactivateUser.

ParameterTypeDescription
user_id *stringEmployee id.

kiwihr_activate_user Activate employee

WRITE: re-activate a deactivated employee so they appear in active lists and can use kiwiHR again. GraphQL mutation activateUser.

ParameterTypeDescription
user_id *stringEmployee id.

kiwihr_create_journey Create journey

WRITE: create an onboarding/offboarding journey for an employee from a journey type and optionally a template (ids from kiwihr_list_journey_types / kiwihr_list_journey_templates). Creates a new journey each call (not idempotent). It does not publish it; check the status in the reply. GraphQL mutation createJourney.

ParameterTypeDescription
assignee_id *stringEmployee id the journey is for.
journey_type_id *stringJourney type id.
custom_datestringCustom date steps can relate to (YYYY-MM-DD).
custom_date_namestringLabel of the custom date.
journey_template_idstringJourney template id.
namestringJourney name.
personal_emailstringPrivate e-mail (for pre-onboarding).
pre_onboarding_accessbooleanEnable pre-onboarding access.