calculatePaycheckWithholding
Premium only. Returns per-paycheck federal withholding, FICA (Social Security, Medicare, Additional Medicare), and optional state withholding given gross pay and W-4 inputs. Supports both the 2020-or-later and pre-2020 W-4 forms. Requires gross_pay, pay_period, filing_status.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"gross_pay": "<gross_pay>",
"pay_period": "<pay_period>",
"filing_status": "<filing_status>"
},
"name": "calculatePaycheckWithholding"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| state | No | 2-letter US state code. Omit for federal-only calculation. | |
| tax_year | No | Tax year (YYYY). Defaults to the current year. | |
| gross_pay | Yes | Gross pay for the period (in dollars). | |
| ytd_gross | No | Year-to-date gross wages before this paycheck. Used to apply the Social Security wage base cap and the 0.9% Additional Medicare tax above $200,000 YTD. | |
| allowances | No | Pre-2020 W-4 only. Number of allowances claimed on line 5 of the 2019-or-earlier W-4. | |
| deductions | No | W-4 Step 4(b) annual deductions over the standard deduction (2020+ W-4). | |
| pay_period | Yes | Pay period. One of: weekly, biweekly, semimonthly, monthly, quarterly, semiannually, annually, daily. | |
| w4_version | No | Selects which W-4 worksheet to use: 2020_or_later (default) or pre_2020. | 2020_or_later |
| other_income | No | W-4 Step 4(a) annual other income (2020+ W-4). | |
| filing_status | Yes | Tax filing status. Possible values: single, married (married filing jointly), married_separate, or head_of_household. | |
| multiple_jobs | No | W-4 Step 2(c) "multiple jobs" checkbox (2020+ W-4 only). | |
| dependents_amount | No | W-4 Step 3 total annual credit for dependents (2020+ W-4). | |
| extra_withholding | No | W-4 Step 4(c) extra per-period withholding (added directly to federal withholding). | |
| pretax_deductions | No | Pre-tax deductions for this paycheck (401(k), HSA, cafeteria plans). Reduces taxable wages. |