Skip to main content
Glama
irs-taxpayer-mcp

irs-taxpayer-mcp

by dma9527

estimate_state_tax

Read-onlyIdempotent

Estimate state income tax for a given state and tax year using a versioned calculation profile; unsupported state-year combinations fail closed.

Instructions

Estimate state income tax using an explicit tax-year calculation profile. Unsupported state-year paths fail closed.

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": {
      "stateCode": "<stateCode>",
      "taxYear": "<taxYear>"
    },
    "name": "estimate_state_tax"
  }
}

Input Schema

NameRequiredDescriptionDefault
taxYearYesTax year for the versioned state calculation profile
stateCodeYesTwo-letter state code
filingStatusNoFiling status (default: single; married means married filing jointly)
taxableIncomeNoDeprecated alias for incomeBeforeStateDeductions
federalTaxableIncomeNoFederal taxable income (Form 1040 line 15); required for states that start from it, such as North Dakota
incomeBeforeStateDeductionsNoState income before the modeled state standard deduction and personal exemption

Output Schema

NameRequiredDescriptionDefault
textYes
errorNo
isErrorYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changedv1.2.7
    • addedInput schema / properties / federalTaxableIncome
      Added value: +{
      +  "description": "Federal taxable income (Form 1040 line 15); required for states that start from it, such as North Dakota",
      +  "minimum": 0,
      +  "type": "number"
      +}
    • changedInput schema / properties / filingStatus / description
      Previous value: -"Filing status (default: single)"New value: +"Filing status (default: single; married means married filing jointly)"
    • changedInput schema / properties / filingStatus / enum
      Previous value: -[
      -  "single",
      -  "married"
      -]New value: +[
      +  "single",
      +  "married",
      +  "married_filing_jointly",
      +  "married_filing_separately",
      +  "head_of_household"
      +]
  2. Changed3 schema fields changedv1.2.4
    • removedInput schema / additionalProperties
      Removed value: -false
    • addedInput schema / properties / taxYear / maximum
      Added value: +9007199254740991
    • addedInput schema / properties / taxYear / minimum
      Added value: +-9007199254740991
  3. Changed5 schema fields changedv1.0.1
    • addedInput schema / properties / incomeBeforeStateDeductions
      Added value: +{
      +  "description": "State income before the modeled state standard deduction and personal exemption",
      +  "minimum": 0,
      +  "type": "number"
      +}
    • addedInput schema / properties / taxYear
      Added value: +{
      +  "description": "Tax year for the versioned state calculation profile",
      +  "type": "integer"
      +}
    • changedInput schema / properties / taxableIncome / description
      Previous value: -"State taxable income (after state deductions)"New value: +"Deprecated alias for incomeBeforeStateDeductions"
    • changedInput schema / required
      Previous value: -[
      -  "stateCode",
      -  "taxableIncome"
      -]New value: +[
      +  "stateCode",
      +  "taxYear"
      +]
    • 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"
      +}
  4. First observedv0.5.3

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent, non-destructive, closed-world behavior, so the safety profile is covered. The description adds one genuinely new trait — fail-closed error behavior for unsupported state-year combinations — plus the notion of versioned per-year profiles, but it says nothing about how incomplete income inputs are handled or what the result contains.

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

Conciseness5/5

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

Two short sentences, front-loaded with the core action, and the fail-closed caveat placed immediately after. No redundant restatement of the tool name or filler.

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?

With a full output schema, rich annotations, and complete parameter documentation, the description does not need to explain return values. It covers purpose and the key failure mode; only the absence of any routing to related state-tax tools leaves a small gap.

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 100%, including defaults for filingStatus and deprecation of taxableIncome, so the schema carries the parameter burden. The description only echoes the tax-year/profile concept already present in the schema and adds no interpretation of stateCode or income fields.

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?

States a specific verb ('Estimate') and resource ('state income tax') and adds a scoping qualifier ('using an explicit tax-year calculation profile'). This is enough to separate it from siblings like get_state_tax_info or compare_state_taxes, though no sibling is named explicitly.

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

Usage Guidelines2/5

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

There is no when-to-use or when-not-to-use guidance and no alternatives are named. The only routing-ish information, 'unsupported state-year paths fail closed,' describes failure behavior rather than selection criteria.

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