SmartHR MCP by usefulapi

v1.12.1
io.usefulapi/smarthr Checked 3 days ago Published 1 day ago

MCP 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.

ParameterTypeDescription
department_idstringDepartment id(s), comma separated (from smarthr_list_departments).
emp_codestringExact employee number.
emp_statusstringOnly employees with this status.
employment_type_idstringEmployment type id(s), comma separated (from smarthr_list_employment_types).
entered_at_fromstringHired on or after this day (yyyy-mm-dd).
entered_at_tostringHired on or before this day (yyyy-mm-dd).
fieldsarrayWhich 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.…
idstringEmployee id(s), comma separated.
pageintegerPage number, 1-based (default 1). Use next_page from the previous reply.
per_pageintegerResults per page, 1-100 (default 50).
position_idstringPosition id(s), comma separated (from smarthr_list_positions).
qstringFree-text search over name, business name, department name and position name.
resigned_at_fromstringResigned on or after this day (yyyy-mm-dd).
resigned_at_tostringResigned on or before this day (yyyy-mm-dd).
sortstringSort order: property names, several separated by commas, a leading "-" means descending, e.g. "-updated_at".
user_idstringUser 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.

ParameterTypeDescription
id *stringEmployee id (from smarthr_list_employees).
fieldsarrayWhich 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.

ParameterTypeDescription
employee_id *stringEmployee id (from smarthr_list_employees).
pageintegerPage number, 1-based (default 1). Use next_page from the previous reply.
per_pageintegerResults 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.

ParameterTypeDescription
employee_id *stringEmployee id (from smarthr_list_employees).
pageintegerPage number, 1-based (default 1). Use next_page from the previous reply.
per_pageintegerResults per page, 1-100 (default 50).

smarthr_list_departments

List departments (部署) with their hierarchy (parent, children), code and company.

ParameterTypeDescription
codestringExact department code.
pageintegerPage number, 1-based (default 1). Use next_page from the previous reply.
per_pageintegerResults per page, 1-100 (default 50).
sortstringSort 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.

ParameterTypeDescription
id *stringDepartment id (from smarthr_list_departments).

smarthr_list_positions

List positions / job titles (役職) with their rank and code.

ParameterTypeDescription
pageintegerPage number, 1-based (default 1). Use next_page from the previous reply.
per_pageintegerResults per page, 1-100 (default 50).
sortstringSort 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.

ParameterTypeDescription
pageintegerPage number, 1-based (default 1). Use next_page from the previous reply.
per_pageintegerResults per page, 1-100 (default 50).

smarthr_list_grades

List grades (等級) with their rank.

ParameterTypeDescription
pageintegerPage number, 1-based (default 1). Use next_page from the previous reply.
per_pageintegerResults per page, 1-100 (default 50).

smarthr_list_job_categories

List job categories (職種).

ParameterTypeDescription
pageintegerPage number, 1-based (default 1). Use next_page from the previous reply.
per_pageintegerResults per page, 1-100 (default 50).

smarthr_list_companies

List the companies (会社) of the tenant: name, code, corporate number, address, phone.

ParameterTypeDescription
pageintegerPage number, 1-based (default 1). Use next_page from the previous reply.
per_pageintegerResults per page, 1-100 (default 50).

smarthr_list_business_establishments

List business establishments (事業所): name, social insurance and labor insurance registration data, company.

ParameterTypeDescription
embedstringEmbed the related object instead of only its id.
pageintegerPage number, 1-based (default 1). Use next_page from the previous reply.
per_pageintegerResults 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.

ParameterTypeDescription
embedstringEmbed the custom field group instead of only its id.
pageintegerPage number, 1-based (default 1). Use next_page from the previous reply.
per_pageintegerResults 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.

ParameterTypeDescription
pageintegerPage number, 1-based (default 1). Use next_page from the previous reply.
per_pageintegerResults 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.

ParameterTypeDescription
embedstringEmbed the related object instead of only its id.
pageintegerPage number, 1-based (default 1). Use next_page from the previous reply.
per_pageintegerResults per page, 1-100 (default 50).
sortstringSort 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.

ParameterTypeDescription
pageintegerPage number, 1-based (default 1). Use next_page from the previous reply.
per_pageintegerResults 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.

ParameterTypeDescription
pageintegerPage number, 1-based (default 1). Use next_page from the previous reply.
per_pageintegerResults 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.

