Generate salary slip
generate_salary_slipUse this when the user wants a salary slip (payslip, salary slip format for India) as a PDF and Excel file from earnings and deductions they give. Put components into earnings and deductions as items ({name, amount}, or percent/of for a deduction); a simple pasted list (one name and amount per item) works as a fallback. Prorates earnings for LOP days (paid_days or lop_days, calendar or fixed-day month) or a mid-month joining, keeps bonus and reimbursements in full, and returns gross, total deductions, net pay, net pay in words (Indian and international), and download links. Does not compute PF, ESI, professional tax or TDS by law and does not take PAN, UAN or bank numbers. Do not use for salary negotiation, CTC planning or tax calculation.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "generate_salary_slip"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pf | No | Shortcut: PF deduction amount, e.g. 1800, or "12%" (of Basic). | |
| hra | No | Shortcut: HRA for the full month, e.g. 10000. | |
| tds | No | Shortcut: TDS deduction as given, e.g. 1500. | |
| basic | No | Shortcut: Basic for the full month, e.g. 25000 (same as an earnings item). | |
| month | No | Pay month, e.g. "October 2026" or "2026-10". Default: last month. | |
| earnings | No | Earnings with full-month amounts: [{"name":"Basic","amount":25000},{"name":"HRA","amount":10000},{"name":"Special Allowance","amount":8000}], or {"Basic":25000,"HRA":10000}, or text "Basic 25000, HRA 10000". | |
| id_lines | No | true to print blank PAN, UAN and bank account lines to fill by hand. These numbers are not collected. | |
| location | No | Optional work location, e.g. "Pune". | |
| lop_days | No | Loss-of-pay days, e.g. 2. Paid days = days in month - LOP days. | |
| rounding | No | "rupee" (default, prorated amounts to the nearest rupee) or "paise". | |
| page_size | No | "A4" (default) or "Letter". | |
| paid_days | No | Days paid, e.g. 28 or 29.5. Default: all days of the month (or days from joining). | |
| deductions | No | Deductions as the user gives them: [{"name":"PF","amount":1800},{"name":"Professional Tax","amount":200},{"name":"TDS","amount":1500}], or a percent of a named earning, {"name":"PF","percent":12,"of":"Basic"}, or text "PF 12% of Basic, PT 200". Nothing is computed by law. | |
| department | No | Optional department, e.g. "Engineering". | |
| designation | No | Optional job title, e.g. "Software Engineer". | |
| employee_id | No | Optional employee ID, e.g. "EMP-0042". | |
| days_in_month | No | Proration basis: "calendar" (default, 28 to 31) or a fixed number such as 30 or 26. | |
| employee_name | No | Employee name as it should print, any script, e.g. "Priya Sharma" or "प्रिया शर्मा". | |
| employer_name | No | Company name for the header, e.g. "Acme Technologies Pvt Ltd". | |
| date_of_joining | No | Optional joining date, e.g. "2026-10-12" or "12/10/2026" (day first). Joining inside the pay month sets paid days when paid_days is not given. | |
| employer_address | No | Optional company address, e.g. "4th Floor, Tech Park, Pune 411014". | |
| last_working_day | No | Optional last working day inside the pay month, e.g. "2026-10-20", for a final slip. | |
| professional_tax | No | Shortcut: professional tax deduction as given, e.g. 200. | |
| special_allowance | No | Shortcut: Special Allowance for the full month, e.g. 8000. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| days | Yes | ||
| month | Yes | ||
| notes | Yes | ||
| net_pay | Yes | ||
| earnings | Yes | ||
| employee | Yes | ||
| employer | Yes | ||
| warnings | Yes | ||
| downloads | Yes | ||
| deductions | Yes | ||
| assumptions | Yes | ||
| gross_earnings | Yes | ||
| gross_full_month | Yes | ||
| net_pay_in_words | Yes | ||
| total_deductions | Yes | ||
| net_pay_formatted | Yes | ||
| earnings_count_shown | No | ||
| deductions_count_shown | No | ||
| net_pay_in_words_international | Yes |