Skip to main content
Glama

US Tax Estimator

Estimate federal income and self-employment tax

estimate_federal_tax
Read-onlyIdempotent

Estimates a year's U.S. federal income tax plus self-employment tax, the refund or balance due after withholding and estimated payments, marginal and effective rates, a bracket-by-bracket breakdown and, when prior-year figures are given, the safe-harbor quarterly estimated payment. Also answers 'how much more can I earn, withdraw from a 401(k) or convert to a Roth IRA before the next bracket': the room left in the current bracket, the room before qualified dividends / long-term gains lose the 0% rate, and the tax on a planned extra amount. Uses the standard deduction (with the age-65+ addition) unless larger itemized deductions are given; the 2025–2028 $6,000 senior deduction per person 65+ with phase-out (not available when married filing separately); qualified dividends and long-term gains at 0%/15%/20%; child tax credit with phase-out; Social Security wage base and Additional Medicare tax. Federal only: no state tax, AMT, NIIT, QBI deduction, IRMAA or other credits.

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": {
      "filing_status": "<filing_status>",
      "tax_year": "<tax_year>",
      "total_income": "<total_income>"
    },
    "name": "estimate_federal_tax"
  }
}

Input Schema

NameRequiredDescriptionDefault
tax_yearYesTax year: 2025 or 2026.
w2_wagesNoW-2 wages (Social Security / Medicare wages), USD; reduces the self-employment Social Security tax room. 0 if none.
total_incomeYesTotal income for the year before deductions, USD: wages, interest, dividends, other income and self-employment profit together.
filing_statusYesFederal filing status.
prior_year_agiNoLast year's adjusted gross income, USD (decides 100% vs 110% safe harbor).
federal_withholdingNoFederal income tax withheld for the year (W-2 box 2, 1099 withholding), USD; add any Additional Medicare tax an employer withheld (Form 8959 line 24) if known.
itemized_deductionsNoTotal itemized deductions (Schedule A), USD. Used only when larger than the standard deduction.
qualifying_childrenNoChildren under 17 who qualify for the child tax credit.
planned_extra_incomeNoWhat-if: extra ordinary income being considered for the year (401(k) or IRA withdrawal, Roth conversion, bonus), USD, NOT included in total_income. Returns the tax it adds and the marginal rate after.
prior_year_total_taxNoLast year's total federal tax, USD. Give it to get the quarterly safe-harbor payment; 0 means last year's tax really was $0 (then no estimates are required). Omit if unknown.
self_employment_profitNoNet self-employment profit (Schedule C), USD. Already included in total_income; used for self-employment tax.
estimated_payments_madeNoFederal estimated tax payments already made for this year, USD.
taxpayers_age_65_or_olderNoTaxpayers on the return who are 65 or older by year end: 0 or 1, or 2 only for married_filing_jointly. Adds the age-65+ standard deduction and the $6,000 senior deduction (2025–2028; not for married_filing_separately).
qualified_dividends_and_long_term_gainsNoQualified dividends (1099-DIV box 1b) plus net long-term capital gains, USD. Part of total_income; taxed at 0%/15%/20% stacked on top of ordinary income.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • changedInput schema / properties / federal_withholding / description
      Previous value: -"Federal income tax withheld for the year (W-2 box 2, 1099 withholding), USD."New value: +"Federal income tax withheld for the year (W-2 box 2, 1099 withholding), USD; add any Additional Medicare tax an employer withheld (Form 8959 line 24) if known."
    • changedInput schema / properties / prior_year_total_tax / description
      Previous value: -"Last year's total federal tax, USD. Give it to get the quarterly safe-harbor payment."New value: +"Last year's total federal tax, USD. Give it to get the quarterly safe-harbor payment; 0 means last year's tax really was $0 (then no estimates are required). Omit if unknown."
    • changedInput schema / properties / taxpayers_age_65_or_older / description
      Previous value: -"Taxpayers on the return who are 65 or older by year end (0, 1 or 2): adds the age-65+ standard deduction and the $6,000 senior deduction (2025–2028)."New value: +"Taxpayers on the return who are 65 or older by year end: 0 or 1, or 2 only for married_filing_jointly. Adds the age-65+ standard deduction and the $6,000 senior deduction (2025–2028; not for married_filing_separately)."
  2. Changed3 schema fields changed
    • addedInput schema / properties / planned_extra_income
      Added value: +{
      +  "description": "What-if: extra ordinary income being considered for the year (401(k) or IRA withdrawal, Roth conversion, bonus), USD, NOT included in total_income. Returns the tax it adds and the marginal rate after.",
      +  "maximum": 10000000000,
      +  "minimum": 0,
      +  "type": "number"
      +}
    • addedInput schema / properties / qualified_dividends_and_long_term_gains
      Added value: +{
      +  "default": 0,
      +  "description": "Qualified dividends (1099-DIV box 1b) plus net long-term capital gains, USD. Part of total_income; taxed at 0%/15%/20% stacked on top of ordinary income.",
      +  "maximum": 10000000000,
      +  "minimum": 0,
      +  "type": "number"
      +}
    • addedInput schema / properties / taxpayers_age_65_or_older
      Added value: +{
      +  "default": 0,
      +  "description": "Taxpayers on the return who are 65 or older by year end (0, 1 or 2): adds the age-65+ standard deduction and the $6,000 senior deduction (2025–2028).",
      +  "maximum": 2,
      +  "minimum": 0,
      +  "type": "integer"
      +}
  3. First observed

TDQS

A4.6/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already declare readOnly/idempotent/non-destructive, and the description adds substantial scope disclosure beyond them: the 2025–2028 $6,000 senior deduction with phase-out and MFS ineligibility, qualified dividend/LTCG stacking rates, child tax credit phase-out, Social Security wage base, and the explicit list of unsupported provisions. This is a genuinely informative limitations profile for a calculator whose numbers agents may rely on.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded with the core verb and outputs, then scope and exclusions; almost every clause carries information. The first sentence is a dense run-on list of return values, which slightly hurts scannability for a 14-parameter tool, but the length is defensible for the domain.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

No output schema exists, and the description fully compensates by enumerating the return values (refund/balance due, rates, bracket breakdown, safe-harbor payment, bracket headroom, tax on a planned extra). Combined with the explicit exclusion list, an agent knows both what it will get and what the estimate deliberately omits.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100% so the baseline is 3, but the description adds interpretive value the schema doesn't: it frames planned_extra_income as a what-if that returns bracket room and the tax on the extra amount, and explains the safe-harbor behavior tied to prior_year_agi/prior_year_total_tax. That clarifies why those parameters exist rather than merely restating their types.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource (estimates a year's U.S. federal income tax plus self-employment tax) and enumerates the concrete outputs: refund/balance due, marginal and effective rates, bracket-by-bracket breakdown, safe-harbor payment. Nothing overlaps with the siblings (foreign reporting, inheritance step-up, deadlines, 7702), so an agent can route here unambiguously.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Clear context for when the tool applies and explicit exclusions ('Federal only: no state tax, AMT, NIIT, QBI deduction, IRMAA or other credits'), plus conditional guidance on prior-year inputs enabling the safe-harbor calc and itemized vs. standard deduction selection. It does not name alternative tools, but the sibling set is functionally disjoint, so no routing conflict is left open.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources