Skip to main content
Glama

MaliMoney Calculators

Backdoor Roth

backdoor_roth
Read-onlyIdempotent

Apply the IRS pro-rata rule to a backdoor Roth (traditional→Roth conversion). Use when the user asks 'is my backdoor Roth tax-free', 'what's the pro-rata rule on my conversion', or has pre-tax IRA money alongside nondeductible contributions. The rule aggregates ALL traditional/SEP/SIMPLE IRAs: tax-free share = basis ÷ (basis + pre-tax). Pass conversionAmount, afterTaxBasis (nondeductible contributions), and pretaxBalance (total pre-tax IRA balance); optionally marginalRatePct.

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": {
      "conversionAmount": "<conversionAmount>",
      "afterTaxBasis": "<afterTaxBasis>",
      "pretaxBalance": "<pretaxBalance>"
    },
    "name": "backdoor_roth"
  }
}

Input Schema

NameRequiredDescriptionDefault
afterTaxBasisYesTotal nondeductible (after-tax) contributions across all IRAs — your basis.
pretaxBalanceYesTotal pre-tax balance across all traditional/SEP/SIMPLE IRAs.
marginalRatePctNoMarginal federal rate % for the tax-cost estimate.
conversionAmountYesAmount being converted to Roth this year.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare this a read-only, idempotent, closed-world calculation, so safety behavior needs no explanation. The description adds real domain context beyond that: the rule aggregates ALL traditional/SEP/SIMPLE IRAs and the tax-free share is basis ÷ (basis + pre-tax), which tells the agent what the tool computes internally. It does not state what the response looks like, but that is a modest gap for a pure calculator.

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 verb and rule, then trigger phrases, then mechanics — a sensible ordering with no filler. Slightly repetitive in re-listing parameter names that the schema already documents, which keeps it just under top marks.

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?

A four-parameter read-only calculation with no output schema; the description supplies the formula and the aggregation rule, so the agent knows what the tool will do with the inputs. It omits the shape of the result (e.g., whether it returns a tax-free share, a dollar figure, or a tax cost), which would have closed the remaining 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 coverage is 100% and the schema descriptions already gloss each parameter (including "Total nondeductible (after-tax) contributions across all IRAs — your basis"), so the description largely restates them. The one added value is the ratio formula showing how the three inputs combine, but marginalRatePct is only mentioned as optional without saying what it feeds. Baseline 3 is appropriate.

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?

Names a specific verb (apply) and a specific rule (IRS pro-rata on a backdoor Roth), plus the mechanic in parentheses (traditional→Roth conversion). This clearly separates it from siblings like roth_conversion_one_year and roth_vs_traditional, which address adjacent but different questions.

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?

Gives explicit trigger utterances ("is my backdoor Roth tax-free", "what's the pro-rata rule on my conversion") and a structural condition (pre-tax IRA money alongside nondeductible contributions). It stops short of saying when NOT to use it or naming a specific sibling alternative, so it is clear context rather than full routing guidance.

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.

Resources