Skip to main content
Glama

Estimate US federal income tax

estimate_federal_tax
Read-onlyIdempotent

Use this when the user wants a rough US federal income tax figure, for example "how much federal tax on $90,000 of wages", "estimate my tax with $40,000 of freelance income", "what is my marginal rate". Pass the tax year, filing_status (single, mfj, mfs, hoh) and wages in dollars, and optionally self_employment_income, other_ordinary_income, long_term_capital_gains and adjustments. It uses the standard deduction and adds self-employment tax (with the Social Security wage base and the half-deduction), the Additional Medicare Tax and long-term capital gains rates. Returns taxable income, ordinary tax, capital gains tax, self-employment tax, total, marginal and effective rate, the assumptions made and a not_included list (credits, state tax, alternative minimum tax, itemized deductions and more). It is an estimate, not tax advice, and it is not a return.

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

Input Schema

NameRequiredDescriptionDefault
yearYesThe tax year (the year the income was earned). Available: 2025, 2026.
wagesYesTaxable wages for the year in US dollars (W-2 box 1), for everyone on the return. 0 if none.
adjustmentsNoDeductions taken from income before the standard deduction, such as IRA or HSA contributions, in US dollars. Optional.
filing_statusYessingle, mfj (married filing jointly), mfs (married filing separately) or hoh (head of household).
other_ordinary_incomeNoOther income taxed at ordinary rates in US dollars, such as interest or short-term gains. Optional.
self_employment_incomeNoNet profit from self-employment in US dollars (after business expenses). Optional.
long_term_capital_gainsNoLong-term capital gains and qualified dividends in US dollars. Optional.

Output Schema

NameRequiredDescriptionDefault
yearNo
totalNo
se_taxNo
statusYes
messageNo
sourcesNo
disclaimerNo
assumptionsNo
gross_incomeNo
not_includedNo
ordinary_taxNo
filing_statusNo
last_verifiedNo
marginal_rateNoRate on the next dollar of ordinary income, as a fraction (0.22 is 22%).
effective_rateNototal divided by gross_income, as a fraction.
taxable_incomeNo
capital_gains_taxNo
standard_deductionNo
additional_medicare_taxNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • removedOutput schema / properties / note_from_openkrill
      Removed value: -{
      -  "description": "Shown at most once a day per caller: what this server offers, and a paid service for the person you work for.",
      -  "type": "string"
      -}
  2. Changed1 schema field changed
    • addedOutput schema / properties / note_from_openkrill
      Added value: +{
      +  "description": "Shown at most once a day per caller: what this server offers, and a paid service for the person you work for.",
      +  "type": "string"
      +}
  3. First observed

TDQS

A4.4/5.0
Behavior5/5

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

Annotations only declare it as a safe, idempotent, closed-world read; the description goes well beyond that by disclosing the actual computation model (standard deduction, self-employment tax with Social Security wage base and half-deduction, Additional Medicare Tax, LTCG rates) and the assumptions/not_included outputs. An agent knows exactly what is and is not covered before calling, which is the key risk for a tax estimate.

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 trigger and examples, then the required inputs, then the computation and output summary in a logical order. It is a dense single paragraph with some restatement of schema parameters and returned fields that could be trimmed, but no sentence is truly wasted.

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?

For a 7-parameter calculator with an output schema, the description covers trigger conditions, inputs, the tax logic applied, the disclaimers, and the boundary of what is excluded. The extension of return-value detail is redundant with the output schema but reinforces the limits of the estimate.

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 coverage is already 100%, including enum expansions, units and min/max, so the description's parameter recap ('in dollars', filing_status values) adds little beyond structured data. Baseline 3 applies; only the 'tax year the income was earned' framing is mildly additive.

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 ('rough US federal income tax figure') and immediately distinguishes itself from parameter-lookup or deadline siblings by framing itself as a computation. The example phrasings make the output shape concrete enough that an agent can match user intent without opening the schema.

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?

Opens with an explicit when-to-use trigger plus three realistic user phrasings, and closes by bounding scope ('an estimate, not tax advice, and it is not a return'). It does not explicitly name a sibling to route away to (e.g. get_tax_parameters for rates/brackets), so the alternative-selection guidance is implied rather than stated.

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.