Kolay IK MCP by usefulapi

v1.8.1
io.usefulapi/kolay-ik Checked 2 days ago Published 1 day ago

Read employees, leave and payroll; create leave, time records and events in Kolay IK.

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

kolayik_get_me Get the token's user

The Kolay IK user the API token belongs to: id, name, email, work email. A cheap check that the connection works. GET /v2/profile/me.

kolayik_list_people List people

List employees (id, first and last name), 60 per page. By default only active employees; set status to terminated for people who left. Search by name with q. Filter by hire date (active people) or termination date (terminated people). The reply has total, currentPage and lastPage; request the next page with page. POST /v2/person/list (a read).

ParameterTypeDescription
hired_fromstringActive people hired on or after this date.
hired_tostringActive people hired on or before this date.
pageintegerPage number, from 1 (default 1).
qstringSearch text in first and last name (or the national id number).
statusstringactive (default) or terminated.
terminated_fromstringTerminated people who left on or after this date.
terminated_tostringTerminated people who left on or before this date.

kolayik_get_person Get a person

Full profile of one employee: contact data, employment dates, contract, units, compensation and custom data fields. National id numbers and bank numbers are removed. GET /v2/person/view/{id}.

ParameterTypeDescription
person_id *stringPerson id (from kolayik_list_people).

kolayik_get_person_summary Get a person summary

Short profile of one employee: name, contact data, current units (company, location, department, position) and manager. GET /v2/person/view-summary/{id}.

ParameterTypeDescription
person_id *stringPerson id.

kolayik_get_person_leave_balances Get leave balances

Leave entitlement of one employee per leave type: earned, used, carried over and unused days. GET /v2/person/leave-status/{id}.

ParameterTypeDescription
person_id *stringPerson id.

kolayik_list_person_trainings List a person's trainings

Trainings assigned to one employee. GET /v2/person/list-trainings/{id}.

ParameterTypeDescription
person_id *stringPerson id.

kolayik_list_person_fields List person data fields

The custom data fields a person can have (fieldToken, type, category). Use the fieldToken in kolayik_update_person and kolayik_create_person. GET /v2/person/show-available-data-fields.

kolayik_list_units List organization units

The organization tree: unit types (company, branch, department, position ...) and their items with ids. GET /v2/unit/show-unit-tree.

kolayik_list_approval_processes List approval processes

The approval chains configured in the account (leave, expense and similar), with their steps and approvers. Filter by name or by a person in the steps. GET /v2/approval-process/list.

ParameterTypeDescription
person_idstringOnly chains with this person in a step.
searchstringName contains this text.

kolayik_list_leaves List leave records

List leave (time off) records, newest data first as the vendor orders them. Filter by status, a date range or one person. Each record has the leave type, dates, person, replacement, status (approved/waiting/rejected) and used days. GET /v2/leave/list.

ParameterTypeDescription
end_datestringLeaves up to this date.
include_inactive_employeesbooleanInclude people who have left (default false).
limitintegerResults per page, 1-100.
person_idstringOnly this person.
start_datestringLeaves from this date on.
statusstringwaiting, approved, rejected or cancelled.

kolayik_get_leave Get a leave record

One leave record with type, dates, return date, comment, person, replacement person, status and used days. GET /v2/leave/view/{id}.

ParameterTypeDescription
leave_id *stringLeave id (from kolayik_list_leaves).

kolayik_create_leave Create a leave record

WRITE: records leave for an employee and deducts the used days from their balance. The vendor may approve it immediately, and it is visible to the employee and their manager. Find the leave type id in an existing leave record (kolayik_list_leaves) or the person's balances (kolayik_get_person_leave_balances). Not idempotent: a second call creates a second record. POST /v2/leave/create.

ParameterTypeDescription
end_date *stringEnd, yyyy-mm-dd hh:mm:ss.
leave_type_id *stringLeave type id (for example from kolayik_get_person_leave_balances).
person_id *stringThe employee taking leave.
start_date *stringStart, yyyy-mm-dd hh:mm:ss.
commentstringNote on the leave record.
replacement_person_idstringColleague covering during the leave.

kolayik_list_timelogs List timelogs

List time records (work hours, overtime) with person, start and end, minutes used, status and type. Filter by person, type, status and date range. The reply has searchCount, totalCount, page and limit. POST /v2/timelog/list (a read).

ParameterTypeDescription
end_datestringRecords up to this date.
limitintegerResults per page, 1-100.
pageintegerPage number, from 1 (default 1).
person_idstringOnly this person.
sort_orderstringSort direction (default desc).
sort_typestringSort by startDate (default) or endDate.
start_datestringRecords from this date on.
statusstringwaiting, approved, rejected or cancelled.
typestringwork or overtime.

kolayik_get_timelog Get a timelog

One time record by id. GET /v2/timelog/view/{id}.

ParameterTypeDescription
timelog_id *stringTimelog id (from kolayik_list_timelogs).

kolayik_create_timelog Create a timelog

WRITE: adds a time record (work hours or overtime) for an employee. With status approved it counts immediately (overtime may flow into payroll); with waiting it enters the approval process. Not idempotent: a second call creates a second record. POST /v2/timelog/create.

ParameterTypeDescription
end_date *stringEnd, yyyy-mm-dd hh:mm:ss.
person_id *stringThe employee.
start_date *stringStart, yyyy-mm-dd hh:mm:ss.
status *stringwaiting (goes through the approval process), approved (counts immediately), rejected or cancelled.
descriptionstringNote on the record.
typestringwork or overtime.

