get_employee
Retrieve comprehensive employee details including personal information, job data, pay rates, tax setup, benefits, addresses, and emergency contacts from Paylocity. Sensitive data like SSN and bank information is automatically redacted for security.
Instructions
Get full details for an employee by ID. Returns everything: personal info, job/department, pay rate, tax setup, benefits, addresses, emergency contacts. SSN, FEIN, and bank info are redacted.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| companyId | No | Paylocity company ID (defaults to PAYLOCITY_COMPANY_ID env var) | |
| employeeId | Yes | Paylocity employee ID |
Implementation Reference
- src/server.ts:272-285 (handler)The get_employee tool registration and handler implementation. It uses resolveCompanyId and safeGet to fetch employee details from the Paylocity API.
server.tool( "get_employee", `Get full details for an employee by ID. Returns everything: personal info, job/department, pay rate, tax setup, benefits, addresses, emergency contacts. SSN, FEIN, and bank info are redacted.`, { companyId: companyIdParam, employeeId: z.string().describe("Paylocity employee ID"), }, async ({ companyId, employeeId }) => { const cid = resolveCompanyId(companyId); return safeGet(`/v2/companies/${cid}/employees/${employeeId}`); } );