Skip to main content
Glama
irs-taxpayer-mcp

irs-taxpayer-mcp

by dma9527

calculate_total_tax

Read-onlyIdempotent

Calculate combined federal and state tax liability by entering tax year, filing status, gross income, and state code, with federal breakdown and state tax returned in one call.

Instructions

Calculate combined federal + state tax for a complete picture of total tax liability. Returns federal breakdown, state tax, and combined totals in one call.

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>",
      "stateCode": "<stateCode>"
    },
    "name": "calculate_total_tax"
  }
}

Input Schema

NameRequiredDescriptionDefault
taxYearYesTax year (2024, 2025, or 2026)
w2IncomeNoW-2 wage income
stateCodeYesTwo-letter state code (e.g., 'CA', 'TX', 'NY')
dependentsNoLegacy dependent count for nonrefundable CTC only
grossIncomeYesTotal gross income including supplied capital gains, qualified dividends, Social Security benefits, and gross retirement distributions
hasForm2555No
capitalGainsNoLong-term capital gains
earnedIncomeNoSchedule 8812 earned income for ACTC
filingStatusYesFiling status
taxExemptInterestNo
earnedIncomeCreditNoEITC used by 3-or-more-child ACTC method
itemizedDeductionsNoTotal itemized deductions
qualifiedDividendsNoQualified dividends included in gross income
netInvestmentIncomeNoTotal net investment income used for NIIT
capitalGainsLongTermNoWhether capital gains are long-term (default: true)
selfEmploymentIncomeNoSelf-employment income
aotcRefundableAllowedNo
otherDependentsForOdcNoVerified dependents for ODC
shortTermCapitalGainsNoShort-term capital gain or loss
aboveTheLineDeductionsNoAbove-the-line deductions
socialSecurityBenefitsNo
qualifiedBusinessIncomeNoQBI for Section 199A deduction
qualifiedBusinessIsSstbNo
retirementDistributionsNo
socialSecurityTaxesPaidNoPayroll-tax amount for 3-or-more-child ACTC method
qualifiedBusinessW2WagesNo
qualifyingChildrenForCtcNoVerified CTC/ACTC qualifying children
aotcStudentQualifiedExpensesNo
longTermCapitalLossCarryoverNoPrior-year long-term capital loss carryover
shortTermCapitalLossCarryoverNoPrior-year short-term capital loss carryover
qualifiedBusinessPropertyBasisNo
taxableRetirementDistributionsNo
lifetimeLearningQualifiedExpensesNo
marriedFilingSeparatelyLivedWithSpouseNo
earlyRetirementDistributionSubjectToPenaltyNo

Output Schema