kolayik_delete_timelog Delete a timelog

WRITE (destructive): permanently deletes one time record. This cannot be undone. DELETE /v2/timelog/delete/{id}.

ParameterTypeDescription
timelog_id *stringTimelog id to delete.

kolayik_list_transactions List transactions

List employee transactions (expenses, advance payments, bonuses, overtime pay, deductions) with amount, currency, status, paid flag and items. Filter by person, type, status, paid and date range. POST /v2/transaction/list (a read).

ParameterTypeDescription
end_datestringTransactions up to this date.
limitintegerResults per page, 1-100.
pageintegerPage number, from 1 (default 1).
paidbooleantrue = only paid, false = only unpaid.
person_idstringOnly this person.
start_datestringTransactions from this date on.
statusstringdraft, waiting, approved or rejected.
typestringTransaction type.

kolayik_get_transaction Get a transaction

One transaction (expense, advance, bonus ...) with its items. GET /v2/transaction/view/{id}.

ParameterTypeDescription
transaction_id *stringTransaction id (from kolayik_list_transactions).

kolayik_list_expense_categories List expense categories

Expense categories of the account (for example taxi, meals), optionally filtered by title or enabled state. GET /v2/expense/list-categories.

ParameterTypeDescription
enabledbooleantrue = only enabled categories, false = only disabled.
titlestringCategory title contains this text.

kolayik_list_payrolls List payroll periods

Payroll runs of a year: id, period, number of employees, payslips created, errors and total employer cost. Needs a token with the payroll:list scope. Use the id with kolayik_get_payroll_sheet. GET /v2/payroll/list.

ParameterTypeDescription
yearintegerYear (default: the current year).

kolayik_get_payroll_sheet Get a payroll sheet

The full payroll sheet (carsaf bordro) of one payroll run: every employee's gross, net, tax and insurance columns. This is sensitive salary data of all employees (or the filtered ones). Needs a token with the payroll-sheet:view scope. Filter by name, status, salary period, insurance, tax, expense center or units. POST /v2/payroll-sheet/view/{id} (a read).

ParameterTypeDescription
payroll_id *stringPayroll run id (from kolayik_list_payrolls).
salary_periodarraySalary period types (OR).
searchstringEmployee name contains this text.
statusarrayCalculation statuses (OR).
unit_item_idsarrayGroups of unit item ids from kolayik_list_units.

kolayik_list_events List calendar events

List company calendar events (meetings, holidays) with title, start, end and comment. Filter by text and date range. The reply has searchCount, totalCount, page and limit. GET /v2/event/list.

ParameterTypeDescription
endstringEvents up to this date.
limitintegerResults per page, 1-100.
pageintegerPage number, from 1 (default 1).
searchstringTitle contains this text.
startstringEvents from this date on.

kolayik_get_event Get a calendar event

One calendar event. GET /v2/event/view/{id}.

ParameterTypeDescription
event_id *stringEvent id (from kolayik_list_events).

kolayik_create_event Create a calendar event

WRITE: adds an event to the company calendar, visible to the employees who see it. Not idempotent. POST /v2/event/create.

ParameterTypeDescription
end *stringEnd, yyyy-mm-dd hh:mm:ss.
start *stringStart, yyyy-mm-dd hh:mm:ss.
title *stringEvent title.
commentstringEvent description.

kolayik_update_event Update a calendar event

WRITE: changes the title, times or comment of a calendar event (the vendor requires title, start and end). PUT /v2/event/update/{id}.

ParameterTypeDescription
end *stringEnd, yyyy-mm-dd hh:mm:ss.
event_id *stringEvent id.
start *stringStart, yyyy-mm-dd hh:mm:ss.
title *stringEvent title.
commentstringEvent description.

kolayik_delete_event Delete a calendar event

WRITE (destructive): permanently deletes one calendar event. This cannot be undone. DELETE /v2/event/delete/{id}.

ParameterTypeDescription
event_id *stringEvent id to delete.

kolayik_list_trainings List trainings

List the trainings defined in the account. Filter by title text. The reply has searchCount, totalCount, page and limit. GET /v2/training/list.

ParameterTypeDescription
limitintegerResults per page, 1-100.
pageintegerPage number, from 1 (default 1).
searchstringTitle contains this text.

kolayik_get_training Get a training

One training with its details. GET /v2/training/view/{id}.

ParameterTypeDescription
training_id *stringTraining id (from kolayik_list_trainings).

kolayik_create_person Create a person

WRITE: adds a new employee (only first and last name are required). Creates a real HR record that may send the person an invitation, depending on the account settings. Not idempotent: calling it twice creates a duplicate. Further data goes in data_fields (see kolayik_list_person_fields). POST /v2/person/create.

ParameterTypeDescription
first_name *stringFirst name.
last_name *stringLast name.
birthdaystringDate of birth.
data_fieldsarrayExtra data fields as {fieldToken, value}.
emailstringPersonal email.
employment_start_datestringFirst day of employment.
work_emailstringWork email.

kolayik_update_person Update a person

WRITE: changes basic data of one employee; only the fields you pass change. Pass null for an optional field to clear it. Further data goes in data_fields (see kolayik_list_person_fields). Changes the HR record immediately. PUT /v2/person/update.

ParameterTypeDescription
person_id *stringPerson id.
data_fieldsarrayData fields as {fieldToken, value}.
emailPersonal email; null clears it.
first_namestringFirst name.
last_namestringLast name.
work_emailWork email; null clears it.