ParameterTypeDescription
first_name *stringGiven name (required).
last_name *stringFamily name (required).
addressobjectAddress; the city is required by SmartHR.
birth_atstringDate of birth, yyyy-mm-dd.
biz_establishment_idstringBusiness establishment id (from smarthr_list_business_establishments).
business_first_namestringBusiness name: given name.
business_last_namestringBusiness name: family name.
department_idsarrayDepartment ids (from smarthr_list_departments); replaces the current departments.
emailstringWork or contact email address.
emp_codestringEmployee number (社員番号).
emp_statusstringEmployment status: employed, absent (on leave) or retired.
employment_type_idstringEmployment type id (from smarthr_list_employment_types).
entered_atstringHire date, yyyy-mm-dd.
first_name_yomistringGiven name in katakana.
genderstringLegal gender (戸籍上の性別): male or female.
gradestringGrade name (等級).
job_categorystringJob category name (職種).
last_name_yomistringFamily name in katakana.
occupationstringJob description (業務内容).
positionsarrayPosition (job title) NAMES, e.g. ["部長"]; a name that does not exist yet may be created by SmartHR.
resigned_atstringResignation date, yyyy-mm-dd.
resigned_reasonstringReason for leaving.
tel_numberstringPhone 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.

ParameterTypeDescription
id *stringEmployee id (from smarthr_list_employees).
addressobjectAddress; the city is required by SmartHR.
birth_atstringDate of birth, yyyy-mm-dd.
biz_establishment_idstringBusiness establishment id (from smarthr_list_business_establishments).
business_first_namestringBusiness name: given name.
business_last_namestringBusiness name: family name.
department_idsarrayDepartment ids (from smarthr_list_departments); replaces the current departments.
emailstringWork or contact email address.
emp_codestringEmployee number (社員番号).
emp_statusstringEmployment status: employed, absent (on leave) or retired.
employment_type_idstringEmployment type id (from smarthr_list_employment_types).
entered_atstringHire date, yyyy-mm-dd.
first_namestringGiven name (戸籍上の名).
first_name_yomistringGiven name in katakana.
genderstringLegal gender (戸籍上の性別): male or female.
gradestringGrade name (等級).
job_categorystringJob category name (職種).
last_namestringFamily name (戸籍上の姓).
last_name_yomistringFamily name in katakana.
occupationstringJob description (業務内容).
positionsarrayPosition (job title) NAMES, e.g. ["部長"]; a name that does not exist yet may be created by SmartHR.
resigned_atstringResignation date, yyyy-mm-dd.
resigned_reasonstringReason for leaving.
tel_numberstringPhone number.

smarthr_create_department

WRITE: Create a department (部署). Give the parent department id to nest it. Returns the created department.

ParameterTypeDescription
name *stringDepartment name (no slash).
codestringDepartment code.
company_idstringCompany id (from smarthr_list_companies); needed when the tenant has several companies.
parent_idstringParent department id (from smarthr_list_departments); omit for a top-level department.
positionintegerDisplay order among siblings.

smarthr_update_department

WRITE: Rename or move one department (partial update: only the fields you give change). Returns the updated department.

ParameterTypeDescription
id *stringDepartment id (from smarthr_list_departments).
codestringNew code.
namestringNew name (no slash). Omit to keep the current name.
parent_idstringNew parent department id.
positionintegerNew 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.

ParameterTypeDescription
birth_at *stringDate of birth, yyyy-mm-dd.
employee_id *stringEmployee id (from smarthr_list_employees).
first_name *stringGiven name.
gender *stringGender: male or female.
last_name *stringFamily name.
live_together_type *stringLiving with the employee or separately.
relation_id *stringRelation id (from smarthr_list_dependent_relations).
social_insurance_support_type *stringSocial-insurance dependent status (required: SmartHR would otherwise default it to supported). Use unknown when not decided.
tax_law_support_type *stringTax-law dependent status (required: SmartHR would otherwise default it to supported). Use unknown when not decided.
addressobjectAddress; the city is required by SmartHR.
first_name_yomistringGiven name in katakana.
is_spousebooleanTrue for a spouse.
jobstringOccupation.
last_name_yomistringFamily name in katakana.
tel_numberstringPhone 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.

ParameterTypeDescription
id *stringEmployee id (from smarthr_list_employees); the employee needs an email address.
inviter_user_id *stringUser id of the inviting administrator (from smarthr_list_users, an administrator).
crew_input_form_idstringEmployee information collection form id (from smarthr_list_employee_input_forms); its mail format is used.