Skip to main content
Glama
irs-taxpayer-mcp

irs-taxpayer-mcp

by dma9527

calculate_federal_tax

Read-onlyIdempotent

Calculates federal income tax for individuals by tax year and filing status, including bracket breakdown, effective and marginal rates, self-employment tax, NIIT, capital gains, QBI, and credits.

Instructions

Calculate federal income tax for an individual taxpayer. Supports TY2024 through TY2026. Includes bracket breakdown, effective/marginal rates, SE tax, NIIT, Additional Medicare Tax, QBI deduction, capital gains, and child tax credit. All calculations run locally — no data is sent to any server.

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": {
      "taxYear": "<taxYear>",
      "filingStatus": "<filingStatus>",
      "grossIncome": "<grossIncome>"
    },
    "name": "calculate_federal_tax"
  }
}

Input Schema

NameRequiredDescriptionDefault
blindNoTaxpayer is blind
taxYearYesTax year (2024, 2025, or 2026)
w2IncomeNoW-2 wage income
dependentsNoLegacy count of qualifying child dependents for nonrefundable CTC only
grossIncomeYesTotal gross income including supplied capital gains, qualified dividends, Social Security benefits, and gross retirement distributions
hasForm2555NoWhether Form 2555 is filed, which makes ACTC unavailable
spouseBlindNoSpouse is blind
age65OrOlderNoTaxpayer is 65 or older
capitalGainsNoLong-term capital gains (can be negative for losses)
earnedIncomeNoSchedule 8812 earned income used for ACTC
filingStatusYesFiling status
qualifiedTipsNoTY2025+ Schedule 1-A: qualified tips from a listed tipped occupation
stateTaxDeductedNoState/local taxes included in itemized deductions (for AMT)
isoExerciseSpreadNoISO stock option exercise spread (for AMT calculation)
taxExemptInterestNoTax-exempt interest used by the Publication 915 worksheet
earnedIncomeCreditNoEITC used by the 3-or-more-child ACTC payroll-tax method
itemizedDeductionsNoSchedule A total after the SALT cap and medical floor, before the TY2026 charitable floor and 2/37 limit
qualifiedDividendsNoQualified dividends included in gross income, taxed at preferential rates but not netted with capital losses
spouseAge65OrOlderNoSpouse is 65 or older
spouseEarnedIncomeNoMFJ only: spouse's earned income, already included in w2Income or earnedIncome
netInvestmentIncomeNoTotal net investment income for NIIT, including taxable interest, dividends, gains, rents, royalties, and passive income
capitalGainsLongTermNoWhether capital gains are long-term (default: true)
selfEmploymentIncomeNoSelf-employment income (Schedule C)
aotcRefundableAllowedNoWhether refundable AOTC is allowed after under-age-24 support rules
dependentCareExpensesNoForm 2441 work-related care expenses paid
otherDependentsForOdcNoDependents already verified for the nonrefundable Credit for Other Dependents
shortTermCapitalGainsNoShort-term capital gain or loss
aboveTheLineDeductionsNoAbove-the-line deductions (HSA, student loan interest, etc.)
socialSecurityBenefitsNoNet Social Security benefits included in grossIncome
qualifiedBusinessIncomeNoQualified Business Income for Section 199A deduction
qualifiedBusinessIsSstbNoWhether the business is a specified service trade or business
retirementDistributionsNoGross Form 1099-R distributions included in grossIncome
socialSecurityTaxesPaidNoSchedule 8812 payroll-tax amount for the 3-or-more-child ACTC method
qualifiedBusinessW2WagesNoSection 199A W-2 wages; pass 0 when none
qualifyingChildrenForCtcNoChildren already verified as CTC/ACTC qualifying children under age 17 with required SSNs
charitableCashContributionsNoTY2026+: qualifying cash gifts to public charities (not donor-advised funds) for the non-itemizer deduction
aotcStudentQualifiedExpensesNoQualified AOTC expenses per already-verified eligible student
longTermCapitalLossCarryoverNoPrior-year long-term capital loss carryover as a positive amount
qualifiedVehicleLoanInterestNoTY2025+ Schedule 1-A: interest on a loan for a new US-assembled personal vehicle
dependentCareBenefitsExcludedNoEmployer dependent care benefits excluded from wages (W-2 box 10)
qualifiedOvertimeCompensationNoTY2025+ Schedule 1-A: FLSA overtime premium (the half of time-and-a-half)
shortTermCapitalLossCarryoverNoPrior-year short-term capital loss carryover as a positive amount
qualifiedBusinessPropertyBasisNoUnadjusted basis immediately after acquisition of qualified property; pass 0 when none
taxableRetirementDistributionsNoTaxable Form 1099-R amount
itemizedCharitableContributionsNoTY2026+: charitable portion of itemizedDeductions, for the 0.5% of AGI floor
lifetimeLearningQualifiedExpensesNoQualified LLC expenses not used for AOTC or another benefit
dependentCareQualifyingIndividualsNoQualifying individuals for the Child and Dependent Care Credit
marriedFilingSeparatelyLivedWithSpouseNo
qualifiedBusinessMaterialParticipationNoTY2026+: taxpayer materially participates, enabling the $400 minimum QBI deduction
earlyRetirementDistributionSubjectToPenaltyNoTaxable early-distribution amount remaining after exceptions