NameRequiredDescriptionDefault
textYes
errorNo
isErrorYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changedv1.2.4
    • removedInput schema / additionalProperties
      Removed value: -false
    • addedInput schema / properties / dependents / maximum
      Added value: +9007199254740991
    • addedInput schema / properties / otherDependentsForOdc / maximum
      Added value: +9007199254740991
    • addedInput schema / properties / qualifyingChildrenForCtc / maximum
      Added value: +9007199254740991
  2. Changed27 schema fields changedv1.0.1
    • addedInput schema / properties / aotcRefundableAllowed
      Added value: +{
      +  "type": "boolean"
      +}
    • addedInput schema / properties / aotcStudentQualifiedExpenses
      Added value: +{
      +  "items": {
      +    "minimum": 0,
      +    "type": "number"
      +  },
      +  "type": "array"
      +}
    • changedInput schema / properties / dependents / description
      Previous value: -"Number of qualifying child dependents"New value: +"Legacy dependent count for nonrefundable CTC only"
    • addedInput schema / properties / earlyRetirementDistributionSubjectToPenalty
      Added value: +{
      +  "minimum": 0,
      +  "type": "number"
      +}
    • addedInput schema / properties / earnedIncome
      Added value: +{
      +  "description": "Schedule 8812 earned income for ACTC",
      +  "minimum": 0,
      +  "type": "number"
      +}
    • addedInput schema / properties / earnedIncomeCredit
      Added value: +{
      +  "description": "EITC used by 3-or-more-child ACTC 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: +{
      +  "type": "boolean"
      +}
    • addedInput schema / properties / lifetimeLearningQualifiedExpenses
      Added value: +{
      +  "minimum": 0,
      +  "type": "number"
      +}
    • addedInput schema / properties / longTermCapitalLossCarryover
      Added value: +{
      +  "description": "Prior-year long-term capital loss carryover",
      +  "minimum": 0,
      +  "type": "number"
      +}
    • addedInput schema / properties / marriedFilingSeparatelyLivedWithSpouse
      Added value: +{
      +  "type": "boolean"
      +}
    • addedInput schema / properties / netInvestmentIncome
      Added value: +{
      +  "description": "Total net investment income used for NIIT",
      +  "minimum": 0,
      +  "type": "number"
      +}
    • addedInput schema / properties / otherDependentsForOdc
      Added value: +{
      +  "description": "Verified dependents for ODC",
      +  "minimum": 0,
      +  "type": "integer"
      +}
    • addedInput schema / properties / qualifiedBusinessIsSstb
      Added value: +{
      +  "type": "boolean"
      +}
    • addedInput schema / properties / qualifiedBusinessPropertyBasis
      Added value: +{
      +  "minimum": 0,
      +  "type": "number"
      +}
    • addedInput schema / properties / qualifiedBusinessW2Wages
      Added value: +{
      +  "minimum": 0,
      +  "type": "number"
      +}
    • addedInput schema / properties / qualifiedDividends
      Added value: +{
      +  "description": "Qualified dividends included in gross income",
      +  "minimum": 0,
      +  "type": "number"
      +}
    • addedInput schema / properties / qualifyingChildrenForCtc
      Added value: +{
      +  "description": "Verified CTC/ACTC qualifying children",
      +  "minimum": 0,
      +  "type": "integer"
      +}
    • addedInput schema / properties / retirementDistributions
      Added value: +{
      +  "minimum": 0,
      +  "type": "number"
      +}
    • addedInput schema / properties / shortTermCapitalGains
      Added value: +{
      +  "description": "Short-term capital gain or loss",
      +  "type": "number"
      +}
    • addedInput schema / properties / shortTermCapitalLossCarryover
      Added value: +{
      +  "description": "Prior-year short-term capital loss carryover",
      +  "minimum": 0,
      +  "type": "number"
      +}
    • addedInput schema / properties / socialSecurityBenefits
      Added value: +{
      +  "minimum": 0,
      +  "type": "number"
      +}
    • addedInput schema / properties / socialSecurityTaxesPaid
      Added value: +{
      +  "description": "Payroll-tax amount for 3-or-more-child ACTC method",
      +  "minimum": 0,
      +  "type": "number"
      +}
    • addedInput schema / properties / taxExemptInterest
      Added value: +{
      +  "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: +{
      +  "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

B3.1/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and closed-world, so the safety profile is fully covered. The description adds that federal breakdown, state tax, and combined totals all come back in one call, which is a mild efficiency signal. It says nothing about assumptions (e.g. tax year coverage, state-specific rules) or accuracy caveats that would matter for a 35-parameter tax computation.

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?

Two sentences, front-loaded with the core purpose, and the return-value sentence is compact. Nothing is padded, though the brevity borders on under-specification given the tool's complexity.

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

Completeness2/5

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

With 35 parameters, only 4 required, an output schema present, and rich annotations, the description covers only the high-level purpose. It omits the minimal required input set (taxYear, filingStatus, grossIncome, stateCode), any explanation of how optional inputs refine the calculation, and any caveat about state rule coverage. An agent can call it, but cannot scope its inputs wisely from this text alone.

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

Parameters2/5

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

The description mentions no parameters at all, despite 35 parameters of which only 4 are required. Schema coverage is a moderate 63%, so the schema documents many fields but the description offers no guidance on which optional inputs materially change the result or which can be safely omitted. For a tool this parameter-heavy, that is a real gap.

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 gives a specific verb and resource ("Calculate combined federal + state tax") and states the output composition. "Combined" implicitly differentiates it from calculate_federal_tax or estimate_state_tax, though no sibling is named outright.

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 through the phrase "complete picture of total tax liability" - an agent can infer this is for joint federal+state estimates. There is no explicit when-to-use versus calculate_federal_tax, estimate_state_tax, or compare_state_taxes, and no note on prerequisites or when a single-jurisdiction tool is preferable.

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