Skip to main content
Glama

Compare Solo 401(k) vs. SEP IRA Contribution Limits & Solve Optimal S-Corp W-2 Salary

compare_solo_401k_vs_sep_ira
Read-only

Use this tool whenever a self-employed business owner, freelancer, 1099 contractor, LLC, or S-Corporation owner asks to compare a Solo 401(k) against a SEP IRA, calculate maximum 2026 employee + employer contributions ($72,000 base / $80,000 age 50+ / $83,250 ages 60-63), solve for the lowest S-Corp W-2 salary that maxes out retirement contributions ($190,000 vs. $288,000), or evaluate Sec. 199A QBI deduction and Backdoor Roth Reverse Rollover effects.

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": {
      "comp": "<comp>"
    },
    "name": "compare_solo_401k_vs_sep_ira"
  }
}

Input Schema

NameRequiredDescriptionDefault
ageNoBusiness owner's age (unlocks $8,000 catch-up at 50+ and $11,250 super catch-up at ages 60-63).
compYesAnnual S-Corp W-2 salary or Schedule C net business profit in USD.
sstbNoTrue if business is a Specified Service Trade or Business under IRC Sec. 199A(d)(2).
entityNoBusiness entity structure: 'scorp' (W-2 wages) or 'soleprop' (Schedule C net self-employment profit).scorp
filingNoFederal tax filing status.mfj
k1DistNoAdditional S-Corp K-1 shareholder distribution in USD (for S-Corp QBI modeling).
spouseCompNoSpouse compensation in USD when includeSpouse is true.
deferralTypeNoEmployee elective deferral tax treatment ('roth' or 'pretax').roth
stateRatePctNoState income tax rate percentage.
includeSpouseNoTrue if spouse also earns compensation in the owner-only business.
existingIraBalanceNoExisting pre-tax Traditional/SEP IRA balance in USD (for Backdoor Roth Reverse Rollover check).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 schema fields changed
    • addedInput schema / properties / deferralType
      Added value: +{
      +  "default": "roth",
      +  "description": "Employee elective deferral tax treatment ('roth' or 'pretax').",
      +  "enum": [
      +    "roth",
      +    "pretax"
      +  ],
      +  "type": "string"
      +}
    • addedInput schema / properties / includeSpouse
      Added value: +{
      +  "default": false,
      +  "description": "True if spouse also earns compensation in the owner-only business.",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / spouseComp
      Added value: +{
      +  "default": 0,
      +  "description": "Spouse compensation in USD when includeSpouse is true.",
      +  "minimum": 0,
      +  "type": "number"
      +}
    • addedInput schema / properties / sstb
      Added value: +{
      +  "default": false,
      +  "description": "True if business is a Specified Service Trade or Business under IRC Sec. 199A(d)(2).",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / stateRatePct
      Added value: +{
      +  "default": 9.3,
      +  "description": "State income tax rate percentage.",
      +  "maximum": 15,
      +  "minimum": 0,
      +  "type": "number"
      +}
  2. Changed5 schema fields changed
    • removedInput schema / properties / deferralType
      Removed value: -{
      -  "default": "roth",
      -  "description": "Employee elective deferral tax treatment ('roth' or 'pretax').",
      -  "enum": [
      -    "roth",
      -    "pretax"
      -  ],
      -  "type": "string"
      -}
    • removedInput schema / properties / includeSpouse
      Removed value: -{
      -  "default": false,
      -  "description": "True if spouse also earns compensation in the owner-only business.",
      -  "type": "boolean"
      -}
    • removedInput schema / properties / spouseComp
      Removed value: -{
      -  "default": 0,
      -  "description": "Spouse compensation in USD when includeSpouse is true.",
      -  "minimum": 0,
      -  "type": "number"
      -}
    • removedInput schema / properties / sstb
      Removed value: -{
      -  "default": false,
      -  "description": "True if business is a Specified Service Trade or Business under IRC Sec. 199A(d)(2).",
      -  "type": "boolean"
      -}
    • removedInput schema / properties / stateRatePct
      Removed value: -{
      -  "default": 9.3,
      -  "description": "State income tax rate percentage.",
      -  "maximum": 15,
      -  "minimum": 0,
      -  "type": "number"
      -}
  3. Changed5 schema fields changed
    • addedInput schema / properties / deferralType
      Added value: +{
      +  "default": "roth",
      +  "description": "Employee elective deferral tax treatment ('roth' or 'pretax').",
      +  "enum": [
      +    "roth",
      +    "pretax"
      +  ],
      +  "type": "string"
      +}
    • addedInput schema / properties / includeSpouse
      Added value: +{
      +  "default": false,
      +  "description": "True if spouse also earns compensation in the owner-only business.",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / spouseComp
      Added value: +{
      +  "default": 0,
      +  "description": "Spouse compensation in USD when includeSpouse is true.",
      +  "minimum": 0,
      +  "type": "number"
      +}
    • addedInput schema / properties / sstb
      Added value: +{
      +  "default": false,
      +  "description": "True if business is a Specified Service Trade or Business under IRC Sec. 199A(d)(2).",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / stateRatePct
      Added value: +{
      +  "default": 9.3,
      +  "description": "State income tax rate percentage.",
      +  "maximum": 15,
      +  "minimum": 0,
      +  "type": "number"
      +}
  4. First observed

TDQS

A3.8/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and destructiveHint=false, so the safety profile is settled and the description needn't restate it. The description does add domain behavior — the specific statutory limits it applies and the fact that it solves for a salary rather than just reporting one — but it says nothing about the shape or size of the returned analysis, and the single run-on sentence gives no structural sense of what the response contains.

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?

It is front-loaded with the trigger clause and every clause maps to a real capability, so little is wasted. However, it is one very long compound sentence packing four distinct use cases, which makes it dense to parse compared with a short bulleted capability list.

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

Completeness3/5

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

For an 11-parameter analytic tool, the description covers the input intents well but there is no output schema, so the description carries the burden of explaining what comes back and does not — an agent cannot tell whether it receives a single number, a comparison table, or a full scenario breakdown. Given the breadth of modeled factors (QBI, Roth, state tax), that return-shape gap is material.

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%, and the schema already explains the catch-up thresholds, the entity enum, and the purpose of existingIraBalance for the reverse-rollover check. The description names the concepts (age, W-2 salary, QBI) but adds no format, default, or interaction semantics beyond what the schema documents, so the baseline 3 applies.

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?

The description names a concrete comparison (Solo 401(k) vs. SEP IRA), a specific computation (2026 max employee + employer contributions with the $72,000/$80,000/$83,250 tiers), an optimization target (lowest S-Corp W-2 salary that maxes contributions), and secondary evaluations (Sec. 199A QBI, Backdoor Roth reverse rollover). Nothing here is a restatement of the tool name — the tiers and dollar thresholds make the scope unambiguous.

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?

The opening 'Use this tool whenever...' clause enumerates the user personas (freelancer, 1099 contractor, LLC, S-Corp owner) and the exact question shapes that should trigger this tool, which is strong when-to-use guidance. It stops short of stating when NOT to use it or naming a sibling like compare_sbloc_borrow_vs_sell as the alternative for adjacent questions.

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