Output Schema

NameRequiredDescriptionDefault
textYes
errorNo
isErrorYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed17 schema fields changedv1.2.4
    • removedInput schema / additionalProperties
      Removed value: -false
    • addedInput schema / properties / charitableCashContributions
      Added value: +{
      +  "description": "TY2026+: qualifying cash gifts to public charities (not donor-advised funds) for the non-itemizer deduction",
      +  "minimum": 0,
      +  "type": "number"
      +}
    • addedInput schema / properties / dependentCareBenefitsExcluded
      Added value: +{
      +  "description": "Employer dependent care benefits excluded from wages (W-2 box 10)",
      +  "minimum": 0,
      +  "type": "number"
      +}
    • addedInput schema / properties / dependentCareExpenses
      Added value: +{
      +  "description": "Form 2441 work-related care expenses paid",
      +  "minimum": 0,
      +  "type": "number"
      +}
    • addedInput schema / properties / dependentCareQualifyingIndividuals
      Added value: +{
      +  "description": "Qualifying individuals for the Child and Dependent Care Credit",
      +  "maximum": 9007199254740991,
      +  "minimum": 0,
      +  "type": "integer"
      +}
    • addedInput schema / properties / dependents / maximum
      Added value: +9007199254740991
    • addedInput schema / properties / itemizedCharitableContributions
      Added value: +{
      +  "description": "TY2026+: charitable portion of itemizedDeductions, for the 0.5% of AGI floor",
      +  "minimum": 0,
      +  "type": "number"
      +}
    • changedInput schema / properties / itemizedDeductions / description
      Previous value: -"Total itemized deductions (if greater than standard deduction)"New value: +"Schedule A total after the SALT cap and medical floor, before the TY2026 charitable floor and 2/37 limit"
    • addedInput schema / properties / otherDependentsForOdc / maximum
      Added value: +9007199254740991
    • addedInput schema / properties / qualifiedBusinessMaterialParticipation
      Added value: +{
      +  "description": "TY2026+: taxpayer materially participates, enabling the $400 minimum QBI deduction",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / qualifiedOvertimeCompensation
      Added value: +{
      +  "description": "TY2025+ Schedule 1-A: FLSA overtime premium (the half of time-and-a-half)",
      +  "minimum": 0,
      +  "type": "number"
      +}
    • addedInput schema / properties / qualifiedTips
      Added value: +{
      +  "description": "TY2025+ Schedule 1-A: qualified tips from a listed tipped occupation",
      +  "minimum": 0,
      +  "type": "number"
      +}
    • addedInput schema / properties / qualifiedVehicleLoanInterest
      Added value: +{
      +  "description": "TY2025+ Schedule 1-A: interest on a loan for a new US-assembled personal vehicle",
      +  "minimum": 0,
      +  "type": "number"
      +}
    • addedInput schema / properties / qualifyingChildrenForCtc / maximum
      Added value: +9007199254740991
    • addedInput schema / properties / spouseAge65OrOlder
      Added value: +{
      +  "description": "Spouse is 65 or older",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / spouseBlind
      Added value: +{
      +  "description": "Spouse is blind",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / spouseEarnedIncome
      Added value: +{
      +  "description": "MFJ only: spouse's earned income, already included in w2Income or earnedIncome",
      +  "minimum": 0,
      +  "type": "number"
      +}
  2. Changed27 schema fields changedv1.0.1
    • addedInput schema / properties / aotcRefundableAllowed
      Added value: +{
      +  "description": "Whether refundable AOTC is allowed after under-age-24 support rules",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / aotcStudentQualifiedExpenses
      Added value: +{
      +  "description": "Qualified AOTC expenses per already-verified eligible student",
      +  "items": {
      +    "minimum": 0,
      +    "type": "number"
      +  },
      +  "type": "array"
      +}
    • changedInput schema / properties / dependents / description
      Previous value: -"Number of qualifying child dependents for Child Tax Credit"New value: +"Legacy count of qualifying child dependents for nonrefundable CTC only"
    • addedInput schema / properties / earlyRetirementDistributionSubjectToPenalty
      Added value: +{
      +  "description": "Taxable early-distribution amount remaining after exceptions",
      +  "minimum": 0,
      +  "type": "number"
      +}
    • addedInput schema / properties / earnedIncome
      Added value: +{
      +  "description": "Schedule 8812 earned income used for ACTC",
      +  "minimum": 0,
      +  "type": "number"
      +}
    • addedInput schema / properties / earnedIncomeCredit
      Added value: +{
      +  "description": "EITC used by the 3-or-more-child ACTC payroll-tax method",
      +  "minimum": 0,
      +  "type": "number"
      +}
    • changedInput schema / properties / grossIncome / description
      Previous value: -"Total gross income in USD"New value: +"Total gross income including supplied capital gains, qualified dividends, Social Security benefits, and gross retirement distributions"
    • addedInput schema / properties / hasForm2555
      Added value: +{
      +  "description": "Whether Form 2555 is filed, which makes ACTC unavailable",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / lifetimeLearningQualifiedExpenses
      Added value: +{
      +  "description": "Qualified LLC expenses not used for AOTC or another benefit",
      +  "minimum": 0,
      +  "type": "number"
      +}
    • addedInput schema / properties / longTermCapitalLossCarryover
      Added value: +{
      +  "description": "Prior-year long-term capital loss carryover as a positive amount",
      +  "minimum": 0,
      +  "type": "number"
      +}
    • addedInput schema / properties / marriedFilingSeparatelyLivedWithSpouse
      Added value: +{
      +  "type": "boolean"
      +}
    • addedInput schema / properties / netInvestmentIncome
      Added value: +{
      +  "description": "Total net investment income for NIIT, including taxable interest, dividends, gains, rents, royalties, and passive income",
      +  "minimum": 0,
      +  "type": "number"
      +}
    • addedInput schema / properties / otherDependentsForOdc
      Added value: +{
      +  "description": "Dependents already verified for the nonrefundable Credit for Other Dependents",
      +  "minimum": 0,
      +  "type": "integer"
      +}
    • addedInput schema / properties / qualifiedBusinessIsSstb
      Added value: +{
      +  "description": "Whether the business is a specified service trade or business",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / qualifiedBusinessPropertyBasis
      Added value: +{
      +  "description": "Unadjusted basis immediately after acquisition of qualified property; pass 0 when none",
      +  "minimum": 0,
      +  "type": "number"
      +}
    • addedInput schema / properties / qualifiedBusinessW2Wages
      Added value: +{
      +  "description": "Section 199A W-2 wages; pass 0 when none",
      +  "minimum": 0,
      +  "type": "number"
      +}
    • addedInput schema / properties / qualifiedDividends
      Added value: +{
      +  "description": "Qualified dividends included in gross income, taxed at preferential rates but not netted with capital losses",
      +  "minimum": 0,
      +  "type": "number"
      +}
    • addedInput schema / properties / qualifyingChildrenForCtc
      Added value: +{
      +  "description": "Children already verified as CTC/ACTC qualifying children under age 17 with required SSNs",
      +  "minimum": 0,
      +  "type": "integer"
      +}
    • addedInput schema / properties / retirementDistributions
      Added value: +{
      +  "description": "Gross Form 1099-R distributions included in grossIncome",
      +  "minimum": 0,
      +  "type": "number"
      +}
    • changedInput schema / properties / shortTermCapitalGains / description
      Previous value: -"Short-term capital gains (taxed as ordinary income)"New value: +"Short-term capital gain or loss"
    • addedInput schema / properties / shortTermCapitalLossCarryover
      Added value: +{
      +  "description": "Prior-year short-term capital loss carryover as a positive amount",
      +  "minimum": 0,
      +  "type": "number"
      +}
    • addedInput schema / properties / socialSecurityBenefits
      Added value: +{
      +  "description": "Net Social Security benefits included in grossIncome",
      +  "minimum": 0,
      +  "type": "number"
      +}
    • addedInput schema / properties / socialSecurityTaxesPaid
      Added value: +{
      +  "description": "Schedule 8812 payroll-tax amount for the 3-or-more-child ACTC method",
      +  "minimum": 0,
      +  "type": "number"
      +}
    • addedInput schema / properties / taxExemptInterest
      Added value: +{
      +  "description": "Tax-exempt interest used by the Publication 915 worksheet",
      +  "minimum": 0,
      +  "type": "number"
      +}
    • changedInput schema / properties / taxYear / description
      Previous value: -"Tax year (2024 or 2025)"New value: +"Tax year (2024, 2025, or 2026)"
    • addedInput schema / properties / taxableRetirementDistributions
      Added value: +{
      +  "description": "Taxable Form 1099-R amount",
      +  "minimum": 0,
      +  "type": "number"
      +}
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "$schema": "http://json-schema.org/draft-07/schema#",
      +  "additionalProperties": false,
      +  "properties": {
      +    "error": {
      +      "additionalProperties": false,
      +      "properties": {
      +        "code": {
      +          "type": "string"
      +        },
      +        "message": {
      +          "type": "string"
      +        },
      +        "suggestion": {
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "code",
      +        "message",
      +        "suggestion"
      +      ],
      +      "type": "object"
      +    },
      +    "isError": {
      +      "type": "boolean"
      +    },
      +    "text": {
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "text",
      +    "isError"
      +  ],
      +  "type": "object"
      +}
  3. First observedv0.5.3

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, openWorldHint=false and destructiveHint=false, so the safety profile is covered. The description adds genuinely new context beyond that: the supported tax-year window and the explicit assurance that all calculations run locally with no data sent to a server. It does not cover precision/rounding, error behavior, or disclaimer framing, which keeps it short of a 5.

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?

Four sentences, front-loaded with the core purpose, followed by supported years, output scope, and a privacy note. The mid-sentence feature list is dense but each item maps to real computational coverage, so little is wasted. A slight trim of the enumeration would make it tighter.

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

Completeness4/5

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

For a 50-parameter tool with 98% schema coverage, an output schema, and full annotations, the description supplies the right framing: scope, tax-year support, computed outputs, and locality of computation. The main residual gap is that it gives no guidance on which of the 47 optional inputs are needed for which outputs, leaving the agent to derive that from schema descriptions.

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

Parameters3/5

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

Schema description coverage is 98% across 50 parameters, so the schema itself carries virtually all parameter meaning, including required fields, the filingStatus enum, and the TY-gated inputs. The description mentions the tax domains (SE tax, NIIT, QBI, capital gains, CTC) at a high level but adds no syntax, defaults, or interdependency guidance beyond the schema. Baseline 3 applies given the schema does the heavy lifting.

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

Purpose4/5

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

The description opens with a specific verb+resource ('Calculate federal income tax for an individual taxpayer') and enumerates the computed outputs (bracket breakdown, SE tax, NIIT, QBI, capital gains, CTC), so the agent knows exactly what the tool returns. It does not name or rule out the many overlapping siblings such as calculate_total_tax, estimate_self_employment_tax, or calculate_eitc, so the agent gets no explicit differentiation.

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

Usage Guidelines3/5

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

Usage is only implied by the capability list and the 'supports TY2024 through TY2026' range. There is no statement of when to prefer this over calculate_total_tax or the narrower estimators, and no mention of prerequisites or when the optional inputs must be supplied. An agent can infer suitability but must reason it out rather than being told.

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