SmartHR MCP by usefulapi
v1.12.1MCP server for SmartHR — employees, departments, dependents and employee invitations.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
smarthr_list_employees
List employees (従業員) of the SmartHR tenant, with filters: free-text name/department/position search, status (employed, absent, retired), employee number, employment type, department, position, hire and resignation date ranges. Returns a compact record per employee; use `fields` for more. Sensitive data (bank accounts, insurance numbers, residence cards, salary, ID images) is never returned.
| Parameter | Type | Description |
|---|---|---|
department_id | string | Department id(s), comma separated (from smarthr_list_departments). |
emp_code | string | Exact employee number. |
emp_status | string | Only employees with this status. |
employment_type_id | string | Employment type id(s), comma separated (from smarthr_list_employment_types). |
entered_at_from | string | Hired on or after this day (yyyy-mm-dd). |
entered_at_to | string | Hired on or before this day (yyyy-mm-dd). |
fields | array | Which employee fields to return (default: names, status, email, departments, positions, grade, job category, dates). Add address, tel_number, birth_at, custom_fields, contract_* and so on when needed.… |
id | string | Employee id(s), comma separated. |
page | integer | Page number, 1-based (default 1). Use next_page from the previous reply. |
per_page | integer | Results per page, 1-100 (default 50). |
position_id | string | Position id(s), comma separated (from smarthr_list_positions). |
q | string | Free-text search over name, business name, department name and position name. |
resigned_at_from | string | Resigned on or after this day (yyyy-mm-dd). |
resigned_at_to | string | Resigned on or before this day (yyyy-mm-dd). |
sort | string | Sort order: property names, several separated by commas, a leading "-" means descending, e.g. "-updated_at". |
user_id | string | User id(s), comma separated. |
smarthr_get_employee
Get one employee (従業員) by id. Returns a compact record; use `fields` for more (address, phone, birth date, custom fields, contract dates). Sensitive data is never returned.
| Parameter | Type | Description |
|---|---|---|
id * | string | Employee id (from smarthr_list_employees). |
fields | array | Which employee fields to return (default: names, status, email, departments, positions, grade, job category, dates). Add address, tel_number, birth_at, custom_fields, contract_* and so on when needed.… |
smarthr_list_dependents
List the dependents (家族情報) registered for one employee: name, relation, birth date, living arrangement and support status. Pension numbers, income and documents are not returned.
| Parameter | Type | Description |
|---|---|---|
employee_id * | string | Employee id (from smarthr_list_employees). |
page | integer | Page number, 1-based (default 1). Use next_page from the previous reply. |
per_page | integer | Results per page, 1-100 (default 50). |
smarthr_list_maternity_childcare_leaves
List the maternity and childcare leave records (産休育休) of one employee: expected birth, leave start/end and scheduled return dates. Bank, insurance and memo data are not returned.
| Parameter | Type | Description |
|---|---|---|
employee_id * | string | Employee id (from smarthr_list_employees). |
page | integer | Page number, 1-based (default 1). Use next_page from the previous reply. |
per_page | integer | Results per page, 1-100 (default 50). |
smarthr_list_departments
List departments (部署) with their hierarchy (parent, children), code and company.
| Parameter | Type | Description |
|---|---|---|
code | string | Exact department code. |
page | integer | Page number, 1-based (default 1). Use next_page from the previous reply. |
per_page | integer | Results per page, 1-100 (default 50). |
sort | string | Sort order: property names, several separated by commas, a leading "-" means descending, e.g. "-updated_at". |
smarthr_get_department
Get one department (部署) by id, with its parent and children.
| Parameter | Type | Description |
|---|---|---|
id * | string | Department id (from smarthr_list_departments). |
smarthr_list_positions
List positions / job titles (役職) with their rank and code.
| Parameter | Type | Description |
|---|---|---|
page | integer | Page number, 1-based (default 1). Use next_page from the previous reply. |
per_page | integer | Results per page, 1-100 (default 50). |
sort | string | Sort order: property names, several separated by commas, a leading "-" means descending, e.g. "-updated_at". |
smarthr_list_employment_types
List employment types (雇用形態), e.g. full-timer, part-timer, contract worker, with their ids for filtering and writes.
| Parameter | Type | Description |
|---|---|---|
page | integer | Page number, 1-based (default 1). Use next_page from the previous reply. |
per_page | integer | Results per page, 1-100 (default 50). |
smarthr_list_grades
List grades (等級) with their rank.
| Parameter | Type | Description |
|---|---|---|
page | integer | Page number, 1-based (default 1). Use next_page from the previous reply. |
per_page | integer | Results per page, 1-100 (default 50). |
smarthr_list_job_categories
List job categories (職種).
| Parameter | Type | Description |
|---|---|---|
page | integer | Page number, 1-based (default 1). Use next_page from the previous reply. |
per_page | integer | Results per page, 1-100 (default 50). |
smarthr_list_companies
List the companies (会社) of the tenant: name, code, corporate number, address, phone.
| Parameter | Type | Description |
|---|---|---|
page | integer | Page number, 1-based (default 1). Use next_page from the previous reply. |
per_page | integer | Results per page, 1-100 (default 50). |
smarthr_list_business_establishments
List business establishments (事業所): name, social insurance and labor insurance registration data, company.
| Parameter | Type | Description |
|---|---|---|
embed | string | Embed the related object instead of only its id. |
page | integer | Page number, 1-based (default 1). Use next_page from the previous reply. |
per_page | integer | Results per page, 1-100 (default 50). |
smarthr_list_employee_custom_fields
List the definitions of the tenant's custom employee fields (カスタム従業員項目): name, type and, for dropdowns, the choices. Use them to read the values in custom_fields.
| Parameter | Type | Description |
|---|---|---|
embed | string | Embed the custom field group instead of only its id. |
page | integer | Page number, 1-based (default 1). Use next_page from the previous reply. |
per_page | integer | Results per page, 1-100 (default 50). |
smarthr_list_dependent_relations
List the relation types for dependents (続柄: spouse, child, parent...) with their ids, needed by smarthr_create_dependent.
| Parameter | Type | Description |
|---|---|---|
page | integer | Page number, 1-based (default 1). Use next_page from the previous reply. |
per_page | integer | Results per page, 1-100 (default 50). |
smarthr_list_users
List SmartHR users (login accounts): email, administrator flag, role, linked employee, and the invitation status (created, opened, accepted, answered). Use it to find the administrator id for smarthr_invite_employee.
| Parameter | Type | Description |
|---|---|---|
embed | string | Embed the related object instead of only its id. |
page | integer | Page number, 1-based (default 1). Use next_page from the previous reply. |
per_page | integer | Results per page, 1-100 (default 50). |
sort | string | Sort order: property names, several separated by commas, a leading "-" means descending, e.g. "-updated_at". |
smarthr_list_employee_input_forms
List the employee information collection forms (従業員情報収集フォーム) that an invitation can use.
| Parameter | Type | Description |
|---|---|---|
page | integer | Page number, 1-based (default 1). Use next_page from the previous reply. |
per_page | integer | Results per page, 1-100 (default 50). |
smarthr_list_webhooks
List the configured webhooks (target URL, which employee and dependent events notify). Read-only; secret tokens and the query string of the target URL are never shown.
| Parameter | Type | Description |
|---|---|---|
page | integer | Page number, 1-based (default 1). Use next_page from the previous reply. |
per_page | integer | Results per page, 1-100 (default 50). |
smarthr_create_employee
WRITE: Register a new employee (従業員) in SmartHR. Nothing is sent to the employee; to invite them to fill in their own data use smarthr_invite_employee afterwards. Only the fields you give are set. The tenant plan may cap the number of employees (error plan_limit_exceeded). Returns the created employee as a compact record.
| Parameter | Type | Description |
|---|---|---|
first_name * | string | Given name (required). |
last_name * | string | Family name (required). |
address | object | Address; the city is required by SmartHR. |
birth_at | string | Date of birth, yyyy-mm-dd. |
biz_establishment_id | string | Business establishment id (from smarthr_list_business_establishments). |
business_first_name | string | Business name: given name. |
business_last_name | string | Business name: family name. |
department_ids | array | Department ids (from smarthr_list_departments); replaces the current departments. |
email | string | Work or contact email address. |
emp_code | string | Employee number (社員番号). |
emp_status | string | Employment status: employed, absent (on leave) or retired. |
employment_type_id | string | Employment type id (from smarthr_list_employment_types). |
entered_at | string | Hire date, yyyy-mm-dd. |
first_name_yomi | string | Given name in katakana. |
gender | string | Legal gender (戸籍上の性別): male or female. |
grade | string | Grade name (等級). |
job_category | string | Job category name (職種). |
last_name_yomi | string | Family name in katakana. |
occupation | string | Job description (業務内容). |
positions | array | Position (job title) NAMES, e.g. ["部長"]; a name that does not exist yet may be created by SmartHR. |
resigned_at | string | Resignation date, yyyy-mm-dd. |
resigned_reason | string | Reason for leaving. |
tel_number | string | Phone number. |
smarthr_update_employee
WRITE: Change fields of one existing employee (partial update: only the fields you give change; others stay). Typical uses: set the status to absent or retired with the resignation date, correct a name, email or phone, move the employee to other departments (department_ids replaces the current list), change positions. SmartHR does not allow clearing a name that is already filled in. Returns the updated employee as a compact record.
| Parameter | Type | Description |
|---|---|---|
id * | string | Employee id (from smarthr_list_employees). |
address | object | Address; the city is required by SmartHR. |
birth_at | string | Date of birth, yyyy-mm-dd. |
biz_establishment_id | string | Business establishment id (from smarthr_list_business_establishments). |
business_first_name | string | Business name: given name. |
business_last_name | string | Business name: family name. |
department_ids | array | Department ids (from smarthr_list_departments); replaces the current departments. |
email | string | Work or contact email address. |
emp_code | string | Employee number (社員番号). |
emp_status | string | Employment status: employed, absent (on leave) or retired. |
employment_type_id | string | Employment type id (from smarthr_list_employment_types). |
entered_at | string | Hire date, yyyy-mm-dd. |
first_name | string | Given name (戸籍上の名). |
first_name_yomi | string | Given name in katakana. |
gender | string | Legal gender (戸籍上の性別): male or female. |
grade | string | Grade name (等級). |
job_category | string | Job category name (職種). |
last_name | string | Family name (戸籍上の姓). |
last_name_yomi | string | Family name in katakana. |
occupation | string | Job description (業務内容). |
positions | array | Position (job title) NAMES, e.g. ["部長"]; a name that does not exist yet may be created by SmartHR. |
resigned_at | string | Resignation date, yyyy-mm-dd. |
resigned_reason | string | Reason for leaving. |
tel_number | string | Phone number. |
smarthr_create_department
WRITE: Create a department (部署). Give the parent department id to nest it. Returns the created department.
| Parameter | Type | Description |
|---|---|---|
name * | string | Department name (no slash). |
code | string | Department code. |
company_id | string | Company id (from smarthr_list_companies); needed when the tenant has several companies. |
parent_id | string | Parent department id (from smarthr_list_departments); omit for a top-level department. |
position | integer | Display order among siblings. |
smarthr_update_department
WRITE: Rename or move one department (partial update: only the fields you give change). Returns the updated department.
| Parameter | Type | Description |
|---|---|---|
id * | string | Department id (from smarthr_list_departments). |
code | string | New code. |
name | string | New name (no slash). Omit to keep the current name. |
parent_id | string | New parent department id. |
position | integer | New display order among siblings. |
smarthr_create_dependent
WRITE: Register a dependent (家族情報) for an employee. Needs the relation id from smarthr_list_dependent_relations. Returns the created dependent without pension number, income or documents.
| Parameter | Type | Description |
|---|---|---|
birth_at * | string | Date of birth, yyyy-mm-dd. |
employee_id * | string | Employee id (from smarthr_list_employees). |
first_name * | string | Given name. |
gender * | string | Gender: male or female. |
last_name * | string | Family name. |
live_together_type * | string | Living with the employee or separately. |
relation_id * | string | Relation id (from smarthr_list_dependent_relations). |
social_insurance_support_type * | string | Social-insurance dependent status (required: SmartHR would otherwise default it to supported). Use unknown when not decided. |
tax_law_support_type * | string | Tax-law dependent status (required: SmartHR would otherwise default it to supported). Use unknown when not decided. |
address | object | Address; the city is required by SmartHR. |
first_name_yomi | string | Given name in katakana. |
is_spouse | boolean | True for a spouse. |
job | string | Occupation. |
last_name_yomi | string | Family name in katakana. |
tel_number | string | Phone number. |
smarthr_invite_employee
WRITE, SENDS AN EMAIL: Invite an employee to SmartHR. SmartHR emails the address stored on the employee (the employee must have one) an invitation to create their login and, with an input form, to fill in their own data. Asking again re-sends it (and updates the invited address if it changed). An employee who already accepted cannot be invited again. Confirm with the user before calling.
| Parameter | Type | Description |
|---|---|---|
id * | string | Employee id (from smarthr_list_employees); the employee needs an email address. |
inviter_user_id * | string | User id of the inviting administrator (from smarthr_list_users, an administrator). |
crew_input_form_id | string | Employee information collection form id (from smarthr_list_employee_input_forms); its mail format is used. |