Skip to main content
Glama
irs-taxpayer-mcp

irs-taxpayer-mcp

by dma9527

compare_state_taxes

Read-onlyIdempotent

Compare income tax across up to 10 states for a single tax year using explicit state calculation profiles; returns results only when every requested state has a profile.

Instructions

Compare state income tax for one tax year only when every requested state has an explicit calculation profile.

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": {
      "states": "<states>",
      "taxYear": "<taxYear>"
    },
    "name": "compare_state_taxes"
  }
}

Input Schema

NameRequiredDescriptionDefault
statesYesArray of state codes to compare (e.g., ['CA', 'TX', 'WA', 'NY'])
taxYearYesTax year for all versioned state calculation profiles
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
incomeBeforeStateDeductionsNoAnnual income before modeled state deductions

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. Changed6 schema fields changedv1.0.1
    • addedInput schema / properties / filingStatus
      Added value: +{
      +  "description": "Filing status (default: single)",
      +  "enum": [
      +    "single",
      +    "married"
      +  ],
      +  "type": "string"
      +}
    • addedInput schema / properties / incomeBeforeStateDeductions
      Added value: +{
      +  "description": "Annual income before modeled state deductions",
      +  "minimum": 0,
      +  "type": "number"
      +}
    • addedInput schema / properties / taxYear
      Added value: +{
      +  "description": "Tax year for all versioned state calculation profiles",
      +  "type": "integer"
      +}
    • changedInput schema / properties / taxableIncome / description
      Previous value: -"Annual taxable income"New value: +"Deprecated alias for incomeBeforeStateDeductions"
    • changedInput schema / required
      Previous value: -[
      -  "states",
      -  "taxableIncome"
      -]New value: +[
      +  "states",
      +  "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

A3.5/5.0
Behavior3/5

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

Annotations already declare this as a read-only, idempotent, closed-world, non-destructive operation, so the safety profile is covered. The description adds the profile-availability constraint, which is genuine behavioral context, but says nothing about how a missing profile manifests (error vs. partial result) or about multi-state result shape.

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?

A single sentence with no filler, and the scope constraint is placed immediately after the action. The compression of the conditional into the same clause makes it slightly dense to parse, but nothing is wasted.

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?

An output schema exists, so return values need no explanation, and all parameters are schema-documented. The remaining gap is that "explicit calculation profile" is left undefined with no pointer to a tool like get_state_tax_info that would reveal which states qualify.

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%, so all six parameters, including the enum filing status and the deprecated taxableIncome alias, are already documented in the schema. The description only reinforces that taxYear applies uniformly across states; baseline 3 applies when the schema carries the load.

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 names a specific verb and resource ("Compare state income tax") and scopes it to "one tax year," which distinguishes it from a single-state estimator or a multi-year planner. It does not name any sibling tool explicitly, but the core action is unambiguous.

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?

It supplies one real precondition for use: every requested state must have an explicit calculation profile. That is a meaningful gate, but there is no guidance on what to do when a state lacks a profile, and no named alternative such as estimate_state_tax for single-state or non-profiled cases.

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