Kolay IK MCP by usefulapi
v1.8.1Read 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).
| Parameter | Type | Description |
|---|---|---|
hired_from | string | Active people hired on or after this date. |
hired_to | string | Active people hired on or before this date. |
page | integer | Page number, from 1 (default 1). |
q | string | Search text in first and last name (or the national id number). |
status | string | active (default) or terminated. |
terminated_from | string | Terminated people who left on or after this date. |
terminated_to | string | Terminated 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}.
| Parameter | Type | Description |
|---|---|---|
person_id * | string | Person 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}.
| Parameter | Type | Description |
|---|---|---|
person_id * | string | Person 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}.
| Parameter | Type | Description |
|---|---|---|
person_id * | string | Person id. |
kolayik_list_person_trainings List a person's trainings
Trainings assigned to one employee. GET /v2/person/list-trainings/{id}.
| Parameter | Type | Description |
|---|---|---|
person_id * | string | Person 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.
| Parameter | Type | Description |
|---|---|---|
person_id | string | Only chains with this person in a step. |
search | string | Name 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.
| Parameter | Type | Description |
|---|---|---|
end_date | string | Leaves up to this date. |
include_inactive_employees | boolean | Include people who have left (default false). |
limit | integer | Results per page, 1-100. |
person_id | string | Only this person. |
start_date | string | Leaves from this date on. |
status | string | waiting, 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}.
| Parameter | Type | Description |
|---|---|---|
leave_id * | string | Leave 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.
| Parameter | Type | Description |
|---|---|---|
end_date * | string | End, yyyy-mm-dd hh:mm:ss. |
leave_type_id * | string | Leave type id (for example from kolayik_get_person_leave_balances). |
person_id * | string | The employee taking leave. |
start_date * | string | Start, yyyy-mm-dd hh:mm:ss. |
comment | string | Note on the leave record. |
replacement_person_id | string | Colleague 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).
| Parameter | Type | Description |
|---|---|---|
end_date | string | Records up to this date. |
limit | integer | Results per page, 1-100. |
page | integer | Page number, from 1 (default 1). |
person_id | string | Only this person. |
sort_order | string | Sort direction (default desc). |
sort_type | string | Sort by startDate (default) or endDate. |
start_date | string | Records from this date on. |
status | string | waiting, approved, rejected or cancelled. |
type | string | work or overtime. |
kolayik_get_timelog Get a timelog
One time record by id. GET /v2/timelog/view/{id}.
| Parameter | Type | Description |
|---|---|---|
timelog_id * | string | Timelog 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.
| Parameter | Type | Description |
|---|---|---|
end_date * | string | End, yyyy-mm-dd hh:mm:ss. |
person_id * | string | The employee. |
start_date * | string | Start, yyyy-mm-dd hh:mm:ss. |
status * | string | waiting (goes through the approval process), approved (counts immediately), rejected or cancelled. |
description | string | Note on the record. |
type | string | work or overtime. |
kolayik_delete_timelog Delete a timelog
WRITE (destructive): permanently deletes one time record. This cannot be undone. DELETE /v2/timelog/delete/{id}.
| Parameter | Type | Description |
|---|---|---|
timelog_id * | string | Timelog 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).
| Parameter | Type | Description |
|---|---|---|
end_date | string | Transactions up to this date. |
limit | integer | Results per page, 1-100. |
page | integer | Page number, from 1 (default 1). |
paid | boolean | true = only paid, false = only unpaid. |
person_id | string | Only this person. |
start_date | string | Transactions from this date on. |
status | string | draft, waiting, approved or rejected. |
type | string | Transaction type. |
kolayik_get_transaction Get a transaction
One transaction (expense, advance, bonus ...) with its items. GET /v2/transaction/view/{id}.
| Parameter | Type | Description |
|---|---|---|
transaction_id * | string | Transaction 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.
| Parameter | Type | Description |
|---|---|---|
enabled | boolean | true = only enabled categories, false = only disabled. |
title | string | Category 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.
| Parameter | Type | Description |
|---|---|---|
year | integer | Year (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).
| Parameter | Type | Description |
|---|---|---|
payroll_id * | string | Payroll run id (from kolayik_list_payrolls). |
salary_period | array | Salary period types (OR). |
search | string | Employee name contains this text. |
status | array | Calculation statuses (OR). |
unit_item_ids | array | Groups 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.
| Parameter | Type | Description |
|---|---|---|
end | string | Events up to this date. |
limit | integer | Results per page, 1-100. |
page | integer | Page number, from 1 (default 1). |
search | string | Title contains this text. |
start | string | Events from this date on. |
kolayik_get_event Get a calendar event
One calendar event. GET /v2/event/view/{id}.
| Parameter | Type | Description |
|---|---|---|
event_id * | string | Event 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.
| Parameter | Type | Description |
|---|---|---|
end * | string | End, yyyy-mm-dd hh:mm:ss. |
start * | string | Start, yyyy-mm-dd hh:mm:ss. |
title * | string | Event title. |
comment | string | Event 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}.
| Parameter | Type | Description |
|---|---|---|
end * | string | End, yyyy-mm-dd hh:mm:ss. |
event_id * | string | Event id. |
start * | string | Start, yyyy-mm-dd hh:mm:ss. |
title * | string | Event title. |
comment | string | Event description. |
kolayik_delete_event Delete a calendar event
WRITE (destructive): permanently deletes one calendar event. This cannot be undone. DELETE /v2/event/delete/{id}.
| Parameter | Type | Description |
|---|---|---|
event_id * | string | Event 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.
| Parameter | Type | Description |
|---|---|---|
limit | integer | Results per page, 1-100. |
page | integer | Page number, from 1 (default 1). |
search | string | Title contains this text. |
kolayik_get_training Get a training
One training with its details. GET /v2/training/view/{id}.
| Parameter | Type | Description |
|---|---|---|
training_id * | string | Training 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.
| Parameter | Type | Description |
|---|---|---|
first_name * | string | First name. |
last_name * | string | Last name. |
birthday | string | Date of birth. |
data_fields | array | Extra data fields as {fieldToken, value}. |
email | string | Personal email. |
employment_start_date | string | First day of employment. |
work_email | string | Work 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.
| Parameter | Type | Description |
|---|---|---|
person_id * | string | Person id. |
data_fields | array | Data fields as {fieldToken, value}. |
email | Personal email; null clears it. | |
first_name | string | First name. |
last_name | string | Last name. |
work_email | Work email; null clears it. |