Skip to main content
Glama

Senaro Personal Finance

401(k) Match Optimizer

optimize_401k_match
Read-onlyIdempotent

Calculation, not advice. Verify with a professional before acting. Deterministic 401(k) employer-match optimizer. Given your annual salary, pay frequency, current contribution percent, and your employer's match formula (as a named preset or a custom tier list), computes: the annual match you are capturing today; the maximum you could capture (full match entitlement); the match forfeited at your current rate; the minimum contribution percent to capture the full match; whether front-loading contributions would forfeit match at a no-true-up plan; and a per-period schedule showing level vs. front-load paths side by side. IRS limits (402(g) elective deferral, 401(a)(17) compensation cap, 415(c) annual additions) are applied and cited in provenance. Catch-up contribution ceilings for ages 50+ and 60-63 (SECURE 2.0) are computed when participant_age is provided; when a catch-up allowance applies, applied_caps[].cap_name reads '402(g) elective deferral plus 414(v) catch-up' and limit_value carries the combined ceiling, not the bare 402(g) amount. HEAVY tool: use output='summary' (default) for the headline scalars or output='inline' for the full per-period schedule. output='capture' writes the full payload to a file on this server's local disk for the chart-render pipeline; available on the local stdio transport only, and rejected with a structured error on the hosted HTTP transport.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
toolArgumentsYesJSON object with parameters: REQUIRED: annual_salary: decimal > 0. Annual gross salary. pay_periods_per_year: integer in [1, 365]. Pay periods per year (12=monthly, 24=semi-monthly, 26=biweekly, 52=weekly). contribution_pct: decimal in [0, 100]. Current employee contribution as a percent of gross pay. MATCH FORMULA (exactly one required): match_preset: one of 'safe_harbor_basic' (100% of first 3% + 50% of next 2%), 'safe_harbor_enhanced_simple' (100% of first 4%), 'qaca' (100% of first 1% + 50% of next 5%), 'fifty_pct_of_first_six_pct' (50% of first 6%). match_tiers: array of tier objects [{ match_frac: decimal (0,1], up_to_deferral_pct: decimal > 0 }, ...]. match_frac is the employer fraction (0.5 = 50%). up_to_deferral_pct is the tier width as a percent of pay. Example: [{ match_frac: 1.0, up_to_deferral_pct: 3 }, { match_frac: 0.5, up_to_deferral_pct: 2 }] = safe_harbor_basic. OPTIONAL: has_true_up: bool (default false). Whether the plan provides an annual true-up. false is the conservative assumption: surfaces front-loading forfeiture risk. participant_age: integer >= 0 (optional). Determines which catch-up limit applies (age 50+, or age 60-63 SECURE 2.0 super catch-up). Omit when age is unknown or participant is under 50. chart_title: string (optional). Reserved for the chart pipeline. Must not contain em-dashes or en-dashes. Max 120 characters. ENVELOPE: output: 'summary' (default) | 'inline' | 'capture' summary: headline scalars (match captured/forfeited, full-match threshold, front-load flag, applied_caps, citations); the per-period period_schedule is stripped. inline: full payload including the period_schedule[] (for chart rendering). capture: full payload written to ~/.senaro/captures/; capture_ref URI returned. Available on the local stdio transport only; the hosted HTTP transport rejects 'capture' with a structured error naming 'summary' and 'inline' as the valid alternatives.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-destructive, closed-world), and the description adds substantive behavior on top: determinism, that IRS limits are applied and cited in provenance, the combined 402(g)+414(v) catch-up ceiling naming in applied_caps, the front-load forfeiture risk surfaced by the default has_true_up=false, and the structured-error behavior of output='capture' on the hosted HTTP transport. No contradictions with annotations.

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-loads the disclaimer and one-sentence purpose before the capability list, and the output-mode guidance is placed at the end where an agent making the call will find it. The prose is dense and long, with some redundancy between the description and the schema's toolArguments text (the 402(g) catch-up and capture-transport caveats appear twice), but every section carries real information for a heavy calculator.

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?

There is no output schema, so the description correctly carries the return-value burden: it enumerates the headline scalars, notes that period_schedule is stripped in 'summary', and describes the capture_ref URI. Combined with the annotation coverage and full schema descriptions, an agent has everything needed to select the right output mode and interpret results.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3, but the description adds derived semantics beyond a plain field list: it explains the interaction between participant_age and the resulting applied_caps[].cap_name/limit_value, why has_true_up defaults false (conservative forfeiture modeling), and what each output mode does to the payload. It largely mirrors the schema's own param text, which caps the score below 5.

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 ('Deterministic 401(k) employer-match optimizer') and enumerates exactly what it computes: match captured, max entitlement, forfeited match, full-match threshold, front-load forfeiture, and a per-period schedule. This is unmistakably distinct from sibling calculators like calculate_emergency_fund or compare_strategies because the resource and outputs are named concretely.

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 clear operational context: which output mode to pick ('summary' default for headline scalars, 'inline' for the schedule, 'capture' for the file pipeline) and the transport restriction that capture is stdio-only. It also flags the tool as HEAVY and adds a 'calculation, not advice' caveat. It stops short of naming a sibling alternative or an explicit when-not-to-use condition, so it is context-rich but not fully routing.

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