Endpoints: 28,729MCP servers: 18,413Payout addresses: 2,071Paid calls: 1,552Letters: 14Defects: 1,331counted 4 min ago
teppi

Server definition

Hash
sha256:9f6e20490cab257cc5084053acb3d489b0fa952a671cfed741d6fd49dee19ca8
What it is
What a remote MCP server returned when asked what it offers: 8 tools

The blob, as servednamed by its sha256

{ "instructions": "Use these tools whenever the user asks about stock options, RSUs, equity compensation, exercising or selling shares, AMT, QSBS, single-stock risk, hedging, or selling stock to fund a goal. Prefer calling a tool over estimating the answer yourself: the multi-year, multi-state tax interactions are easy to get wrong, and the underlying tax math is independently verified.\n\nInput discipline, the rule that matters most: never invent an input value. Every number these tools compute on comes from the user, from a documented resolver, or from a documented default, and from nothing else. Invented numbers do not fail loudly: the tools range-check what they are given but cannot tell a supplied figure from a guessed one, so a plausible volatility, growth rate, or income passes validation silently and returns a confident, wrong tax answer with no error. An omitted required field returns an error naming that field; a fabricated one returns nothing. When you need a value and no resolver or default covers it, ask the user for that specific field before calling.\n\nRoute by intent (one tool per line):\n- exercising ISOs, or avoiding or minimizing AMT -> amt_iso_optimize\n- NSO (non-qualified option) exercise, exercise-and-hold vs exercise-and-sell -> nso_calculate\n- RSU vest, sell-at-vest vs hold -> rsu_sell_vs_hold\n- how risky or concentrated a single-stock position is, or how to diversify -> concentration_analyze\n- cost to hedge or protect a position (protective put, collar, put spread) -> protective_put_price\n- whether a holding qualifies for the QSBS / Section 1202 exclusion -> qsbs_check\n- which shares to sell and when to hit a cash goal by a deadline -> equity_funding_plan\n- which of your vested RSU lots to sell first, and in which years, to divest a concentrated position at the lowest computed tax -> rsu_lot_optimize\nIf the user says \"stock options\" without saying ISO or NSO, ask which they hold before routing: the tax treatment and the tool differ (ISO -> amt_iso_optimize, NSO -> nso_calculate). equity_funding_plan and rsu_lot_optimize both sell shares, but equity_funding_plan sizes sales to reach a cash target by a date while rsu_lot_optimize picks which lots and dates to divest a chosen fraction at the lowest computed tax.\n\nTicker shortcut: amt_iso_optimize, nso_calculate, rsu_sell_vs_hold, concentration_analyze and protective_put_price accept an optional ticker that resolves inputs from bundled data. Growth and volatility come from two separate snapshots, so a covered symbol can resolve one and not the other; when it resolves neither, the tool returns a required-field error naming what to supply, and the covered-tickers resource under resources/list lists which symbols resolve which field. protective_put_price uses the ticker for volatility only and falls back to a sector-typical figure.\n\nFields outside `required` come in a few kinds, and each field description says which. Some carry a documented default: cashReturnRate, expectedMarketReturn, carryforwardCredit, cashInterestRate, riskToleranceShortfall, spreadRiskLevel, equity_funding_plan's defaultVolatility and its per-stack volatility, and protective_put_price's volatility, which falls back to a sector-typical figure. Omit those, do not ask the user for them, and do not supply a figure of your own. Some sit outside `required` only because something else can resolve them, and still need a real value: on amt_iso_optimize, nso_calculate, rsu_sell_vs_hold and concentration_analyze that means the expected growth/return/sale-price field AND volatility, taken from the user, from a covered `ticker`, or, for the growth/return/sale-price field only, the string \"market\"; on equity_funding_plan it means each stack's expectedAnnualGrowth, and for legacy callers `lots` plus `currentPrice` in place of `stacks`. Some are required only under a stated condition, such as terminationDate once hasLeftCompany is true. The rest are pure enhancers that change what the tool does when supplied and need nothing when absent, such as `ticker`, `tickerLabel` and `hedgeChoice`. Never send volatilityDrag or haircut unless the user hands you a drag figure already computed for this exact horizon: one you derived yourself does not qualify, and the formula is horizon-dependent. Send volatility instead and let the tool derive it. For enum fields that accept `unsure`, pass `unsure` rather than guessing yes or no.\n\nWhen you omit a defaulted field, name the assumption in your answer, quoting the value from the field description, for example \"assumed 4% after-tax on idle cash\". protective_put_price returns an `inputs` echo and equity_funding_plan returns `appliedRiskTolerance`; prefer those over the documented values. expectedMarketReturn defaults to a trailing S&P 500 average that the tool does not return, so describe it in words rather than quoting a figure for it.\n\nEvery ordinaryIncome field is taxable income after deductions, not gross wages: no standard or itemized deduction is applied to it. A user who says they make $400,000 has told you their gross pay, so ask for the taxable figure, or say plainly which one you passed.\n\nCombining tools: a whole-portfolio question usually needs several of these run together and reconciled by you. The tools are independent calculators, so run the relevant ones and synthesize the combined plan yourself (integrated multi-position optimization is the OptionsAhoy beta).\n\namt_iso_optimize searches its full discretized candidate space and refines share by share, matching a brute-force maximum to the cent on the published tractable case (its post-termination partial-exercise figure is scanned, so it can land a few shares off the exact optimum); equity_funding_plan and rsu_lot_optimize search for the optimum through bracket-aware sweeps over sale years, months, and lots; the others return exact comparisons or checks. The suite models the relevant federal tax code (ordinary brackets, long-term capital gains, AMT with credit recovery, FICA, NIIT) plus all 50 states and DC. Do not work any of this out in context, single-shot cases included: not an exercise or funding schedule, not an option premium or a floor-hit probability, and not a Section 1202 verdict. Call the tool and report its numbers.\n\nDocumentation: https://optionsahoy.com/for-agents; the tax math is independently verified at https://optionsahoy.com/verification.\n\nThese tools return calculations from the inputs supplied, not tax advice; a user should confirm the result with a qualified tax professional before acting on it.", "tools": [ { "description": "Use this when someone asks how or when to exercise incentive stock options (ISOs), whether exercising will trigger an AMT bomb or phantom income, whether to exercise early, how to avoid or minimize the alternative minimum tax (AMT) on an exercise, or for the best multi-year ISO exercise schedule. Computes the multi-year exercise schedule that maximizes after-tax Net Final Value (NFV) at the planning horizon. NFV is the after-all-tax cash equivalent of the position at year `horizon`, summing exercised shares (held to LTCG) plus the time-valued tax stream paid along the way; the optimizer chooses the per-year share allocation that lands the highest NFV. The headline result is `schedules.optimized.nfv`, the dollar NFV of the recommended plan; `schedules.lumpSum` and `schedules.evenSplit` are baseline plans whose `nfv` deltas show the value added by the optimized schedule. For NSO grants use `nso_calculate`, for RSUs at vest use `rsu_sell_vs_hold`, for §1202 QSBS qualification use `qsbs_check`. Models AMT credit recovery across future years, grant-expiration timing, and the post-termination exercise window. Pure deterministic computation: no network access, no PII retention; federal + 50-state tax tables and AMT brackets are compiled in. The recommended schedule comes from searching the full discretized candidate space and refining share by share; on a published tractable case it matches a brute-force maximum to the cent (see https://optionsahoy.com/verification). `departedRecommendation`, when present, is scanned rather than searched exhaustively, so it can land a few shares off the exact optimum. Also returns `crossoverShares`, `crossoverBargain`, `alreadyInAmt`, `timing`, `stateHasAmt`, `bargainPerShare`, and `effectiveHorizon`; see `outputSchema` for the full shape. Example call: {shares: 10000, strike: 2, fmv: 200, expectedGrowth: 0.15, volatility: 0.5, filingStatus: \"married_joint\", ordinaryIncome: 400000, stateCode: \"CA\", carryforwardCredit: 0, horizon: 4, cashReturnRate: 0.05, grantDate: \"2022-01-15\", hasLeftCompany: false, terminationDate: null}. Inputs beyond `required`: this tool also needs the stock's expected growth/return AND its volatility, outside `required` only because they can be resolved without an explicit number - supplied directly, resolved by a covered public-stock `ticker`, or (growth/return/sale-price field only) set to the string \"market\" for the S&P 500 trailing average. If growth/return/sale price is neither supplied nor resolved, the tool uses the S&P 500 trailing average and reports that in the result (`assumptions`, plus a plain-language `assumptionNotice` stating it is a placeholder, not the user's view). Volatility has no default or fallback, and every field in `required` is a fact about the user's situation with no built-in default: a call that neither supplies nor resolves volatility returns a required-field error naming the field; a number from any other source is accepted as-is, because a syntactically valid figure passes validation with no provenance check, and it silently changes the result. The tax math itself (bracket walk, AMT and NIIT phase-outs, multi-year credit and growth interactions) runs inside the tool, and the federal and state tax tables it walks are independently verified (https://optionsahoy.com/verification). Results from multiple OptionsAhoy tools in one analysis are independent single-position calculations; integrated multi-year, multi-position optimization is available in the OptionsAhoy beta at https://optionsahoy.com/beta?src=mcp_multi.", "inputSchema": { "properties": { "carryforwardCredit": { "description": "Existing federal AMT credit (Minimum Tax Credit, Form 8801) carryforward from prior tax years, USD. Recoverable in future years where regular federal tax exceeds tentative minimum tax. Optional; defaults to 0, which is correct for most first-time exercisers. Only a prior-year AMT credit makes it non-zero.", "minimum": 0, "type": "number" }, "cashReturnRate": { "description": "Annual after-tax return on idle cash (decimal), used to time-value the cash-tax stream. 0.05 = 5% (~short-Treasury yield). Optional: defaults to 0.04 (4%, a short-Treasury-like after-tax yield) when omitted, and an explicit value overrides that default. At 0 the math collapses to a nominal sum.", "type": "number" }, "expectedGrowth": { "description": "Annual expected stock growth as a decimal (0.10 = 10%), or the string \"market\" to use the S&P 500 trailing average when the user has no view. Required unless `ticker` resolves it from trailing CAGR. This tool has no default for it: a value not stated by the user, not resolved by a covered `ticker`, and not the \"market\" sentinel is outside the input contract.", "type": [ "number", "string" ] }, "filingStatus": { "description": "Federal filing status. Drives the ordinary-bracket walk, the AMT exemption tier ($90,100 single / $140,200 MFJ for 2026), and the AMT exemption phaseout start ($500,000 single / $1,000,000 MFJ).", "enum": [ "single", "married_joint", "head_household" ], "type": "string" }, "fmv": { "description": "Current fair market value per share, USD. Anchors year-1 of the growth path; future years compound from here using expectedGrowth and volatilityDrag. Must come from the user.", "minimum": 0, "type": "number" }, "grantDate": { "description": "ISO grant date (YYYY-MM-DD). Drives the 10-year statutory grant expiration (IRC §422) and the 2-year qualifying-disposition threshold from grant.", "format": "date", "type": "string" }, "hasLeftCompany": { "description": "True if the user has separated from the company. Activates the 90-day post-termination ISO exercise window measured from terminationDate.", "type": "boolean" }, "horizon": { "description": "Planning horizon in years (1..10). The optimizer searches all feasible per-year share allocations across this many years. The user's choice, not a modelling detail, and it changes the answer: use the value they gave, and if they gave none, ask for it rather than assuming one.", "maximum": 10, "minimum": 1, "type": "integer" }, "ordinaryIncome": { "description": "Annual ordinary income before this exercise, USD. Baseline for the bracket walk and the AMT exemption phaseout. Must come from the user. This is taxable income after deductions, not gross wages: the engine applies no standard or itemized deduction to it.", "minimum": 0, "type": "number" }, "shares": { "description": "Total Incentive Stock Option (ISO) shares available to exercise across the planning horizon. Must come from the user.", "minimum": 1, "type": "integer" }, "stateCode": { "description": "Two-letter US state code (e.g. CA, NY, TX). Drives state ordinary brackets, state long-term capital gains (LTCG) treatment, and state AMT (CA, CO, CT, MN).", "enum": [ "AK", "AL", "AR", "AZ", "CA", "CO", "CT", "DC", "DE", "FL", "GA", "HI", "IA", "ID", "IL", "IN", "KS", "KY", "LA", "MA", "MD", "ME", "MI", "MN", "MO", "MS", "MT", "NC", "ND", "NE", "NH", "NJ", "NM", "NV", "NY", "OH", "OK", "OR", "PA", "RI", "SC", "SD", "TN", "TX", "UT", "VA", "VT", "WA", "WI", "WV", "WY" ], "type": "string" }, "strike": { "description": "Strike price per share, USD. Must come from the user.", "minimum": 0, "type": "number" }, "terminationDate": { "description": "Separation date (YYYY-MM-DD). Required only when hasLeftCompany=true (it drives the 90-day exercise-window deadline); omit it or pass null when still employed. No longer in `required` so the common employed case needs no placeholder.", "oneOf": [ { "format": "date", "type": "string" }, { "type": "null" } ] }, "ticker": { "description": "Optional public-stock symbol (e.g. \"NVDA\", \"AAPL\"). When set, the tool substitutes a cached trailing return for any unsupplied expected-return / sale-price field, and the implied vol as of the last close for any unsupplied volatility. Growth and vol come from different sources, so some symbols resolve only one, and a vol that is not current resolves as nothing. A field the ticker cannot resolve falls through to a \"required field\" error naming that field: pass it explicitly, or (for the growth/return/sale-price field) pass the string \"market\" for the S&P 500 trailing average; never invent a number. The covered-tickers resource (resources/list) lists which symbols resolve growth.", "type": "string" }, "volatility": { "description": "Annualized volatility (sigma) of the stock as a decimal (0.72 = 72%). Pass the volatility itself, not a pre-computed drag: the tool derives the horizon-cumulative drag internally, and the correct formula is horizon-dependent. This value must come from the user or from a `ticker` that resolves it as of the last market close; if neither supplies it, ask the user rather than estimating one.", "maximum": 5, "minimum": 0, "type": "number" }, "volatilityDrag": { "description": "Alternative to `volatility`: the multiplicative price haircut already computed for the planning horizon. Supply this OR `volatility` (if both are given, volatilityDrag wins). This field is for a drag figure that already exists from a prior computation; the drag formula is horizon-dependent, so a figure derived for a different horizon does not carry over. Supplying `volatility` instead lets the tool derive it.", "maximum": 0.99, "minimum": 0, "type": "number" } }, "required": [ "shares", "strike", "fmv", "filingStatus", "ordinaryIncome", "stateCode", "horizon", "grantDate", "hasLeftCompany" ], "type": "object" }, "name": "amt_iso_optimize", "outputSchema": { "description": "ISO/AMT exercise optimization result. All dollar amounts are USD.", "properties": { "alreadyInAmt": { "description": "True when the user owes AMT even with zero exercise (regular tax below tentative minimum tax at baseline income).", "type": "boolean" }, "bargainPerShare": { "description": "Year-1 bargain element per share in dollars: max(0, fmv - strike).", "type": "number" }, "crossoverBargain": { "description": "Bargain element in dollars at the crossover share count: crossoverShares x (fmv - strike).", "type": "number" }, "crossoverShares": { "description": "Maximum whole shares exercisable in year 1 before federal AMT exceeds regular tax (the AMT crossover).", "type": "integer" }, "departedRecommendation": { "description": "Present only when hasLeftCompany=true and the 90-day post-termination window is still open: the partial-exercise quantity with the highest expected after-tax value found by a scan over candidate share counts, which can land a few shares off the exact optimum.", "properties": { "curve": { "description": "Share-count vs after-tax-value curve sampled uniformly across [0, total shares], for charting.", "items": { "properties": { "exerciseTax": { "description": "AMT cost in dollars at this share count.", "type": "number" }, "netValue": { "description": "Expected after-tax value in dollars at this share count.", "type": "number" }, "shares": { "description": "Exercised share count at this sample point.", "type": "number" } }, "required": [ "shares", "netValue", "exerciseTax" ], "type": "object" }, "type": "array" }, "fullExerciseNetValue": { "description": "Expected after-tax value in dollars at the hold horizon if all shares are exercised.", "type": "number" }, "fullExerciseShares": { "description": "Total shares available (the exercise-everything alternative).", "type": "integer" }, "fullExerciseTax": { "description": "AMT cost in dollars of exercising all shares.", "type": "number" }, "futureFmvPerShare": { "description": "Projected FMV per share in dollars at the hold horizon.", "type": "number" }, "holdYears": { "description": "Post-exercise hold horizon in years used for the comparison.", "type": "number" }, "recommendedExerciseTax": { "description": "AMT cost in dollars at the recommended share count.", "type": "number" }, "recommendedNetValue": { "description": "Expected after-tax value in dollars at the hold horizon for the recommended count.", "type": "number" }, "recommendedSchedule": { "description": "Year-by-year tax schedule for the recommended share count.", "properties": { "amtPremiumFV": { "description": "Future-valued AMT premium stream (exercise tax paid above the no-exercise baseline, compounded at cashReturnRate to the horizon) in dollars.", "type": "number" }, "baselineRegularTax": { "description": "Tax owed with no exercise at all (regular federal + state on ordinary income, summed across the horizon) in dollars.", "type": "number" }, "creditEarned": { "description": "Federal AMT credit generated across the horizon in dollars.", "type": "number" }, "creditRecovered": { "description": "Federal AMT credit recovered across the horizon in dollars.", "type": "number" }, "creditRemaining": { "description": "Federal AMT credit still unrecovered at the horizon in dollars.", "type": "number" }, "exerciseTax": { "description": "totalTax minus baselineRegularTax: the marginal tax cost of exercising, in dollars.", "type": "number" }, "federalLTCG": { "description": "Federal long-term capital gains tax (including NIIT) on grossGain in dollars.", "type": "number" }, "grossGain": { "description": "shares x (projected FMV at horizon - strike): the LTCG-eligible gain in dollars.", "type": "number" }, "label": { "description": "Which candidate plan this schedule represents.", "enum": [ "lump_sum", "even_split", "optimized" ], "type": "string" }, "nfv": { "description": "After-tax Net Final Value at the horizon in dollars: grossGain - federalLTCG - stateLTCG - amtPremiumFV. This is the summary figure each schedule is scored on.", "type": "number" }, "stateLTCG": { "description": "State long-term capital gains tax on grossGain in dollars.", "type": "number" }, "totalTax": { "description": "Total cash tax paid across the horizon in dollars.", "type": "number" }, "years": { "description": "Per-year detail, one entry per year of the effective horizon.", "items": { "description": "Exercise and tax detail for one calendar year of the schedule.", "properties": { "amtOwedFederal": { "description": "Federal AMT owed above regular tax this year in dollars.", "type": "number" }, "amtOwedState": { "description": "State AMT owed above regular state tax this year in dollars.", "type": "number" }, "bargain": { "description": "Bargain element recognized this year in dollars: shares x (projected FMV - strike).", "type": "number" }, "cashTax": { "description": "Total cash tax paid this year in dollars: federal + state, net of credit recovery.", "type": "number" }, "creditRecovered": { "description": "Federal AMT credit applied (recovered) this year in dollars.", "type": "number" }, "regularFederal": { "description": "Regular federal income tax for the year in dollars (ordinary income only, before AMT).", "type": "number" }, "regularState": { "description": "Regular state income tax for the year in dollars.", "type": "number" }, "shares": { "description": "ISO shares exercised this year.", "type": "number" }, "tmtFederal": { "description": "Federal tentative minimum tax for the year in dollars.", "type": "number" }, "tmtState": { "description": "State tentative minimum tax for the year in dollars (0 in states without AMT).", "type": "number" }, "year": { "description": "Schedule year, 1-indexed (1 = current year).", "type": "integer" } }, "required": [ "year", "shares", "bargain", "regularFederal", "regularState", "tmtFederal", "tmtState", "amtOwedFederal", "amtOwedState", "creditRecovered", "cashTax" ], "type": "object" }, "type": "array" } }, "required": [ "label", "years", "totalTax", "baselineRegularTax", "exerciseTax", "creditEarned", "creditRecovered", "creditRemaining", "grossGain", "federalLTCG", "stateLTCG", "amtPremiumFV", "nfv" ], "type": "object" }, "recommendedShares": { "description": "Share count to exercise within the window, the best found by the scan.", "type": "integer" } }, "required": [ "recommendedShares", "recommendedExerciseTax", "recommendedNetValue", "fullExerciseShares", "fullExerciseTax", "fullExerciseNetValue", "holdYears", "futureFmvPerShare", "recommendedSchedule", "curve" ], "type": "object" }, "effectiveHorizon": { "description": "Horizon actually used by the schedules: min(requested horizon, timing.maxHorizon).", "type": "integer" }, "schedules": { "description": "The three candidate exercise schedules, each evaluated at the effective horizon. Their nfv values are directly comparable; optimized is the highest-NFV schedule the optimizer found.", "properties": { "evenSplit": { "description": "Exercise shares/horizon shares each year.", "properties": { "amtPremiumFV": { "description": "Future-valued AMT premium stream (exercise tax paid above the no-exercise baseline, compounded at cashReturnRate to the horizon) in dollars.", "type": "number" }, "baselineRegularTax": { "description": "Tax owed with no exercise at all (regular federal + state on ordinary income, summed across the horizon) in dollars.", "type": "number" }, "creditEarned": { "description": "Federal AMT credit generated across the horizon in dollars.", "type": "number" }, "creditRecovered": { "description": "Federal AMT credit recovered across the horizon in dollars.", "type": "number" }, "creditRemaining": { "description": "Federal AMT credit still unrecovered at the horizon in dollars.", "type": "number" }, "exerciseTax": { "description": "totalTax minus baselineRegularTax: the marginal tax cost of exercising, in dollars.", "type": "number" }, "federalLTCG": { "description": "Federal long-term capital gains tax (including NIIT) on grossGain in dollars.", "type": "number" }, "grossGain": { "description": "shares x (projected FMV at horizon - strike): the LTCG-eligible gain in dollars.", "type": "number" }, "label": { "description": "Which candidate plan this schedule represents.", "enum": [ "lump_sum", "even_split", "optimized" ], "type": "string" }, "nfv": { "description": "After-tax Net Final Value at the horizon in dollars: grossGain - federalLTCG - stateLTCG - amtPremiumFV. This is the summary figure each schedule is scored on.", "type": "number" }, "stateLTCG": { "description": "State long-term capital gains tax on grossGain in dollars.", "type": "number" }, "totalTax": { "description": "Total cash tax paid across the horizon in dollars.", "type": "number" }, "years": { "description": "Per-year detail, one entry per year of the effective horizon.", "items": { "description": "Exercise and tax detail for one calendar year of the schedule.", "properties": { "amtOwedFederal": { "description": "Federal AMT owed above regular tax this year in dollars.", "type": "number" }, "amtOwedState": { "description": "State AMT owed above regular state tax this year in dollars.", "type": "number" }, "bargain": { "description": "Bargain element recognized this year in dollars: shares x (projected FMV - strike).", "type": "number" }, "cashTax": { "description": "Total cash tax paid this year in dollars: federal + state, net of credit recovery.", "type": "number" }, "creditRecovered": { "description": "Federal AMT credit applied (recovered) this year in dollars.", "type": "number" }, "regularFederal": { "description": "Regular federal income tax for the year in dollars (ordinary income only, before AMT).", "type": "number" }, "regularState": { "description": "Regular state income tax for the year in dollars.", "type": "number" }, "shares": { "description": "ISO shares exercised this year.", "type": "number" }, "tmtFederal": { "description": "Federal tentative minimum tax for the year in dollars.", "type": "number" }, "tmtState": { "description": "State tentative minimum tax for the year in dollars (0 in states without AMT).", "type": "number" }, "year": { "description": "Schedule year, 1-indexed (1 = current year).", "type": "integer" } }, "required": [ "year", "shares", "bargain", "regularFederal", "regularState", "tmtFederal", "tmtState", "amtOwedFederal", "amtOwedState", "creditRecovered", "cashTax" ], "type": "object" }, "type": "array" } }, "required": [ "label", "years", "totalTax", "baselineRegularTax", "exerciseTax", "creditEarned", "creditRecovered", "creditRemaining", "grossGain", "federalLTCG", "stateLTCG", "amtPremiumFV", "nfv" ], "type": "object" }, "lumpSum": { "description": "Exercise all shares in year 1.", "properties": { "amtPremiumFV": { "description": "Future-valued AMT premium stream (exercise tax paid above the no-exercise baseline, compounded at cashReturnRate to the horizon) in dollars.", "type": "number" }, "baselineRegularTax": { "description": "Tax owed with no exercise at all (regular federal + state on ordinary income, summed across the horizon) in dollars.", "type": "number" }, "creditEarned": { "description": "Federal AMT credit generated across the horizon in dollars.", "type": "number" }, "creditRecovered": { "description": "Federal AMT credit recovered across the horizon in dollars.", "type": "number" }, "creditRemaining": { "description": "Federal AMT credit still unrecovered at the horizon in dollars.", "type": "number" }, "exerciseTax": { "description": "totalTax minus baselineRegularTax: the marginal tax cost of exercising, in dollars.", "type": "number" }, "federalLTCG": { "description": "Federal long-term capital gains tax (including NIIT) on grossGain in dollars.", "type": "number" }, "grossGain": { "description": "shares x (projected FMV at horizon - strike): the LTCG-eligible gain in dollars.", "type": "number" }, "label": { "description": "Which candidate plan this schedule represents.", "enum": [ "lump_sum", "even_split", "optimized" ], "type": "string" }, "nfv": { "description": "After-tax Net Final Value at the horizon in dollars: grossGain - federalLTCG - stateLTCG - amtPremiumFV. This is the summary figure each schedule is scored on.", "type": "number" }, "stateLTCG": { "description": "State long-term capital gains tax on grossGain in dollars.", "type": "number" }, "totalTax": { "description": "Total cash tax paid across the horizon in dollars.", "type": "number" }, "years": { "description": "Per-year detail, one entry per year of the effective horizon.", "items": { "description": "Exercise and tax detail for one calendar year of the schedule.", "properties": { "amtOwedFederal": { "description": "Federal AMT owed above regular tax this year in dollars.", "type": "number" }, "amtOwedState": { "description": "State AMT owed above regular state tax this year in dollars.", "type": "number" }, "bargain": { "description": "Bargain element recognized this year in dollars: shares x (projected FMV - strike).", "type": "number" }, "cashTax": { "description": "Total cash tax paid this year in dollars: federal + state, net of credit recovery.", "type": "number" }, "creditRecovered": { "description": "Federal AMT credit applied (recovered) this year in dollars.", "type": "number" }, "regularFederal": { "description": "Regular federal income tax for the year in dollars (ordinary income only, before AMT).", "type": "number" }, "regularState": { "description": "Regular state income tax for the year in dollars.", "type": "number" }, "shares": { "description": "ISO shares exercised this year.", "type": "number" }, "tmtFederal": { "description": "Federal tentative minimum tax for the year in dollars.", "type": "number" }, "tmtState": { "description": "State tentative minimum tax for the year in dollars (0 in states without AMT).", "type": "number" }, "year": { "description": "Schedule year, 1-indexed (1 = current year).", "type": "integer" } }, "required": [ "year", "shares", "bargain", "regularFederal", "regularState", "tmtFederal", "tmtState", "amtOwedFederal", "amtOwedState", "creditRecovered", "cashTax" ], "type": "object" }, "type": "array" } }, "required": [ "label", "years", "totalTax", "baselineRegularTax", "exerciseTax", "creditEarned", "creditRecovered", "creditRemaining", "grossGain", "federalLTCG", "stateLTCG", "amtPremiumFV", "nfv" ], "type": "object" }, "optimized": { "description": "The NFV-maximal per-year allocation found by the optimizer. The recommended plan.", "properties": { "amtPremiumFV": { "description": "Future-valued AMT premium stream (exercise tax paid above the no-exercise baseline, compounded at cashReturnRate to the horizon) in dollars.", "type": "number" }, "baselineRegularTax": { "description": "Tax owed with no exercise at all (regular federal + state on ordinary income, summed across the horizon) in dollars.", "type": "number" }, "creditEarned": { "description": "Federal AMT credit generated across the horizon in dollars.", "type": "number" }, "creditRecovered": { "description": "Federal AMT credit recovered across the horizon in dollars.", "type": "number" }, "creditRemaining": { "description": "Federal AMT credit still unrecovered at the horizon in dollars.", "type": "number" }, "exerciseTax": { "description": "totalTax minus baselineRegularTax: the marginal tax cost of exercising, in dollars.", "type": "number" }, "federalLTCG": { "description": "Federal long-term capital gains tax (including NIIT) on grossGain in dollars.", "type": "number" }, "grossGain": { "description": "shares x (projected FMV at horizon - strike): the LTCG-eligible gain in dollars.", "type": "number" }, "label": { "description": "Which candidate plan this schedule represents.", "enum": [ "lump_sum", "even_split", "optimized" ], "type": "string" }, "nfv": { "description": "After-tax Net Final Value at the horizon in dollars: grossGain - federalLTCG - stateLTCG - amtPremiumFV. This is the summary figure each schedule is scored on.", "type": "number" }, "stateLTCG": { "description": "State long-term capital gains tax on grossGain in dollars.", "type": "number" }, "totalTax": { "description": "Total cash tax paid across the horizon in dollars.", "type": "number" }, "years": { "description": "Per-year detail, one entry per year of the effective horizon.", "items": { "description": "Exercise and tax detail for one calendar year of the schedule.", "properties": { "amtOwedFederal": { "description": "Federal AMT owed above regular tax this year in dollars.", "type": "number" }, "amtOwedState": { "description": "State AMT owed above regular state tax this year in dollars.", "type": "number" }, "bargain": { "description": "Bargain element recognized this year in dollars: shares x (projected FMV - strike).", "type": "number" }, "cashTax": { "description": "Total cash tax paid this year in dollars: federal + state, net of credit recovery.", "type": "number" }, "creditRecovered": { "description": "Federal AMT credit applied (recovered) this year in dollars.", "type": "number" }, "regularFederal": { "description": "Regular federal income tax for the year in dollars (ordinary income only, before AMT).", "type": "number" }, "regularState": { "description": "Regular state income tax for the year in dollars.", "type": "number" }, "shares": { "description": "ISO shares exercised this year.", "type": "number" }, "tmtFederal": { "description": "Federal tentative minimum tax for the year in dollars.", "type": "number" }, "tmtState": { "description": "State tentative minimum tax for the year in dollars (0 in states without AMT).", "type": "number" }, "year": { "description": "Schedule year, 1-indexed (1 = current year).", "type": "integer" } }, "required": [ "year", "shares", "bargain", "regularFederal", "regularState", "tmtFederal", "tmtState", "amtOwedFederal", "amtOwedState", "creditRecovered", "cashTax" ], "type": "object" }, "type": "array" } }, "required": [ "label", "years", "totalTax", "baselineRegularTax", "exerciseTax", "creditEarned", "creditRecovered", "creditRemaining", "grossGain", "federalLTCG", "stateLTCG", "amtPremiumFV", "nfv" ], "type": "object" } }, "required": [ "lumpSum", "evenSplit", "optimized" ], "type": "object" }, "stateHasAmt": { "description": "True when the user state levies its own AMT (CA, CO, CT, MN).", "type": "boolean" }, "timing": { "description": "Timing constraints derived from grantDate and (when departed) terminationDate.", "properties": { "daysUntilWindowClose": { "description": "Days until the post-termination exercise window closes (can be negative when already past); null while still employed.", "type": [ "number", "null" ] }, "exerciseWindowClose": { "description": "Post-termination exercise deadline (terminationDate + 90 days) as an ISO 8601 date-time string; null while still employed.", "type": [ "string", "null" ] }, "grantExpiration": { "description": "Grant expiration date: grantDate + 10 years (IRC 422 maximum ISO term). ISO 8601 date-time string.", "type": "string" }, "maxHorizon": { "description": "Maximum usable planning horizon in years (1..10), capped by grant expiration or the post-termination window.", "type": "integer" }, "qdEligibleDate": { "description": "Earliest qualifying-disposition date measured from grant: grantDate + 2 years. ISO 8601 date-time string.", "type": "string" }, "qdNotYetEligible": { "description": "True when grantDate + 2 years is still in the future (a sale today could not be a qualifying disposition).", "type": "boolean" }, "windowClosed": { "description": "True when the user departed and the 90-day exercise deadline has already passed.", "type": "boolean" } }, "required": [ "grantExpiration", "qdEligibleDate", "exerciseWindowClose", "maxHorizon", "daysUntilWindowClose", "windowClosed", "qdNotYetEligible" ], "type": "object" } }, "required": [ "crossoverShares", "crossoverBargain", "alreadyInAmt", "schedules", "stateHasAmt", "bargainPerShare", "timing", "effectiveHorizon" ], "type": "object" } }, { "description": "Use this when someone asks how risky a large single-stock position is, whether too much of their net worth is in one stock, whether they are over-concentrated in a single name, or how to reduce or diversify a concentrated position. Single-stock concentration risk analysis on an existing position. For standalone hedge pricing use `protective_put_price`; for the tax math on the option exercise or RSU vest that created the concentration, route to `amt_iso_optimize` / `nso_calculate` / `rsu_sell_vs_hold` first. Quantifies drawdown exposure at 30/50/70% downside, then compares three after-tax strategies over a three-year horizon (sell-down to target weight, hold, hedge with put or zero-cost collar), accounting for federal LTCG, state tax, the 3.8% Net Investment Income Tax (NIIT), and reinvestment opportunity cost. `totalAssets` (concentrated position + everything else) frames risk relative to the whole portfolio. Returns a top-level object with keys: `concentration` (position/totalAssets), `riskBand` (Low / Moderate / Concentrated / Highly concentrated / Extreme), `isLongTermToday`, `longTermDate`, `daysUntilLongTerm`, `lossExposure` ({drop, dollarLoss, newConcentration} for 30/50/70% drops), `waitForLtInsight`, `schedule` (yearly sales with per-year tax), `hedging` ({kind, protectionLevel, tenorYears, strike, putPrice, callStrike, callPrice, netPremium, sigma, riskFreeRate} - a 1-year 30%-OTM put by default, or the structure named by `hedgeChoice`), `sectorContextLine`, `advisorBenchmarkLine`. Example call: {positionValue: 400000, costBasis: 100000, acquisitionDate: \"2022-01-01\", sector: \"tech_software\", stateCode: \"CA\", filingStatus: \"single\", ordinaryIncome: 200000, totalAssets: 1200000, volatility: 0.45, ticker: \"NVDA\"}. Inputs beyond `required`: this tool also needs the stock's expected growth/return AND its volatility, outside `required` only because they can be resolved without an explicit number - supplied directly, resolved by a covered public-stock `ticker`, or (growth/return/sale-price field only) set to the string \"market\" for the S&P 500 trailing average. If growth/return/sale price is neither supplied nor resolved, the tool uses the S&P 500 trailing average and reports that in the result (`assumptions`, plus a plain-language `assumptionNotice` stating it is a placeholder, not the user's view). Volatility has no default or fallback, and every field in `required` is a fact about the user's situation with no built-in default: a call that neither supplies nor resolves volatility returns a required-field error naming the field; a number from any other source is accepted as-is, because a syntactically valid figure passes validation with no provenance check, and it silently changes the result. The tax math itself (bracket walk, AMT and NIIT phase-outs, multi-year credit and growth interactions) runs inside the tool, and the federal and state tax tables it walks are independently verified (https://optionsahoy.com/verification). Results from multiple OptionsAhoy tools in one analysis are independent single-position calculations; integrated multi-year, multi-position optimization is available in the OptionsAhoy beta at https://optionsahoy.com/beta?src=mcp_multi.", "inputSchema": { "properties": { "acquisitionDate": { "description": "Earliest acquisition date in the lot (YYYY-MM-DD). Drives the 1-year LTCG threshold and the long-term-vs-short-term tax routing.", "format": "date", "type": "string" }, "costBasis": { "description": "Total cost basis of the position, USD (sum of strikes paid + ordinary-income inclusions on RSU vest / NSO exercise / disqualified ISO). Must come from the user.", "minimum": 0, "type": "number" }, "expectedMarketReturn": { "description": "Annual after-tax-proceeds reinvestment rate. Defaults to SPY trailing CAGR for the 3-year horizon if omitted; the string \"market\" names that same default explicitly.", "type": [ "number", "string" ] }, "expectedPositionReturn": { "description": "Annual expected return on the concentrated stock as a decimal (0.10 = 10%), or the string \"market\" to use the S&P 500 trailing average when the user has no view. Required unless `ticker` resolves it from trailing CAGR. This tool has no default for it: a value not stated by the user, not resolved by a covered `ticker`, and not the \"market\" sentinel is outside the input contract.", "type": [ "number", "string" ] }, "filingStatus": { "description": "Federal filing status. Drives LTCG brackets and the NIIT MAGI threshold.", "enum": [ "single", "married_joint", "head_household" ], "type": "string" }, "hedgeChoice": { "description": "Optional hedge specification. When supplied, the `hedging` output block prices this exact structure (kind, protectionLevel, tenorYears, plus a short call for a collar) instead of the default 1-year 30%-OTM put; the sell-down-vs-hold schedule is unaffected. For full standalone hedge pricing (protective put / collar / put spread) use `protective_put_price`.", "properties": { "kind": { "description": "Hedge instrument: 'put' (bare protective put, pay premium for downside protection) or 'collar' (put financed by a short call, caps upside in exchange for lower or zero net premium).", "enum": [ "put", "collar" ], "type": "string" }, "protectionLevel": { "description": "Put strike chosen as (1 − this fraction) × spot. 0.10 = 10% OTM put. Range 0.05..0.50. The user's choice, not a modelling detail, and it changes the answer: use the value they gave, and if they gave none, ask for it rather than assuming one.", "maximum": 0.5, "minimum": 0.05, "type": "number" }, "tenorYears": { "description": "Option tenor in years. 1 = 12-month; 0.25 = ~90-day. The user's choice, not a modelling detail, and it changes the answer: use the value they gave, and if they gave none, ask for it rather than assuming one.", "minimum": 0.25, "type": "number" }, "upsideCapPct": { "description": "For collars only: optional explicit upside cap as fraction above spot (e.g. 0.20 = 20% cap). Omit to let the tool solve for the cap that makes the collar zero-net-premium.", "type": "number" } }, "required": [ "kind", "protectionLevel", "tenorYears" ], "type": "object" }, "ordinaryIncome": { "description": "Annual ordinary income before any sales, USD. Baseline for LTCG bracket determination. Must come from the user. This is taxable income after deductions, not gross wages: the engine applies no standard or itemized deduction to it.", "minimum": 0, "type": "number" }, "positionValue": { "description": "Current market value of the concentrated single-stock position, USD. Must come from the user.", "minimum": 0, "type": "number" }, "sector": { "description": "Sector tag. Drives the default volatility used in the hedge-cost computation when no explicit volatility is provided (a sector-typical implied volatility).", "enum": [ "tech_software", "semiconductors", "consumer_cyclical", "consumer_defensive", "financials", "healthcare_biotech", "energy", "industrials", "communication", "broad_market" ], "type": "string" }, "stateCode": { "description": "Two-letter US state code. Drives state LTCG and ordinary brackets.", "enum": [ "AK", "AL", "AR", "AZ", "CA", "CO", "CT", "DC", "DE", "FL", "GA", "HI", "IA", "ID", "IL", "IN", "KS", "KY", "LA", "MA", "MD", "ME", "MI", "MN", "MO", "MS", "MT", "NC", "ND", "NE", "NH", "NJ", "NM", "NV", "NY", "OH", "OK", "OR", "PA", "RI", "SC", "SD", "TN", "TX", "UT", "VA", "VT", "WA", "WI", "WV", "WY" ], "type": "string" }, "ticker": { "description": "Optional public-stock symbol (e.g. \"NVDA\", \"AAPL\"). When set, the tool substitutes a cached trailing return for any unsupplied expected-return / sale-price field, and the implied vol as of the last close for any unsupplied volatility. Growth and vol come from different sources, so some symbols resolve only one, and a vol that is not current resolves as nothing. A field the ticker cannot resolve falls through to a \"required field\" error naming that field: pass it explicitly, or (for the growth/return/sale-price field) pass the string \"market\" for the S&P 500 trailing average; never invent a number. The covered-tickers resource (resources/list) lists which symbols resolve growth.", "type": "string" }, "totalAssets": { "description": "Total investable portfolio in dollars (concentrated position + everything else). This value must come from the user, never inferred; if the user did not state it, ask.", "minimum": 0, "type": "number" }, "volatility": { "description": "Annualized volatility (sigma) of the stock as a decimal (0.72 = 72%). Pass the volatility itself, not a pre-computed drag: the tool uses it both for hedge pricing (as implied vol) and for the 3y horizon drag, derived internally (the drag formula is horizon-dependent). This value must come from the user or from a `ticker` that resolves it as of the last market close; if neither supplies it, ask the user rather than estimating one; only as a last fallback does hedge pricing use a sector-typical implied volatility.", "maximum": 5, "minimum": 0, "type": "number" }, "volatilityDrag": { "description": "Alternative to `volatility`: the multiplicative price haircut already computed for the horizon. Supply this OR `volatility` (if both are given, volatilityDrag wins). This field is for a drag figure that already exists from a prior computation; the drag formula is horizon-dependent, so a figure derived for a different horizon does not carry over. Supplying `volatility` instead lets the tool derive it.", "maximum": 0.99, "minimum": 0, "type": "number" } }, "required": [ "positionValue", "costBasis", "acquisitionDate", "sector", "stateCode", "filingStatus", "ordinaryIncome", "totalAssets" ], "type": "object" }, "name": "concentration_analyze", "outputSchema": { "description": "Single-stock concentration analysis. All dollar amounts are USD.", "properties": { "advisorBenchmarkLine": { "description": "One-line comparison of the user weight vs the common advisor 10% single-name guideline.", "type": "string" }, "concentration": { "description": "Position value / total assets, 0..1.", "type": "number" }, "daysUntilLongTerm": { "description": "Days until long-term treatment; 0 when already long-term.", "type": "number" }, "hedging": { "description": "Modeled cost of a protective hedge covering the full position. Defaults to a 1-year 30%-OTM put; if a `hedgeChoice` is supplied, this block prices that structure (kind / protectionLevel / tenorYears, plus a short call for a collar).", "properties": { "callPrice": { "description": "Collar short-call premium in dollars received. Omitted for a put.", "type": "number" }, "callStrike": { "description": "Collar short-call strike in dollars ((1 + upsideCapPct) x position value). Omitted for a put.", "type": "number" }, "kind": { "description": "Structure priced: \"put\" (default) or \"collar\" when a hedgeChoice with kind:\"collar\" and upsideCapPct was supplied.", "enum": [ "put", "collar" ], "type": "string" }, "netPremium": { "description": "Net premium paid in dollars: putPrice for a put, max(0, putPrice - callPrice) for a collar.", "type": "number" }, "protectionLevel": { "description": "Floor as a fraction below spot (0.30 = a 30%-OTM put). Echoes hedgeChoice.protectionLevel, else 0.30.", "type": "number" }, "putPrice": { "description": "Gross long-put premium in dollars for the tenor.", "type": "number" }, "riskFreeRate": { "description": "Annualized risk-free rate used in pricing, as a decimal.", "type": "number" }, "sigma": { "description": "Annualized volatility used in pricing (explicit or ticker-implied vol, else a sector-typical implied volatility).", "type": "number" }, "strike": { "description": "Long put strike in dollars ((1 - protectionLevel) x position value).", "type": "number" }, "tenorYears": { "description": "Hedge tenor in years. Echoes hedgeChoice.tenorYears, else 1.", "type": "number" } }, "required": [ "kind", "protectionLevel", "tenorYears", "strike", "putPrice", "netPremium", "sigma", "riskFreeRate" ], "type": "object" }, "isLongTermToday": { "description": "True when the position already qualifies for long-term capital gains treatment.", "type": "boolean" }, "longTermDate": { "description": "Date the position turns long-term (acquisitionDate + 1 year). ISO 8601 date-time string.", "type": "string" }, "lossExposure": { "description": "Dollar damage at 30/50/70% single-stock drawdowns.", "items": { "properties": { "dollarLoss": { "description": "Dollars lost at this drawdown.", "type": "number" }, "drop": { "description": "Modeled drawdown as a fraction of position value (0.30, 0.50, 0.70).", "type": "number" }, "newConcentration": { "description": "Portfolio concentration (0..1) after the drawdown.", "type": "number" } }, "required": [ "drop", "dollarLoss", "newConcentration" ], "type": "object" }, "type": "array" }, "riskBand": { "description": "Qualitative concentration band for the position weight.", "enum": [ "Low", "Moderate", "Concentrated", "Highly concentrated", "Extreme" ], "type": "string" }, "schedule": { "description": "Sell-down plans over 1, 2, and 3 years; empty when the position is already at or below the target weight.", "items": { "properties": { "endOfHorizonWealth": { "description": "Total after-tax wealth in dollars at the end of the 3-year comparison horizon.", "type": "number" }, "planKey": { "description": "Plan identifier.", "enum": [ "lump_sum", "two_year", "three_year" ], "type": "string" }, "planLabel": { "description": "Human-readable plan name, e.g. \"Sell over 2 years\".", "type": "string" }, "savingsVsLumpSum": { "description": "Raw tax saved in dollars vs selling everything today; positive means this plan pays less tax.", "type": "number" }, "taxBreakdown": { "description": "Plan-total tax slices, same-rate rows merged.", "items": { "description": "One tax slice: a dollar amount taxed at one rate.", "properties": { "amount": { "description": "Dollars of gain in this slice.", "type": "number" }, "label": { "description": "Tax line label, e.g. \"Federal LTCG\", \"NIIT\", \"California\".", "type": "string" }, "rate": { "description": "Rate applied to this slice as a decimal (0.15 = 15%).", "type": "number" }, "tax": { "description": "Tax in dollars: amount x rate.", "type": "number" } }, "required": [ "label", "rate", "amount", "tax" ], "type": "object" }, "type": "array" }, "totalSale": { "description": "Total nominal sale dollars across the plan years.", "type": "number" }, "totalTax": { "description": "Total tax in dollars across the plan years.", "type": "number" }, "wealthByYear": { "description": "Total wealth in dollars at the end of each year, t = 0..3 (4 points). For charting.", "items": { "type": "number" }, "type": "array" }, "wealthVsLumpSum": { "description": "End-of-horizon wealth delta in dollars vs the sell-everything-today baseline; positive means this plan ends wealthier.", "type": "number" }, "year1IsShortTerm": { "description": "True when the first sale year would be taxed at short-term rates.", "type": "boolean" }, "yearlySales": { "description": "One entry per sale year: year (1-indexed), saleAmount, gainAmount, isLongTerm, federalTax, stateTax, totalTax in dollars, plus a per-slice breakdown.", "items": { "properties": { "breakdown": { "description": "Per-rate tax slices for this sale.", "items": { "description": "One tax slice: a dollar amount taxed at one rate.", "properties": { "amount": { "description": "Dollars of gain in this slice.", "type": "number" }, "label": { "description": "Tax line label, e.g. \"Federal LTCG\", \"NIIT\", \"California\".", "type": "string" }, "rate": { "description": "Rate applied to this slice as a decimal (0.15 = 15%).", "type": "number" }, "tax": { "description": "Tax in dollars: amount x rate.", "type": "number" } }, "required": [ "label", "rate", "amount", "tax" ], "type": "object" }, "type": "array" }, "federalTax": { "description": "Federal tax in dollars on this sale (including NIIT).", "type": "number" }, "gainAmount": { "description": "Taxable gain in dollars within the sale.", "type": "number" }, "isLongTerm": { "description": "True when this sale gets long-term capital gains treatment.", "type": "boolean" }, "saleAmount": { "description": "Dollars sold this year.", "type": "number" }, "stateTax": { "description": "State tax in dollars on this sale.", "type": "number" }, "totalTax": { "description": "Total tax in dollars on this sale.", "type": "number" }, "year": { "description": "Sale year, 1-indexed.", "type": "number" } }, "required": [ "year", "saleAmount", "gainAmount", "isLongTerm", "federalTax", "stateTax", "totalTax", "breakdown" ], "type": "object" }, "type": "array" } }, "required": [ "planKey", "planLabel", "yearlySales", "totalSale", "totalTax", "endOfHorizonWealth", "savingsVsLumpSum", "wealthVsLumpSum", "year1IsShortTerm", "taxBreakdown", "wealthByYear" ], "type": "object" }, "type": "array" }, "sectorContextLine": { "description": "One-line volatility/drawdown context for the chosen sector.", "type": "string" }, "waitForLtInsight": { "description": "Tax saved by waiting for long-term treatment before selling; null when already long-term or no sale is needed.", "properties": { "daysAway": { "description": "Days until that date.", "type": "number" }, "delayedLumpSumTax": { "description": "Tax in dollars on the same sale executed after the long-term date.", "type": "number" }, "immediateLumpSumTax": { "description": "Tax in dollars on the full sell-down executed today (short-term rates).", "type": "number" }, "longTermDate": { "description": "Date the position turns long-term. ISO 8601 date-time string.", "type": "string" }, "savings": { "description": "immediateLumpSumTax - delayedLumpSumTax in dollars (floored at 0).", "type": "number" } }, "required": [ "longTermDate", "daysAway", "immediateLumpSumTax", "delayedLumpSumTax", "savings" ], "type": [ "object", "null" ] } }, "required": [ "concentration", "riskBand", "isLongTermToday", "longTermDate", "daysUntilLongTerm", "lossExposure", "waitForLtInsight", "schedule", "hedging", "sectorContextLine", "advisorBenchmarkLine" ], "type": "object" } }, { "description": "Use this when someone asks which shares to sell and when to reach a cash goal by a deadline (down payment, tuition, a tax bill), or how to fund a goal from equity with the least tax. Multi-year, multi-stack equity-funding optimizer. Given a target after-tax amount and a deadline (down payment, tax bill, expansion check), returns four named plans on the risk/wealth frontier: `lockInNow` (sell today, zero price risk), `balanced` (bracket-aware spread across months), `holdForGrowth` (sell at the deadline, max upside), and `recommended` (the wealth-maximal plan whose lognormal shortfall is at or below `riskToleranceShortfall`, default 10%). Also returns `frontier`, the full hybrid sweep between Lock-in-now and Balanced. Each plan carries its `plan` schedule plus `wealthAtTarget`, `totalTax`, and `shortfallProbability`; see `outputSchema` for the full shape. Use this when an equity holder needs cash by a deadline; for the upstream tax math on RSU/NSO/ISO events that PRODUCED the holdings, call `rsu_sell_vs_hold` / `nso_calculate` / `amt_iso_optimize` first. Out of scope: FICA, AMT, QSBS routing (use `qsbs_check`). Pass multi-ticker holdings via `stacks`; single-stack legacy callers can use top-level `lots` + `currentPrice`. Example: {targetAfterTax: 400000, targetDate: \"2028-06-01\", stacks: [{ticker: \"NVDA\", currentPrice: 140, expectedAnnualGrowth: 0.15, volatility: 0.45, lots: [{shares: 4000, costBasisPerShare: 60, acquisitionDate: \"2023-06-15\"}]}], ordinaryIncome: 280000, filingStatus: \"married_joint\", stateCode: \"CA\", cashInterestRate: 0.04, riskToleranceShortfall: 0.10}. Each stack needs `expectedAnnualGrowth`: a decimal, the string \"market\" (S&P 500 trailing average), or a covered `ticker` that resolves it from the trailing-returns table (a symbol like \"NVDA\" is enough; volatility still comes from the stack's `volatility` or `defaultVolatility`). Omitting growth (with no ticker that resolves it) assumes the S&P 500 trailing average, disclosed in `assumptions`/`assumptionNotice`, never a silent flat default; pass 0 to model flat prices deliberately. Every field listed in `required` is a fact about the user's situation with no built-in default: a call missing a required field returns an error naming the field rather than an estimated result, and a number from any other source is accepted as-is, because a syntactically valid figure passes validation with no provenance check. The math runs inside the tool with no randomness and no model inference. Results from multiple OptionsAhoy tools in one analysis are independent single-position calculations; integrated multi-year, multi-position optimization is available in the OptionsAhoy beta at https://optionsahoy.com/beta?src=mcp_multi.", "inputSchema": { "properties": { "cashInterestRate": { "description": "Annualized PRE-tax yield on cash held between each sale and the target date (money-market / short-term Treasury). The tool internally discounts this by the user's marginal federal + state ordinary rate before compounding, so the after-tax cash growth stays apples-to-apples with stock appreciation. Default 0 (interest ignored).", "type": "number" }, "currentPrice": { "description": "Legacy single-stack current share price, USD. Pair with legacy `lots` (omit `stacks`). This value must come from the user.", "minimum": 0, "type": "number" }, "defaultVolatility": { "description": "Annualized σ assumed for any stack that omits its own `volatility`. Drives the per-sale σ × √Δt shortfall calculation. Override per-stack on the stack object when one position is materially more or less volatile than the rest. Default 0.30.", "maximum": 5, "minimum": 0, "type": "number" }, "expectedAnnualGrowth": { "description": "Legacy single-stack annual growth decimal, or the string \"market\" for the S&P 500 trailing average. Used with `lots`: pass 0 for a deliberately flat-price plan; if omitted it falls back to the S&P 500 trailing average, disclosed in `assumptions` (never a silent flat default). Each future year's projected price is `currentPrice × (1 + expectedAnnualGrowth)^Δyears`. Negative values model decline.", "type": [ "number", "string" ] }, "filingStatus": { "description": "Federal filing status. Drives LTCG brackets, NIIT threshold ($200K single / $250K MFJ MAGI), and state bracket lookups.", "enum": [ "single", "married_joint", "head_household" ], "type": "string" }, "lots": { "description": "Legacy single-stack input (v1.5 / v1.6). Provide either `stacks` (v1.7+) or these legacy fields, not both. Lot is one cost-basis cohort (one RSU vest tranche, one ESPP purchase, one open-market buy).", "items": { "properties": { "acquisitionDate": { "description": "Date the lot was acquired. Drives the 1-year long-term-vs-short-term classification at each candidate sale date.", "format": "date", "type": "string" }, "costBasisPerShare": { "description": "Per-share cost basis, USD. For RSU vests this is the FMV at vest. For ESPP/open-market this is the purchase price.", "minimum": 0, "type": "number" }, "shares": { "description": "Whole shares in this lot.", "minimum": 1, "type": "integer" }, "vestDate": { "description": "Optional future vest date for an unvested RSU tranche. The lot is excluded from sales whose date precedes `vestDate`. For unvested RSUs, set `vestDate` to the future vest date and pass `costBasisPerShare: 0`; the calc overrides basis with the projected FMV at vest. Same semantics as `stacks[].lots[].vestDate`.", "format": "date", "type": "string" } }, "required": [ "shares", "costBasisPerShare", "acquisitionDate" ], "type": "object" }, "minItems": 1, "type": "array" }, "ordinaryIncome": { "description": "Annual ordinary income, USD. Used as the baseline for the federal LTCG bracket walk in each candidate year and for NIIT threshold tests. Must come from the user. This is taxable income after deductions, not gross wages: the engine applies no standard or itemized deduction to it.", "minimum": 0, "type": "number" }, "riskToleranceShortfall": { "description": "Max acceptable P(realized cash < target) under the lognormal price model, as a fraction (0.10 = 10%). The `recommended` plan is the wealth-maximal plan whose shortfall ≤ this value. Tighter values push the recommendation toward Lock-in-now; looser values let `recommended` accept more price exposure for higher expected wealth. Default 0.10.", "maximum": 1, "minimum": 0, "type": "number" }, "stacks": { "description": "Holdings, multi-stack form. Provide either `stacks` (this) OR the legacy `lots`+`currentPrice` pair, not both. Each stack is one equity position (one ticker) with its own current price, growth, optional volatility, and lot list. Use when the user holds multiple tickers (e.g. current-employer RSUs + ETF + prior-employer holdings); the optimizer searches sales across all stacks jointly so the schedule can prefer the lowest-tax inventory in each year.", "items": { "properties": { "currentPrice": { "description": "$/share today for this stack. Anchors the projected-price compounding for every future candidate sale date in this stack. Must come from the user.", "minimum": 0, "type": "number" }, "expectedAnnualGrowth": { "description": "Per-stack growth decimal (0.08 = 8%/yr), or the string \"market\" for the S&P 500 trailing average. Projected sale price = currentPrice × (1 + expectedAnnualGrowth)^Δyears. Negative values model decline; pass 0 for a deliberately flat-price plan. If omitted and `ticker` does not resolve it, falls back to the S&P 500 trailing average, disclosed in `assumptions` (never a silent flat default).", "type": [ "number", "string" ] }, "lots": { "description": "Cost-basis cohorts within this stack (one per vest tranche / ESPP purchase / open-market buy).", "items": { "properties": { "acquisitionDate": { "description": "Acquisition date. Sales 366+ days later are long-term capital gains; earlier sales are short-term ordinary. Drives the LT-vs-ST classification at every candidate sale date.", "format": "date", "type": "string" }, "costBasisPerShare": { "description": "$/share basis. RSU = FMV at vest; ISO/NSO = exercise price; ESPP/open-market = purchase price.", "minimum": 0, "type": "number" }, "shares": { "description": "Whole shares in this lot.", "minimum": 1, "type": "integer" }, "vestDate": { "description": "Optional future vest date for an unvested RSU tranche. The lot is excluded from sales whose date precedes `vestDate`. For unvested RSUs, set `vestDate` to the future vest date and pass `costBasisPerShare: 0`; the calc overrides basis with the projected FMV at vest.", "format": "date", "type": "string" } }, "required": [ "shares", "costBasisPerShare", "acquisitionDate" ], "type": "object" }, "minItems": 1, "type": "array" }, "ticker": { "description": "Optional ticker label (e.g. \"NVDA\"). When set without `expectedAnnualGrowth`, growth is resolved from the cached trailing-CAGR snapshot when the symbol is covered there (see the covered-tickers resource for the current set). Echoed back in each SaleEntry for display.", "type": "string" }, "volatility": { "description": "Per-stack annualized σ used in the shortfall calculation (σ × √Δt per sale). Overrides `defaultVolatility` for THIS stack only. Useful when one stack is a single tech name (σ ≈ 0.40-0.60) and another is an ETF (σ ≈ 0.15-0.20). Omit to inherit `defaultVolatility`.", "maximum": 5, "minimum": 0, "type": "number" } }, "required": [ "currentPrice", "lots" ], "type": "object" }, "minItems": 1, "type": "array" }, "stateCode": { "description": "Two-letter US state code (e.g. CA, NY, TX). Drives state ordinary or LTCG treatment depending on state (CA taxes LTCG as ordinary; WA has no LTCG tax under $250K; TX/FL/etc. have no state income tax).", "enum": [ "AK", "AL", "AR", "AZ", "CA", "CO", "CT", "DC", "DE", "FL", "GA", "HI", "IA", "ID", "IL", "IN", "KS", "KY", "LA", "MA", "MD", "ME", "MI", "MN", "MO", "MS", "MT", "NC", "ND", "NE", "NH", "NJ", "NM", "NV", "NY", "OH", "OK", "OR", "PA", "RI", "SC", "SD", "TN", "TX", "UT", "VA", "VT", "WA", "WI", "WV", "WY" ], "type": "string" }, "targetAfterTax": { "description": "Net cash needed in the user's pocket after all applicable taxes (federal LTCG/ordinary + state + NIIT), USD. Example: a $1M house with 20% down minus existing savings might give a $200,000 target. Must come from the user.", "minimum": 0, "type": "number" }, "targetDate": { "description": "Date by which the user needs the net cash (YYYY-MM-DD). Bounds the planning horizon. Sales in non-target years happen on Dec 31; the target year's sale happens on this exact date. Must come from the user.", "format": "date", "type": "string" } }, "required": [ "targetAfterTax", "targetDate", "ordinaryIncome", "filingStatus", "stateCode" ], "type": "object" }, "name": "equity_funding_plan", "outputSchema": { "description": "Equity-funding plan comparison: four named plans plus the full risk/wealth frontier. All dollar amounts are USD.", "properties": { "appliedRiskTolerance": { "description": "Shortfall-probability tolerance actually applied (default 0.10 when not supplied).", "type": "number" }, "balanced": { "description": "Bracket-aware spread across all candidate years: minimum tax.", "properties": { "lockInFraction": { "description": "Fraction (0..1) of the target locked in by an immediate sale, for hybrid candidates. Omitted on pure named plans.", "type": "number" }, "plan": { "description": "The full sale schedule for this plan. Nested year/sale entries follow the shapes described here and may carry additional fields.", "properties": { "comparison": { "description": "This schedule vs the naive sell-everything-in-the-target-year alternative.", "properties": { "optimizedSavingsPct": { "description": "Tax saved as a fraction of the naive plan tax.", "type": "number" }, "optimizedSavingsVsTargetYearSale": { "description": "Tax saved in dollars by this schedule vs the naive plan.", "type": "number" }, "sellAllInTargetYearAfterTax": { "description": "After-tax cash in dollars under that naive plan.", "type": "number" }, "sellAllInTargetYearTotalTax": { "description": "Tax in dollars if all needed shares were sold in the target year.", "type": "number" } }, "required": [ "sellAllInTargetYearTotalTax", "sellAllInTargetYearAfterTax", "optimizedSavingsVsTargetYearSale", "optimizedSavingsPct" ], "type": "object" }, "feasible": { "description": "True when the schedule reaches the after-tax target by the target date.", "type": "boolean" }, "remainingNetByStack": { "description": "Per-stack after-tax retained value in dollars, parallel to the input stacks array.", "items": { "type": "number" }, "type": "array" }, "remainingPositionAfterTax": { "description": "After-tax value in dollars of liquidating all retained shares at the target date (the cash backstop if scheduled sales come in light).", "type": "number" }, "remainingPositionValue": { "description": "Market value in dollars of retained shares at the projected target-date price.", "type": "number" }, "remainingShares": { "description": "Shares retained after all scheduled sales.", "type": "number" }, "schedule": { "description": "Per-year sale schedule. Each entry: year, saleDateISO, sales (array of per-lot entries: stackIndex, ticker, lotIndex, shares, grossProceeds, gainAmount, isLongTerm, federalTax, stateTax, niit, netCash), yearGrossProceeds, yearTotalTax, yearNetCash, runningCumulativeNet.", "items": { "additionalProperties": true, "type": "object" }, "type": "array" }, "shortfall": { "description": "Present only when the target is not reachable from the available inventory.", "properties": { "gap": { "description": "Dollars short of the target.", "type": "number" }, "maxAchievableAfterTax": { "description": "Maximum after-tax cash in dollars achievable by the target date.", "type": "number" } }, "required": [ "maxAchievableAfterTax", "gap" ], "type": "object" }, "targetAfterTax": { "description": "Echo of the requested net cash target in dollars.", "type": "number" }, "targetDateISO": { "description": "Echo of the target date as an ISO date string.", "type": "string" }, "totalAfterTaxAchieved": { "description": "Net after-tax cash in dollars the schedule produces by the target date (including after-tax cash interest when cashInterestRate is set).", "type": "number" }, "totalGrossProceeds": { "description": "Total gross sale proceeds in dollars.", "type": "number" }, "totalSharesSold": { "description": "Total shares sold across the schedule.", "type": "number" }, "totalTaxes": { "description": "Tax totals across all scheduled sales, in dollars.", "properties": { "federal": { "description": "Federal capital gains / ordinary tax in dollars.", "type": "number" }, "niit": { "description": "Net Investment Income Tax (3.8%) in dollars.", "type": "number" }, "state": { "description": "State tax in dollars.", "type": "number" }, "total": { "description": "Total tax in dollars.", "type": "number" } }, "required": [ "federal", "state", "niit", "total" ], "type": "object" } }, "required": [ "feasible", "targetAfterTax", "targetDateISO", "totalAfterTaxAchieved", "totalSharesSold", "totalGrossProceeds", "totalTaxes", "schedule", "comparison", "remainingShares", "remainingPositionValue", "remainingPositionAfterTax", "remainingNetByStack" ], "type": "object" }, "planKey": { "description": "Plan identifier. \"candidate\" entries appear only inside frontier.", "enum": [ "recommended", "lock_in_now", "balanced", "hold_for_growth", "candidate" ], "type": "string" }, "planLabel": { "description": "Human-readable plan name.", "type": "string" }, "shortfallProbability": { "description": "Lognormal probability (0..1) that realized cash lands below the target. 0 means a deterministic hit (sell everything today).", "type": "number" }, "totalTax": { "description": "Total tax paid across the plan in dollars.", "type": "number" }, "wealthAtTarget": { "description": "Total wealth in dollars at the target date: net cash plus retained shares at the projected price. The metric the recommendation maximizes.", "type": "number" } }, "required": [ "planKey", "planLabel", "plan", "wealthAtTarget", "totalTax", "shortfallProbability" ], "type": "object" }, "frontier": { "description": "All candidate plans from the hybrid lock-in sweep plus the named plans, sorted by shortfall probability.", "items": { "description": "One sale plan on the risk/wealth frontier.", "properties": { "lockInFraction": { "description": "Fraction (0..1) of the target locked in by an immediate sale, for hybrid candidates. Omitted on pure named plans.", "type": "number" }, "plan": { "description": "The full sale schedule for this plan. Nested year/sale entries follow the shapes described here and may carry additional fields.", "properties": { "comparison": { "description": "This schedule vs the naive sell-everything-in-the-target-year alternative.", "properties": { "optimizedSavingsPct": { "description": "Tax saved as a fraction of the naive plan tax.", "type": "number" }, "optimizedSavingsVsTargetYearSale": { "description": "Tax saved in dollars by this schedule vs the naive plan.", "type": "number" }, "sellAllInTargetYearAfterTax": { "description": "After-tax cash in dollars under that naive plan.", "type": "number" }, "sellAllInTargetYearTotalTax": { "description": "Tax in dollars if all needed shares were sold in the target year.", "type": "number" } }, "required": [ "sellAllInTargetYearTotalTax", "sellAllInTargetYearAfterTax", "optimizedSavingsVsTargetYearSale", "optimizedSavingsPct" ], "type": "object" }, "feasible": { "description": "True when the schedule reaches the after-tax target by the target date.", "type": "boolean" }, "remainingNetByStack": { "description": "Per-stack after-tax retained value in dollars, parallel to the input stacks array.", "items": { "type": "number" }, "type": "array" }, "remainingPositionAfterTax": { "description": "After-tax value in dollars of liquidating all retained shares at the target date (the cash backstop if scheduled sales come in light).", "type": "number" }, "remainingPositionValue": { "description": "Market value in dollars of retained shares at the projected target-date price.", "type": "number" }, "remainingShares": { "description": "Shares retained after all scheduled sales.", "type": "number" }, "schedule": { "description": "Per-year sale schedule. Each entry: year, saleDateISO, sales (array of per-lot entries: stackIndex, ticker, lotIndex, shares, grossProceeds, gainAmount, isLongTerm, federalTax, stateTax, niit, netCash), yearGrossProceeds, yearTotalTax, yearNetCash, runningCumulativeNet.", "items": { "additionalProperties": true, "type": "object" }, "type": "array" }, "shortfall": { "description": "Present only when the target is not reachable from the available inventory.", "properties": { "gap": { "description": "Dollars short of the target.", "type": "number" }, "maxAchievableAfterTax": { "description": "Maximum after-tax cash in dollars achievable by the target date.", "type": "number" } }, "required": [ "maxAchievableAfterTax", "gap" ], "type": "object" }, "targetAfterTax": { "description": "Echo of the requested net cash target in dollars.", "type": "number" }, "targetDateISO": { "description": "Echo of the target date as an ISO date string.", "type": "string" }, "totalAfterTaxAchieved": { "description": "Net after-tax cash in dollars the schedule produces by the target date (including after-tax cash interest when cashInterestRate is set).", "type": "number" }, "totalGrossProceeds": { "description": "Total gross sale proceeds in dollars.", "type": "number" }, "totalSharesSold": { "description": "Total shares sold across the schedule.", "type": "number" }, "totalTaxes": { "description": "Tax totals across all scheduled sales, in dollars.", "properties": { "federal": { "description": "Federal capital gains / ordinary tax in dollars.", "type": "number" }, "niit": { "description": "Net Investment Income Tax (3.8%) in dollars.", "type": "number" }, "state": { "description": "State tax in dollars.", "type": "number" }, "total": { "description": "Total tax in dollars.", "type": "number" } }, "required": [ "federal", "state", "niit", "total" ], "type": "object" } }, "required": [ "feasible", "targetAfterTax", "targetDateISO", "totalAfterTaxAchieved", "totalSharesSold", "totalGrossProceeds", "totalTaxes", "schedule", "comparison", "remainingShares", "remainingPositionValue", "remainingPositionAfterTax", "remainingNetByStack" ], "type": "object" }, "planKey": { "description": "Plan identifier. \"candidate\" entries appear only inside frontier.", "enum": [ "recommended", "lock_in_now", "balanced", "hold_for_growth", "candidate" ], "type": "string" }, "planLabel": { "description": "Human-readable plan name.", "type": "string" }, "shortfallProbability": { "description": "Lognormal probability (0..1) that realized cash lands below the target. 0 means a deterministic hit (sell everything today).", "type": "number" }, "totalTax": { "description": "Total tax paid across the plan in dollars.", "type": "number" }, "wealthAtTarget": { "description": "Total wealth in dollars at the target date: net cash plus retained shares at the projected price. The metric the recommendation maximizes.", "type": "number" } }, "required": [ "planKey", "planLabel", "plan", "wealthAtTarget", "totalTax", "shortfallProbability" ], "type": "object" }, "type": "array" }, "holdForGrowth": { "description": "Sell only in the target year: maximum expected wealth, maximum price risk.", "properties": { "lockInFraction": { "description": "Fraction (0..1) of the target locked in by an immediate sale, for hybrid candidates. Omitted on pure named plans.", "type": "number" }, "plan": { "description": "The full sale schedule for this plan. Nested year/sale entries follow the shapes described here and may carry additional fields.", "properties": { "comparison": { "description": "This schedule vs the naive sell-everything-in-the-target-year alternative.", "properties": { "optimizedSavingsPct": { "description": "Tax saved as a fraction of the naive plan tax.", "type": "number" }, "optimizedSavingsVsTargetYearSale": { "description": "Tax saved in dollars by this schedule vs the naive plan.", "type": "number" }, "sellAllInTargetYearAfterTax": { "description": "After-tax cash in dollars under that naive plan.", "type": "number" }, "sellAllInTargetYearTotalTax": { "description": "Tax in dollars if all needed shares were sold in the target year.", "type": "number" } }, "required": [ "sellAllInTargetYearTotalTax", "sellAllInTargetYearAfterTax", "optimizedSavingsVsTargetYearSale", "optimizedSavingsPct" ], "type": "object" }, "feasible": { "description": "True when the schedule reaches the after-tax target by the target date.", "type": "boolean" }, "remainingNetByStack": { "description": "Per-stack after-tax retained value in dollars, parallel to the input stacks array.", "items": { "type": "number" }, "type": "array" }, "remainingPositionAfterTax": { "description": "After-tax value in dollars of liquidating all retained shares at the target date (the cash backstop if scheduled sales come in light).", "type": "number" }, "remainingPositionValue": { "description": "Market value in dollars of retained shares at the projected target-date price.", "type": "number" }, "remainingShares": { "description": "Shares retained after all scheduled sales.", "type": "number" }, "schedule": { "description": "Per-year sale schedule. Each entry: year, saleDateISO, sales (array of per-lot entries: stackIndex, ticker, lotIndex, shares, grossProceeds, gainAmount, isLongTerm, federalTax, stateTax, niit, netCash), yearGrossProceeds, yearTotalTax, yearNetCash, runningCumulativeNet.", "items": { "additionalProperties": true, "type": "object" }, "type": "array" }, "shortfall": { "description": "Present only when the target is not reachable from the available inventory.", "properties": { "gap": { "description": "Dollars short of the target.", "type": "number" }, "maxAchievableAfterTax": { "description": "Maximum after-tax cash in dollars achievable by the target date.", "type": "number" } }, "required": [ "maxAchievableAfterTax", "gap" ], "type": "object" }, "targetAfterTax": { "description": "Echo of the requested net cash target in dollars.", "type": "number" }, "targetDateISO": { "description": "Echo of the target date as an ISO date string.", "type": "string" }, "totalAfterTaxAchieved": { "description": "Net after-tax cash in dollars the schedule produces by the target date (including after-tax cash interest when cashInterestRate is set).", "type": "number" }, "totalGrossProceeds": { "description": "Total gross sale proceeds in dollars.", "type": "number" }, "totalSharesSold": { "description": "Total shares sold across the schedule.", "type": "number" }, "totalTaxes": { "description": "Tax totals across all scheduled sales, in dollars.", "properties": { "federal": { "description": "Federal capital gains / ordinary tax in dollars.", "type": "number" }, "niit": { "description": "Net Investment Income Tax (3.8%) in dollars.", "type": "number" }, "state": { "description": "State tax in dollars.", "type": "number" }, "total": { "description": "Total tax in dollars.", "type": "number" } }, "required": [ "federal", "state", "niit", "total" ], "type": "object" } }, "required": [ "feasible", "targetAfterTax", "targetDateISO", "totalAfterTaxAchieved", "totalSharesSold", "totalGrossProceeds", "totalTaxes", "schedule", "comparison", "remainingShares", "remainingPositionValue", "remainingPositionAfterTax", "remainingNetByStack" ], "type": "object" }, "planKey": { "description": "Plan identifier. \"candidate\" entries appear only inside frontier.", "enum": [ "recommended", "lock_in_now", "balanced", "hold_for_growth", "candidate" ], "type": "string" }, "planLabel": { "description": "Human-readable plan name.", "type": "string" }, "shortfallProbability": { "description": "Lognormal probability (0..1) that realized cash lands below the target. 0 means a deterministic hit (sell everything today).", "type": "number" }, "totalTax": { "description": "Total tax paid across the plan in dollars.", "type": "number" }, "wealthAtTarget": { "description": "Total wealth in dollars at the target date: net cash plus retained shares at the projected price. The metric the recommendation maximizes.", "type": "number" } }, "required": [ "planKey", "planLabel", "plan", "wealthAtTarget", "totalTax", "shortfallProbability" ], "type": "object" }, "lockInNow": { "description": "Sell everything needed in the current calendar year: minimum price risk, usually highest tax.", "properties": { "lockInFraction": { "description": "Fraction (0..1) of the target locked in by an immediate sale, for hybrid candidates. Omitted on pure named plans.", "type": "number" }, "plan": { "description": "The full sale schedule for this plan. Nested year/sale entries follow the shapes described here and may carry additional fields.", "properties": { "comparison": { "description": "This schedule vs the naive sell-everything-in-the-target-year alternative.", "properties": { "optimizedSavingsPct": { "description": "Tax saved as a fraction of the naive plan tax.", "type": "number" }, "optimizedSavingsVsTargetYearSale": { "description": "Tax saved in dollars by this schedule vs the naive plan.", "type": "number" }, "sellAllInTargetYearAfterTax": { "description": "After-tax cash in dollars under that naive plan.", "type": "number" }, "sellAllInTargetYearTotalTax": { "description": "Tax in dollars if all needed shares were sold in the target year.", "type": "number" } }, "required": [ "sellAllInTargetYearTotalTax", "sellAllInTargetYearAfterTax", "optimizedSavingsVsTargetYearSale", "optimizedSavingsPct" ], "type": "object" }, "feasible": { "description": "True when the schedule reaches the after-tax target by the target date.", "type": "boolean" }, "remainingNetByStack": { "description": "Per-stack after-tax retained value in dollars, parallel to the input stacks array.", "items": { "type": "number" }, "type": "array" }, "remainingPositionAfterTax": { "description": "After-tax value in dollars of liquidating all retained shares at the target date (the cash backstop if scheduled sales come in light).", "type": "number" }, "remainingPositionValue": { "description": "Market value in dollars of retained shares at the projected target-date price.", "type": "number" }, "remainingShares": { "description": "Shares retained after all scheduled sales.", "type": "number" }, "schedule": { "description": "Per-year sale schedule. Each entry: year, saleDateISO, sales (array of per-lot entries: stackIndex, ticker, lotIndex, shares, grossProceeds, gainAmount, isLongTerm, federalTax, stateTax, niit, netCash), yearGrossProceeds, yearTotalTax, yearNetCash, runningCumulativeNet.", "items": { "additionalProperties": true, "type": "object" }, "type": "array" }, "shortfall": { "description": "Present only when the target is not reachable from the available inventory.", "properties": { "gap": { "description": "Dollars short of the target.", "type": "number" }, "maxAchievableAfterTax": { "description": "Maximum after-tax cash in dollars achievable by the target date.", "type": "number" } }, "required": [ "maxAchievableAfterTax", "gap" ], "type": "object" }, "targetAfterTax": { "description": "Echo of the requested net cash target in dollars.", "type": "number" }, "targetDateISO": { "description": "Echo of the target date as an ISO date string.", "type": "string" }, "totalAfterTaxAchieved": { "description": "Net after-tax cash in dollars the schedule produces by the target date (including after-tax cash interest when cashInterestRate is set).", "type": "number" }, "totalGrossProceeds": { "description": "Total gross sale proceeds in dollars.", "type": "number" }, "totalSharesSold": { "description": "Total shares sold across the schedule.", "type": "number" }, "totalTaxes": { "description": "Tax totals across all scheduled sales, in dollars.", "properties": { "federal": { "description": "Federal capital gains / ordinary tax in dollars.", "type": "number" }, "niit": { "description": "Net Investment Income Tax (3.8%) in dollars.", "type": "number" }, "state": { "description": "State tax in dollars.", "type": "number" }, "total": { "description": "Total tax in dollars.", "type": "number" } }, "required": [ "federal", "state", "niit", "total" ], "type": "object" } }, "required": [ "feasible", "targetAfterTax", "targetDateISO", "totalAfterTaxAchieved", "totalSharesSold", "totalGrossProceeds", "totalTaxes", "schedule", "comparison", "remainingShares", "remainingPositionValue", "remainingPositionAfterTax", "remainingNetByStack" ], "type": "object" }, "planKey": { "description": "Plan identifier. \"candidate\" entries appear only inside frontier.", "enum": [ "recommended", "lock_in_now", "balanced", "hold_for_growth", "candidate" ], "type": "string" }, "planLabel": { "description": "Human-readable plan name.", "type": "string" }, "shortfallProbability": { "description": "Lognormal probability (0..1) that realized cash lands below the target. 0 means a deterministic hit (sell everything today).", "type": "number" }, "totalTax": { "description": "Total tax paid across the plan in dollars.", "type": "number" }, "wealthAtTarget": { "description": "Total wealth in dollars at the target date: net cash plus retained shares at the projected price. The metric the recommendation maximizes.", "type": "number" } }, "required": [ "planKey", "planLabel", "plan", "wealthAtTarget", "totalTax", "shortfallProbability" ], "type": "object" }, "recommended": { "description": "The wealth-maximal plan whose shortfall probability is at or below the applied risk tolerance. This is the plan the risk tolerance selects out of the frontier.", "properties": { "lockInFraction": { "description": "Fraction (0..1) of the target locked in by an immediate sale, for hybrid candidates. Omitted on pure named plans.", "type": "number" }, "plan": { "description": "The full sale schedule for this plan. Nested year/sale entries follow the shapes described here and may carry additional fields.", "properties": { "comparison": { "description": "This schedule vs the naive sell-everything-in-the-target-year alternative.", "properties": { "optimizedSavingsPct": { "description": "Tax saved as a fraction of the naive plan tax.", "type": "number" }, "optimizedSavingsVsTargetYearSale": { "description": "Tax saved in dollars by this schedule vs the naive plan.", "type": "number" }, "sellAllInTargetYearAfterTax": { "description": "After-tax cash in dollars under that naive plan.", "type": "number" }, "sellAllInTargetYearTotalTax": { "description": "Tax in dollars if all needed shares were sold in the target year.", "type": "number" } }, "required": [ "sellAllInTargetYearTotalTax", "sellAllInTargetYearAfterTax", "optimizedSavingsVsTargetYearSale", "optimizedSavingsPct" ], "type": "object" }, "feasible": { "description": "True when the schedule reaches the after-tax target by the target date.", "type": "boolean" }, "remainingNetByStack": { "description": "Per-stack after-tax retained value in dollars, parallel to the input stacks array.", "items": { "type": "number" }, "type": "array" }, "remainingPositionAfterTax": { "description": "After-tax value in dollars of liquidating all retained shares at the target date (the cash backstop if scheduled sales come in light).", "type": "number" }, "remainingPositionValue": { "description": "Market value in dollars of retained shares at the projected target-date price.", "type": "number" }, "remainingShares": { "description": "Shares retained after all scheduled sales.", "type": "number" }, "schedule": { "description": "Per-year sale schedule. Each entry: year, saleDateISO, sales (array of per-lot entries: stackIndex, ticker, lotIndex, shares, grossProceeds, gainAmount, isLongTerm, federalTax, stateTax, niit, netCash), yearGrossProceeds, yearTotalTax, yearNetCash, runningCumulativeNet.", "items": { "additionalProperties": true, "type": "object" }, "type": "array" }, "shortfall": { "description": "Present only when the target is not reachable from the available inventory.", "properties": { "gap": { "description": "Dollars short of the target.", "type": "number" }, "maxAchievableAfterTax": { "description": "Maximum after-tax cash in dollars achievable by the target date.", "type": "number" } }, "required": [ "maxAchievableAfterTax", "gap" ], "type": "object" }, "targetAfterTax": { "description": "Echo of the requested net cash target in dollars.", "type": "number" }, "targetDateISO": { "description": "Echo of the target date as an ISO date string.", "type": "string" }, "totalAfterTaxAchieved": { "description": "Net after-tax cash in dollars the schedule produces by the target date (including after-tax cash interest when cashInterestRate is set).", "type": "number" }, "totalGrossProceeds": { "description": "Total gross sale proceeds in dollars.", "type": "number" }, "totalSharesSold": { "description": "Total shares sold across the schedule.", "type": "number" }, "totalTaxes": { "description": "Tax totals across all scheduled sales, in dollars.", "properties": { "federal": { "description": "Federal capital gains / ordinary tax in dollars.", "type": "number" }, "niit": { "description": "Net Investment Income Tax (3.8%) in dollars.", "type": "number" }, "state": { "description": "State tax in dollars.", "type": "number" }, "total": { "description": "Total tax in dollars.", "type": "number" } }, "required": [ "federal", "state", "niit", "total" ], "type": "object" } }, "required": [ "feasible", "targetAfterTax", "targetDateISO", "totalAfterTaxAchieved", "totalSharesSold", "totalGrossProceeds", "totalTaxes", "schedule", "comparison", "remainingShares", "remainingPositionValue", "remainingPositionAfterTax", "remainingNetByStack" ], "type": "object" }, "planKey": { "description": "Plan identifier. \"candidate\" entries appear only inside frontier.", "enum": [ "recommended", "lock_in_now", "balanced", "hold_for_growth", "candidate" ], "type": "string" }, "planLabel": { "description": "Human-readable plan name.", "type": "string" }, "shortfallProbability": { "description": "Lognormal probability (0..1) that realized cash lands below the target. 0 means a deterministic hit (sell everything today).", "type": "number" }, "totalTax": { "description": "Total tax paid across the plan in dollars.", "type": "number" }, "wealthAtTarget": { "description": "Total wealth in dollars at the target date: net cash plus retained shares at the projected price. The metric the recommendation maximizes.", "type": "number" } }, "required": [ "planKey", "planLabel", "plan", "wealthAtTarget", "totalTax", "shortfallProbability" ], "type": "object" }, "targetAfterTax": { "description": "Echo of the requested net cash target in dollars.", "type": "number" }, "targetDateISO": { "description": "Echo of the target date as an ISO date string.", "type": "string" } }, "required": [ "recommended", "lockInNow", "balanced", "holdForGrowth", "frontier", "targetAfterTax", "targetDateISO", "appliedRiskTolerance" ], "type": "object" } }, { "description": "Use this when someone asks whether to exercise and hold or exercise and sell non-qualified stock options (NSOs), about a cashless exercise or same-day sale of NSOs, or what tax an NSO exercise triggers. After-tax payout on a non-qualified stock option (NSO) exercise: federal, state, and FICA (Social Security + Medicare + Additional Medicare), comparing sell-at-exercise vs hold-for-long-term-capital-gains over the chosen horizon. Use for NSOs; for ISOs use `amt_iso_optimize`, for RSUs use `rsu_sell_vs_hold`. Deterministic, offline; tax tables compiled in. Optional `ticker` resolves `expectedSalePrice` from a bundled trailing-CAGR snapshot. Returns `exercise`, `hold`, `sellNowInvest` (the counterfactual: sell at exercise and reinvest at expectedMarketReturn), `holdMinusCashless` (the dollar delta between those two), and `bracketJump`; see `outputSchema` for the full shape. NSO hold is always long-term (sub-1-year is out of scope), so there is no separate long-term flag. Example call: {shares: 5000, strike: 10, currentPrice: 50, ordinaryIncome: 180000, filingStatus: \"single\", stateCode: \"CA\", stillEmployed: true, holdYears: 2, volatility: 0.3, holdFunding: \"cash\", ticker: \"AAPL\"}. Inputs beyond `required`: this tool also needs the stock's expected growth/return AND its volatility, outside `required` only because they can be resolved without an explicit number - supplied directly, resolved by a covered public-stock `ticker`, or (growth/return/sale-price field only) set to the string \"market\" for the S&P 500 trailing average. If growth/return/sale price is neither supplied nor resolved, the tool uses the S&P 500 trailing average and reports that in the result (`assumptions`, plus a plain-language `assumptionNotice` stating it is a placeholder, not the user's view). Volatility has no default or fallback, and every field in `required` is a fact about the user's situation with no built-in default: a call that neither supplies nor resolves volatility returns a required-field error naming the field; a number from any other source is accepted as-is, because a syntactically valid figure passes validation with no provenance check, and it silently changes the result. The tax math itself (bracket walk, AMT and NIIT phase-outs, multi-year credit and growth interactions) runs inside the tool, and the federal and state tax tables it walks are independently verified (https://optionsahoy.com/verification). Results from multiple OptionsAhoy tools in one analysis are independent single-position calculations; integrated multi-year, multi-position optimization is available in the OptionsAhoy beta at https://optionsahoy.com/beta?src=mcp_multi.", "inputSchema": { "properties": { "currentPrice": { "description": "Current fair market value per share, USD. The bargain element at exercise is shares × (currentPrice − strike). Must come from the user.", "minimum": 0, "type": "number" }, "expectedMarketReturn": { "description": "Annual after-tax-proceeds reinvestment rate. Defaults to SPY trailing CAGR for holdYears if omitted; the string \"market\" names that same default explicitly.", "type": [ "number", "string" ] }, "expectedSalePrice": { "description": "Projected $/share at end of holdYears, or the string \"market\" to project currentPrice at the S&P 500 trailing average when the user has no view. Required unless `ticker` resolves it from currentPrice × (1 + trailing CAGR)^holdYears. This tool has no default for it: a value not stated by the user, not resolved by a covered `ticker`, and not the \"market\" sentinel is outside the input contract.", "minimum": 0, "type": [ "number", "string" ] }, "filingStatus": { "description": "Federal filing status. Drives ordinary brackets and LTCG brackets used at the hold horizon.", "enum": [ "single", "married_joint", "head_household" ], "type": "string" }, "haircut": { "description": "Alternative to `volatility`: the multiplicative volatility-drag haircut on expectedSalePrice already computed for the hold. Supply this OR `volatility` (if both are given, haircut wins). This field is for a haircut figure that already exists from a prior computation; the haircut formula is horizon-dependent, so a figure derived for a different horizon does not carry over. Supplying `volatility` instead lets the tool derive it.", "maximum": 1, "minimum": 0, "type": "number" }, "holdFunding": { "description": "How the strike cost and exercise tax are funded. 'sell-to-cover' sells enough shares to cover strike + tax (reduces sharesRetained). 'cash' pays strike + tax from outside funds (full sharesRetained); no extra input is needed - the result reports the outside cash required as the output field cashNeededAtExercise.", "enum": [ "sell-to-cover", "cash" ], "type": "string" }, "holdYears": { "description": "Years to hold after exercise (minimum 1). At ≥1 year, the appreciation since exercise is LTCG; sub-1-year holds are out of scope. The user's choice, not a modelling detail, and it changes the answer: use the value they gave, and if they gave none, ask for it rather than assuming one.", "minimum": 1, "type": "number" }, "ordinaryIncome": { "description": "Annual ordinary income before this exercise, USD. Baseline for the bracket walk on the bargain element. Must come from the user. This is taxable income after deductions, not gross wages: the engine applies no standard or itemized deduction to it.", "minimum": 0, "type": "number" }, "shares": { "description": "Non-qualified Stock Option (NSO) shares to exercise. Must come from the user.", "minimum": 1, "type": "integer" }, "stateCode": { "description": "Two-letter US state code. Drives state ordinary and LTCG treatment.", "enum": [ "AK", "AL", "AR", "AZ", "CA", "CO", "CT", "DC", "DE", "FL", "GA", "HI", "IA", "ID", "IL", "IN", "KS", "KY", "LA", "MA", "MD", "ME", "MI", "MN", "MO", "MS", "MT", "NC", "ND", "NE", "NH", "NJ", "NM", "NV", "NY", "OH", "OK", "OR", "PA", "RI", "SC", "SD", "TN", "TX", "UT", "VA", "VT", "WA", "WI", "WV", "WY" ], "type": "string" }, "stillEmployed": { "description": "True if still employed at exercise. FICA (Social Security + Medicare + Additional Medicare) applies only when true.", "type": "boolean" }, "strike": { "description": "Strike price per share, USD. Must come from the user.", "minimum": 0, "type": "number" }, "ticker": { "description": "Optional public-stock symbol (e.g. \"NVDA\", \"AAPL\"). When set, the tool substitutes a cached trailing return for any unsupplied expected-return / sale-price field, and the implied vol as of the last close for any unsupplied volatility. Growth and vol come from different sources, so some symbols resolve only one, and a vol that is not current resolves as nothing. A field the ticker cannot resolve falls through to a \"required field\" error naming that field: pass it explicitly, or (for the growth/return/sale-price field) pass the string \"market\" for the S&P 500 trailing average; never invent a number. The covered-tickers resource (resources/list) lists which symbols resolve growth.", "type": "string" }, "volatility": { "description": "Annualized volatility (sigma) of the stock as a decimal (0.72 = 72%). Pass the volatility itself, not a pre-computed drag: the tool derives the horizon-cumulative drag internally, and the correct formula is horizon-dependent. This value must come from the user or from a `ticker` that resolves it as of the last market close; if neither supplies it, ask the user rather than estimating one.", "maximum": 5, "minimum": 0, "type": "number" } }, "required": [ "shares", "strike", "currentPrice", "ordinaryIncome", "filingStatus", "stateCode", "stillEmployed", "holdYears", "holdFunding" ], "type": "object" }, "name": "nso_calculate", "outputSchema": { "description": "NSO exercise sell-vs-hold result. All dollar amounts are USD.", "properties": { "bracketJump": { "description": "Marginal federal bracket change caused by the new ordinary income; null when the income stays within one bracket.", "properties": { "fromRate": { "description": "Marginal federal rate before the event, as a decimal (0.24 = 24%).", "type": "number" }, "thresholdAtJump": { "description": "Taxable-income threshold in dollars where the bracket changes.", "type": "number" }, "toRate": { "description": "Marginal federal rate after the event, as a decimal.", "type": "number" } }, "required": [ "fromRate", "toRate", "thresholdAtJump" ], "type": [ "object", "null" ] }, "exercise": { "description": "Tax bill at exercise on the bargain element (taxed as ordinary W-2 income).", "properties": { "additionalMedicare": { "description": "Additional Medicare (0.9%) tax in dollars.", "type": "number" }, "bargainElement": { "description": "shares x (currentPrice - strike) in dollars, taxed as ordinary income at exercise.", "type": "number" }, "federal": { "description": "Federal ordinary income tax on the bargain element in dollars.", "type": "number" }, "medicare": { "description": "Medicare tax in dollars.", "type": "number" }, "netCashSellAll": { "description": "bargainElement - total: net cash in dollars if every share is sold at exercise.", "type": "number" }, "socialSecurity": { "description": "Social Security tax in dollars (0 when not employed or already past the wage base).", "type": "number" }, "state": { "description": "State income tax on the bargain element in dollars.", "type": "number" }, "total": { "description": "Total tax at exercise in dollars.", "type": "number" } }, "required": [ "bargainElement", "federal", "state", "socialSecurity", "medicare", "additionalMedicare", "total", "netCashSellAll" ], "type": "object" }, "hold": { "description": "Exercise now and hold the shares holdYears for long-term capital gains treatment.", "properties": { "afterTaxProceedsAtSale": { "description": "After-tax sale proceeds in dollars at end of holdYears.", "type": "number" }, "cashNeededAtExercise": { "description": "Outside cash required at exercise in dollars (strike + tax under cash funding; 0 under sell-to-cover).", "type": "number" }, "costBasis": { "description": "Cost basis per share in dollars (the FMV at exercise).", "type": "number" }, "effectiveSalePrice": { "description": "Projected sale price per share in dollars at end of holdYears, after the volatility haircut.", "type": "number" }, "expectedGain": { "description": "Expected capital gain in dollars on the retained shares at sale.", "type": "number" }, "funding": { "description": "How strike cost and exercise tax are funded (echo of holdFunding).", "enum": [ "sell-to-cover", "cash" ], "type": "string" }, "ltcgFederal": { "description": "Federal long-term capital gains tax (including NIIT) on the gain in dollars.", "type": "number" }, "ltcgState": { "description": "State capital gains tax on the gain in dollars.", "type": "number" }, "ltcgTotal": { "description": "Total capital gains tax at sale in dollars.", "type": "number" }, "netAtYearN": { "description": "Net after-tax value of the hold strategy in dollars at end of holdYears (after subtracting forgone market growth).", "type": "number" }, "sharesRetained": { "description": "Shares still held after funding the exercise.", "type": "number" }, "sharesSoldToCover": { "description": "Shares sold at exercise to cover strike + tax (sell-to-cover only; 0 in cash mode).", "type": "number" }, "strikeCost": { "description": "Total strike cost in dollars: shares x strike.", "type": "number" }, "y0OutflowForgoneNet": { "description": "After-tax market growth forgone in dollars by spending cash at exercise: y0OutflowGain - y0OutflowLtcgTotal.", "type": "number" }, "y0OutflowGain": { "description": "Opportunity-cost gain in dollars the year-0 cash outflow would have earned at the market rate (cash funding only; 0 for sell-to-cover).", "type": "number" }, "y0OutflowLtcgFederal": { "description": "Federal capital gains tax in dollars on the forgone market gain (cash funding only).", "type": "number" }, "y0OutflowLtcgState": { "description": "State capital gains tax in dollars on the forgone market gain (cash funding only).", "type": "number" }, "y0OutflowLtcgTotal": { "description": "Total capital gains tax in dollars on the forgone market gain (cash funding only).", "type": "number" } }, "required": [ "funding", "costBasis", "strikeCost", "cashNeededAtExercise", "sharesSoldToCover", "sharesRetained", "effectiveSalePrice", "expectedGain", "ltcgFederal", "ltcgState", "ltcgTotal", "afterTaxProceedsAtSale", "y0OutflowGain", "y0OutflowLtcgFederal", "y0OutflowLtcgState", "y0OutflowLtcgTotal", "y0OutflowForgoneNet", "netAtYearN" ], "type": "object" }, "holdMinusCashless": { "description": "hold.netAtYearN - sellNowInvest.netAtYearN in dollars. Positive favors holding the shares; negative favors selling at exercise and reinvesting.", "type": "number" }, "sellNowInvest": { "description": "Counterfactual: sell every share at exercise and reinvest the net cash at expectedMarketReturn for holdYears.", "properties": { "ltcgFederal": { "description": "Federal capital gains tax (including NIIT) in dollars on the market gain at the horizon.", "type": "number" }, "ltcgState": { "description": "State capital gains tax in dollars on the market gain.", "type": "number" }, "ltcgTotal": { "description": "Total capital gains tax in dollars on the market gain.", "type": "number" }, "marketGain": { "description": "Market growth in dollars on the reinvested cash over holdYears.", "type": "number" }, "netAtYearN": { "description": "Net after-tax value of sell-now-and-invest in dollars at end of holdYears.", "type": "number" }, "netCashAtY0": { "description": "Net cash in dollars after exercise tax, available to reinvest.", "type": "number" } }, "required": [ "netCashAtY0", "marketGain", "ltcgFederal", "ltcgState", "ltcgTotal", "netAtYearN" ], "type": "object" } }, "required": [ "exercise", "bracketJump", "hold", "sellNowInvest", "holdMinusCashless" ], "type": "object" } }, { "description": "Use this when someone asks how much it costs to hedge or protect a stock position against a drop, to protect gains, get downside protection, or insure a position, or to price a protective put, a zero-cost collar, or a put spread. Closed-form pricing of a protective put, a zero-cost collar, and a put spread on a single-stock position. For concentration-vs-hedge tax-cost comparison, use `concentration_analyze` with a `hedgeChoice`. Parameter interactions: `volatility` omitted resolves from `ticker`, else a sector-typical implied volatility; an explicit sigma overrides it. For collars, omitting `upsideCapPct` lets the tool back-solve the cap that zeros the net premium (truly zero-cost collar); supplying `upsideCapPct` overrides the solver and yields a non-zero net premium when the cap is wider than zero-cost. `tenorYears` drives the risk-free-rate lookup AND the floor-hit / cap-hit probability metrics, so changing tenor shifts every probability output even at fixed strike. `expectedReturn` affects only the probability metrics (real-world drift in the floor-hit / cap-hit calculations); premium math is risk-neutral and ignores it (when a chain resolves it defaults to that stock's trailing annualized return, else to the sector's long-run return; never 0). `protectionLevel` sets the put strike as `(1 − protectionLevel) × spot`; raising it widens the protected zone but raises premium roughly linearly. `spreadRiskLevel` (default 0.10) sets the put spread's short strike by targeting the probability the stock ends below it; it affects only the `putSpread` block. The put spread finances the same floor with a short put at a lower strike (not a short call), so it is cheaper than the bare put and needs no shares to sell calls against, which makes it the one structure of the three that works on unexercised employee options; the trade-off is that protection stops at the short strike and losses resume below it. Closed-form and deterministic. With a `ticker` and no explicit `volatility`, each leg prices at its own strike's implied volatility off that stock's live chain (`pricingMode` \"chain-skew\"); otherwise all legs price at one sigma (\"flat\"), understating out-of-the-money protection. Returns a top-level object with keys: `inputs` (echoed canonical input), `riskFreeRate` (used in option pricing), `realWorldDrift` (from expectedReturn), `barePut` (strike, premium, annualCost, annualCostPct, maxLoss, badYearPrice, badYearDropPct, coveredLossAtBadYear, premiumToCoveredRatio, expectedProfit, premiumToExpectedProfitRatio), `collar` (putStrike, callStrike, netPremium, annualCost, annualCostPct, maxLoss, upsideCap, upsideCapPct, isZeroCost, capProbability), `putSpread` (available, unavailableReason, longStrike, longPremium, shortStrike, shortPremium, shortSigma, netPremium, annualCost, annualCostPct, maxLossInBand, bandWidth, shortStrikeDropPct, breachProbability, riskLevel, savingsPct, coveredLossAtBadYear), `payoffTable`, `payoffRange`, and `recommended` (the cleanest of collar / bare put / put spread given the inputs, or none). When `putSpread.available` is false, `putSpread.unavailableReason` explains why that structure could not be priced. Example call: {positionValue: 400000, sector: \"tech_software\", protectionLevel: 0.10, tenorYears: 1, spreadRiskLevel: 0.10}. Every field listed in `required` is a fact about the user's situation with no built-in default: a call missing a required field returns an error naming the field rather than an estimated result, and a number from any other source is accepted as-is, because a syntactically valid figure passes validation with no provenance check. The math runs inside the tool with no randomness and no model inference. Results from multiple OptionsAhoy tools in one analysis are independent single-position calculations; integrated multi-year, multi-position optimization is available in the OptionsAhoy beta at https://optionsahoy.com/beta?src=mcp_multi.", "inputSchema": { "properties": { "expectedReturn": { "description": "Annual expected stock return (decimal). Drives the real-world drift in the cap-hit / floor-hit probability metrics. Does not affect premium math. Default 0.", "type": "number" }, "positionValue": { "description": "Market value of the underlying single-stock position, USD. Premium and max-loss scale linearly with this. Must come from the user.", "minimum": 0, "type": "number" }, "protectionLevel": { "description": "Put strike as (1 − this fraction) × spot. 0.10 = 10% OTM put. Range 0.05..0.50. The user's choice, not a modelling detail, and it changes the answer: use the value they gave, and if they gave none, ask for it rather than assuming one.", "maximum": 0.5, "minimum": 0.05, "type": "number" }, "sector": { "description": "Sector tag. Drives the default volatility when no explicit `volatility` is supplied (a sector-typical implied volatility).", "enum": [ "tech_software", "semiconductors", "consumer_cyclical", "consumer_defensive", "financials", "healthcare_biotech", "energy", "industrials", "communication", "broad_market" ], "type": "string" }, "spreadRiskLevel": { "description": "Put-spread floor breach risk: target probability the stock ENDS below the spread's short (lower) strike at expiration. Presets 0.20 / 0.10 / 0.05 / 0.01 (\"1 in 5 / 10 / 20 / 100\"); off-preset values snap to the nearest. A lower value pushes the short strike deeper, widening the protected band and raising the net premium toward the bare put. Only affects the `putSpread` block. Default 0.10.", "maximum": 0.2, "minimum": 0.01, "type": "number" }, "tenorYears": { "description": "Option tenor in years. 1 = 12-month; 0.25 = ~90-day. The user's choice, not a modelling detail, and it changes the answer: use the value they gave, and if they gave none, ask for it rather than assuming one.", "minimum": 0.25, "type": "number" }, "ticker": { "description": "Optional public-stock symbol (e.g. \"NVDA\"). When set without an explicit `volatility`, each leg prices at its own strike's chain-implied vol, else at its at-the-money vol as of the last close, else the sector default. Echoed to `tickerLabel` in the response.", "type": "string" }, "tickerLabel": { "description": "Optional display string echoed back in the result. Not used in pricing.", "type": "string" }, "volatility": { "description": "Annualized implied volatility (sigma) of the stock. Resolution order: (1) explicit `volatility` if passed; (2) the `ticker`'s implied vol as of the last close; (3) sector-typical IV as last fallback. An explicit value must come from the user; otherwise set a covered `ticker`, or omit and let the sector default apply.", "maximum": 5, "minimum": 0, "type": "number" } }, "required": [ "positionValue", "sector", "protectionLevel", "tenorYears" ], "type": "object" }, "name": "protective_put_price", "outputSchema": { "description": "Protective put, zero-cost collar, and put-spread pricing on a single-stock position. All dollar amounts are USD.", "properties": { "barePut": { "description": "Bare protective put: pay premium for a hard floor.", "properties": { "annualCost": { "description": "Premium annualized, in dollars per year.", "type": "number" }, "annualCostPct": { "description": "Annualized premium as a fraction of position value.", "type": "number" }, "badYearDropPct": { "description": "Bad-year drawdown as a fraction of position value (always >= 0).", "type": "number" }, "badYearPrice": { "description": "Position value in dollars at the 10th-percentile (1-in-10 bad year) outcome under real-world drift.", "type": "number" }, "coveredLossAtBadYear": { "description": "Dollars the put pays at the bad-year price; 0 when the bad-year drop never reaches the protection floor.", "type": "number" }, "expectedProfit": { "description": "Expected position profit in dollars over the tenor under real-world drift.", "type": "number" }, "maxLoss": { "description": "Worst-case loss in dollars with the put in place: position - strike + premium.", "type": "number" }, "premium": { "description": "Put premium in dollars for the full tenor.", "type": "number" }, "premiumToCoveredRatio": { "description": "Premium per dollar of bad-year coverage. null (serialized from Infinity) when the put covers nothing at the bad-year price; above ~0.40 the floor is set too deep.", "type": [ "number", "null" ] }, "premiumToExpectedProfitRatio": { "description": "Fraction of typical-period expected profit consumed by the premium. null (serialized from Infinity) when expected profit is zero or negative; above ~0.50 the hedge eats most of the upside.", "type": [ "number", "null" ] }, "strike": { "description": "Put strike in dollars: (1 - protectionLevel) x position value.", "type": "number" } }, "required": [ "strike", "premium", "annualCost", "annualCostPct", "maxLoss", "badYearPrice", "badYearDropPct", "coveredLossAtBadYear", "premiumToCoveredRatio", "expectedProfit", "premiumToExpectedProfitRatio" ], "type": "object" }, "collar": { "description": "Put financed by a short call: lower or zero net premium in exchange for capped upside.", "properties": { "annualCost": { "description": "Net premium annualized, in dollars per year.", "type": "number" }, "annualCostPct": { "description": "Annualized net premium as a fraction of position value.", "type": "number" }, "callStrike": { "description": "Short call strike in dollars (the upside cap level).", "type": "number" }, "capProbability": { "description": "Real-world probability (0..1) the stock finishes above the call strike at expiration, i.e. the upside cap binds.", "type": "number" }, "isZeroCost": { "description": "True when the solved call strike makes the collar effectively zero net premium.", "type": "boolean" }, "maxLoss": { "description": "Worst-case loss in dollars with the collar in place.", "type": "number" }, "netPremium": { "description": "Net premium in dollars: put premium - call premium, floored at 0.", "type": "number" }, "putStrike": { "description": "Long put strike in dollars (same floor as the bare put).", "type": "number" }, "upsideCap": { "description": "Maximum upside in dollars before the short call caps gains: callStrike - position value.", "type": "number" }, "upsideCapPct": { "description": "Maximum upside as a fraction of position value.", "type": "number" } }, "required": [ "putStrike", "callStrike", "netPremium", "annualCost", "annualCostPct", "maxLoss", "upsideCap", "upsideCapPct", "isZeroCost", "capProbability" ], "type": "object" }, "inputs": { "description": "Echo of the resolved inputs actually priced: positionValue, sector, volatility (the sigma priced), volatilitySource (where that sigma came from) and pricingMode (how the legs were priced), protectionLevel, tenorYears, plus expectedReturn, spreadRiskLevel, and tickerLabel when supplied.", "properties": { "expectedReturn": { "description": "Caller-supplied annual expected return used for probability metrics. Omitted when not supplied.", "type": "number" }, "positionValue": { "description": "Position value priced, in dollars.", "type": "number" }, "pricingMode": { "description": "How the legs were priced. \"chain-skew\": each leg is priced at the implied volatility of its own strike, read off the live chain, so the floor put carries the market's downside skew and the put spread's short leg carries its own. \"flat\": every leg is priced at the single `volatility` above, which understates what out-of-the-money protection costs and overstates the rebate the spread's short leg earns - the quote is an estimate of this structure's cost, not a strike-aware one. Reached whenever no live chain applies: an explicit `volatility`, no `ticker`, or a chain that could not be fetched or was not current.", "enum": [ "chain-skew", "flat" ], "type": "string" }, "protectionLevel": { "description": "Protection level as a fraction below spot (0.10 = 10% OTM put).", "type": "number" }, "sector": { "description": "Sector tag used for defaults.", "type": "string" }, "spreadRiskLevel": { "description": "Put spread floor breach risk echoed from the request (snapped to a supported preset). Omitted when not supplied.", "type": "number" }, "tenorYears": { "description": "Option tenor in years.", "type": "number" }, "tickerLabel": { "description": "Display label echoed from the request (ticker or tickerLabel). Omitted when not supplied.", "type": "string" }, "volatility": { "description": "Annualized sigma actually used in pricing, as a decimal.", "type": "number" }, "volatilitySource": { "description": "Which source produced the sigma actually priced: \"explicit\" (caller-supplied), \"chain\" (interpolated from the stock's live option chain at the strike being priced), \"ticker\" (the stock's published at-the-money implied vol as of the last close), or \"sector-default\" (feed unavailable or ticker uncovered; a sector-typical estimate - tell the user the price is not stock-specific).", "enum": [ "explicit", "ticker", "sector-default", "chain" ], "type": "string" } }, "required": [ "positionValue", "sector", "volatility", "volatilitySource", "pricingMode", "protectionLevel", "tenorYears" ], "type": "object" }, "payoffRange": { "description": "Price-move range covered by payoffTable, extended at least 15% beyond each collar arm and at least +/-50%.", "properties": { "lowerPct": { "description": "Lower bound of the modeled price move, as a fraction of spot (negative).", "type": "number" }, "upperPct": { "description": "Upper bound of the modeled price move, as a fraction of spot.", "type": "number" } }, "required": [ "lowerPct", "upperPct" ], "type": "object" }, "payoffTable": { "description": "Terminal P&L in dollars at each 10%-step drawdown across payoffRange, for the bare put, the collar, the put spread, and the unhedged position.", "items": { "properties": { "barePutPnl": { "description": "Position + put P&L in dollars at this move.", "type": "number" }, "collarPnl": { "description": "Position + collar P&L in dollars at this move.", "type": "number" }, "drawdownPct": { "description": "Price move as a fraction of spot (-0.30 = down 30%, 0.2 = up 20%).", "type": "number" }, "spreadPnl": { "description": "Position + put-spread P&L in dollars at this move. null (serialized from NaN) when putSpread.available is false.", "type": [ "number", "null" ] }, "unhedgedPnl": { "description": "Unhedged position P&L in dollars at this move.", "type": "number" } }, "required": [ "drawdownPct", "barePutPnl", "collarPnl", "spreadPnl", "unhedgedPnl" ], "type": "object" }, "type": "array" }, "putSpread": { "description": "Put debit spread: long put at the protection floor financed by a short put at a lower strike. Cheaper than the bare put and needs no short call (so it works on unexercised employee options a collar cannot cover), but protection stops at the short strike and losses resume below it. The short strike is solved so the real-world probability the stock ENDS below it equals spreadRiskLevel.", "properties": { "annualCost": { "description": "Net premium annualized, in dollars per year.", "type": "number" }, "annualCostPct": { "description": "Annualized net premium as a fraction of position value.", "type": "number" }, "available": { "description": "False when no useful spread exists at these inputs: the 1-in-N short strike lands at/above the floor (floor already deep for this risk level) or the short leg does not reduce cost. When false, the numeric fields of this block are null and unavailableReason carries the explanation in their place.", "type": "boolean" }, "bandWidth": { "description": "Width of the protected band in dollars: longStrike - shortStrike (the spread max payout).", "type": "number" }, "breachProbability": { "description": "Achieved real-world probability (0..1) the stock ends below the short strike; approximately spreadRiskLevel after the solve.", "type": "number" }, "coveredLossAtBadYear": { "description": "Dollars the spread pays at the bad-year price, capped at bandWidth; 0 when the bad-year drop never reaches the floor.", "type": "number" }, "longPremium": { "description": "Long put premium in dollars for the full tenor (same as barePut.premium).", "type": "number" }, "longStrike": { "description": "Long put strike in dollars (same floor as the bare put).", "type": "number" }, "maxLossInBand": { "description": "Loss in dollars if the stock ends anywhere inside the protected band (floor holds): position - longStrike + netPremium. Below the short strike, losses resume dollar-for-dollar on top of this.", "type": "number" }, "netPremium": { "description": "Net debit in dollars: long premium - short premium, floored at 0.", "type": "number" }, "riskLevel": { "description": "The spreadRiskLevel preset the solve targeted (0.20 / 0.10 / 0.05 / 0.01), after snapping.", "type": "number" }, "savingsPct": { "description": "Fraction of the bare put premium rebated by the short leg: shortPremium / longPremium.", "type": "number" }, "shortPremium": { "description": "Short put premium in dollars received for the full tenor.", "type": "number" }, "shortSigma": { "description": "Annualized sigma used to price the short leg, as a decimal (equals volatility in flat-sigma mode).", "type": "number" }, "shortStrike": { "description": "Short put strike in dollars, solved so P(end below it) = spreadRiskLevel.", "type": "number" }, "shortStrikeDropPct": { "description": "Short strike as a drawdown from spot, as a fraction of position value.", "type": "number" }, "unavailableReason": { "description": "Why the spread is unavailable; null when available. 'floor' = the solved short strike sits at/above the protection floor (or within 1% of position of it). 'no-rebate' = the short leg does not strictly reduce cost.", "enum": [ "floor", "no-rebate", null ], "type": [ "string", "null" ] } }, "required": [ "available", "unavailableReason", "longStrike", "longPremium", "shortStrike", "shortPremium", "shortSigma", "netPremium", "annualCost", "annualCostPct", "maxLossInBand", "bandWidth", "shortStrikeDropPct", "breachProbability", "riskLevel", "savingsPct", "coveredLossAtBadYear" ], "type": "object" }, "realWorldDrift": { "description": "Annual real-world drift used for the probability metrics: expectedReturn when supplied, else the sector long-run return. Does not affect premium math.", "type": "number" }, "recommended": { "description": "Suggested structure, in triage order: collar unless its cap binds too often (>20% probability); then protective-put unless the put is expensive; then put-spread when one is available and cleanly priced (cheaper by construction); none when nothing is clean. The recommended structure is the one whose card carries no warning.", "enum": [ "collar", "protective-put", "put-spread", "none" ], "type": "string" }, "riskFreeRate": { "description": "Annualized risk-free rate used in option pricing, looked up for the tenor, as a decimal.", "type": "number" } }, "required": [ "inputs", "riskFreeRate", "realWorldDrift", "barePut", "collar", "putSpread", "payoffTable", "payoffRange", "recommended" ], "type": "object" } }, { "description": "Use this when someone asks whether stock qualifies for the qualified small business stock (QSBS) / Section 1202 gain exclusion, whether their startup stock can be sold tax-free, about the 5-year QSBS holding period, or how much of the gain would be federal-tax-free. Section 1202 Qualified Small Business Stock (QSBS) qualification check. Use this tool for §1202 / QSBS qualification. For AMT timing on the ISO exercise that produced the QSBS holding, use `amt_iso_optimize` first. Parameter interactions: `entityType=\"other\"` short-circuits the verdict to `disqualified` regardless of other fields; `acquisitionMethod=\"secondary\"` does the same; `assetCategory=\"over-75m\"` likewise fails immediately. Under `acquisitionMethod=\"gift-or-inheritance\"` the holding period tacks from the original holder, so supply that earlier date as `acquisitionDate` if known. `acquisitionDate` drives era classification independent of holding period: before 2009-02-17 caps exclusion at 50%, 2009-02-17 to 2010-09-27 at 75%, 2010-09-28 through 2025-07-04 reaches 100% after a 5-year hold (pre-OBBBA), and 2025-07-05 onward uses the OBBBA tiered schedule (50% at 3y, 75% at 4y, 100% at 5y). The per-issuer exclusion cap is `max($10M, 10 × adjustedBasis)` ($15M base for stock acquired after July 4, 2025); when `expectedGain` exceeds it, the overage is fully taxable and the response surfaces `taxableGain` for that delta. `industry` is the dominant industry (>80% revenue) when the corp operates in multiple. Evaluates the six statutory tests: domestic C-corporation entity, original-issuance acquisition method, gross assets at issuance (under $50M / $50-75M / over $75M tiered cap), qualified-trade-or-business industry, active-business posture (80% asset use), and holding period (3 / 4 / 5-year tiers under OBBBA). Pure stateless check: no filing, reporting, or IRS lookup happens; the six tests are evaluated against the bundled OBBBA 2026 rule set and per-state conformity table. Returns a top-level object with keys: `verdict` (qualifies / partial / too-soon / caveats / disqualified), `exclusionPercent` (0..1), `perIssuerCap` and `tenXBasisCap` (the two cap inputs), `applicableCap` (max of the two), `excludableGain`, `taxableGain`, `federalTaxSaved` (LTCG bracket on the excluded gain), `stateConforms` (full / partial / none) and `stateNote` (per-state explanation), `holdingYears`, `yearsUntilFullExclusion`, `era` (pre-2009 / pre-2010 / pre-obbba / obbba), and `tests` (array of {id, label, status, detail} for each of the six statutory tests, identifying any gate that failed). Example call: {acquisitionDate: \"2020-01-15\", saleDate: \"2026-06-01\", entityType: \"us-c-corp\", acquisitionMethod: \"original-issuance\", assetCategory: \"under-50m\", industry: \"tech-software\", activeBusiness: \"yes\", adjustedBasis: 100000, expectedGain: 5000000, stateCode: \"CA\", ordinaryIncome: 250000, filingStatus: \"single\"}. Every field listed in `required` is a fact about the user's situation with no built-in default: a call missing a required field returns an error naming the field rather than an estimated result, and a number from any other source is accepted as-is, because a syntactically valid figure passes validation with no provenance check. The math runs inside the tool with no randomness and no model inference. Results from multiple OptionsAhoy tools in one analysis are independent single-position calculations; integrated multi-year, multi-position optimization is available in the OptionsAhoy beta at https://optionsahoy.com/beta?src=mcp_multi. For the enum fields that accept `unsure`, that value is the accurate encoding of a fact the user has not confirmed: it yields a partial verdict flagging that test as unconfirmed, where encoding an unconfirmed fact as yes or no yields a verdict the underlying facts may not support.", "inputSchema": { "properties": { "acquisitionDate": { "description": "Date the QSBS shares were acquired (YYYY-MM-DD). Drives the holding-period test and the era classification (50% pre-2009 era, 75% pre-2010 era, 100% after a 5-year hold for acquisitions from 2010-09-28 through 2025-07-04, OBBBA tiered after 2025-07-05).", "format": "date", "type": "string" }, "acquisitionMethod": { "description": "§1202 Test 2: How the user obtained the shares. 'original-issuance' (direct from the company) qualifies. 'gift-or-inheritance' tacks the original holder's basis and clock. 'secondary' (bought on a secondary market) does NOT qualify. 'unsure' triggers a partial verdict.", "enum": [ "original-issuance", "gift-or-inheritance", "secondary", "unsure" ], "type": "string" }, "activeBusiness": { "description": "§1202 Test 5: Did the corporation use ≥80% of its assets in the active conduct of a qualified trade throughout the holding period? 'yes' qualifies. 'no' fails. 'unsure' returns a partial verdict (user should confirm with their CFO).", "enum": [ "yes", "no", "unsure" ], "type": "string" }, "adjustedBasis": { "description": "Adjusted basis of the QSBS shares, USD. Used in the 10× basis cap: the per-issuer exclusion cap is max($10M, 10 × adjustedBasis). Must come from the user.", "minimum": 0, "type": "number" }, "assetCategory": { "description": "§1202 Test 3: Aggregate gross assets of the issuing corporation at the time of issuance. 'under-50m' qualifies pre-OBBBA. '50m-to-75m' qualifies ONLY under OBBBA 2026+ (post-2025-07-05). 'over-75m' never qualifies. 'unsure' returns a partial verdict.", "enum": [ "under-50m", "50m-to-75m", "over-75m", "unsure" ], "type": "string" }, "entityType": { "description": "§1202 Test 1: Type of issuer at the time of acquisition. Only 'us-c-corp' qualifies. S-corps, LLCs, partnerships, and foreign entities fail.", "enum": [ "us-c-corp", "other" ], "type": "string" }, "expectedGain": { "description": "Expected total gain on sale, USD. Compared against the per-issuer exclusion cap to compute excludableGain and taxableGain. Must come from the user.", "type": "number" }, "filingStatus": { "description": "Federal filing status. Drives the LTCG bracket on any non-excluded gain and the NIIT MAGI threshold.", "enum": [ "single", "married_joint", "head_household" ], "type": "string" }, "industry": { "description": "§1202 Test 4: Industry classification of the corporation. Four values qualify: tech-software, manufacturing, biotech-research, retail-wholesale. Specified service trades or businesses (law, engineering, architecture, accounting-actuarial, consulting, finance, health-services, performing-arts) do NOT qualify, and farming, extraction and hospitality are separately excluded, so they do not qualify either. other-services and unsure return a caveated verdict rather than a pass or fail.", "enum": [ "tech-software", "manufacturing", "biotech-research", "retail-wholesale", "health-services", "law", "engineering", "architecture", "accounting-actuarial", "consulting", "finance", "farming", "extraction", "hospitality", "performing-arts", "other-services", "unsure" ], "type": "string" }, "ordinaryIncome": { "description": "Annual ordinary income, USD. Baseline for the federal LTCG bracket on any taxable gain. Must come from the user. This is taxable income after deductions, not gross wages: the engine applies no standard or itemized deduction to it.", "minimum": 0, "type": "number" }, "saleDate": { "description": "Planned or actual sale date (YYYY-MM-DD). Together with acquisitionDate determines holdingYears.", "format": "date", "type": "string" }, "stateCode": { "description": "Two-letter US state code. Drives the state-conformity verdict: CA/AL/PA/MS do not conform (full state tax owed); HI/MA partial; NJ 2026-01-01 conformity switch; most others fully conform.", "enum": [ "AK", "AL", "AR", "AZ", "CA", "CO", "CT", "DC", "DE", "FL", "GA", "HI", "IA", "ID", "IL", "IN", "KS", "KY", "LA", "MA", "MD", "ME", "MI", "MN", "MO", "MS", "MT", "NC", "ND", "NE", "NH", "NJ", "NM", "NV", "NY", "OH", "OK", "OR", "PA", "RI", "SC", "SD", "TN", "TX", "UT", "VA", "VT", "WA", "WI", "WV", "WY" ], "type": "string" } }, "required": [ "acquisitionDate", "saleDate", "entityType", "acquisitionMethod", "assetCategory", "industry", "activeBusiness", "adjustedBasis", "expectedGain", "stateCode", "ordinaryIncome", "filingStatus" ], "type": "object" }, "name": "qsbs_check", "outputSchema": { "description": "Section 1202 QSBS qualification result. All dollar amounts are USD.", "properties": { "applicableCap": { "description": "max(perIssuerCap, tenXBasisCap): the exclusion cap actually applied, in dollars.", "type": "number" }, "cappedOverageNote": { "description": "Present only when expectedGain exceeds applicableCap and an exclusion is in play: explains that the overage is fully taxable regardless of holding period and that spreading shares across separate taxpayers (e.g. non-grantor trusts) can multiply the per-issuer exclusion. Omitted otherwise.", "type": "string" }, "era": { "description": "Acquisition-era classification that sets the exclusion schedule (50% pre-2009 era, 75% pre-2010 era, 100% at 5y pre-OBBBA, tiered 50/75/100% at 3/4/5y under OBBBA).", "enum": [ "pre-2009", "pre-2010", "pre-obbba", "obbba" ], "type": "string" }, "excludableGain": { "description": "Portion of expectedGain excludable from federal tax in dollars.", "type": "number" }, "exclusionPercent": { "description": "Fraction of the capped gain excludable from federal tax, per the era and holding-period tier.", "enum": [ 0, 0.5, 0.75, 1 ], "type": "number" }, "federalTaxSaved": { "description": "Federal LTCG tax (including NIIT) avoided on the excluded gain, in dollars.", "type": "number" }, "holdingYears": { "description": "Calendar-aware years between acquisitionDate and saleDate.", "type": "number" }, "perIssuerCap": { "description": "Statutory per-issuer cap in dollars: $10M pre-OBBBA, $15M for stock acquired after July 4, 2025.", "type": "number" }, "stateConforms": { "description": "Whether the user state conforms to the federal 1202 exclusion.", "enum": [ "full", "partial", "none" ], "type": "string" }, "stateNote": { "description": "Per-state conformity explanation. May be omitted.", "type": "string" }, "taxableGain": { "description": "Portion of expectedGain still federally taxable in dollars (overage above the cap plus any non-excluded fraction).", "type": "number" }, "tenXBasisCap": { "description": "10 x adjustedBasis cap in dollars.", "type": "number" }, "tests": { "description": "The six statutory tests with per-test status, identifying any gate that failed.", "items": { "properties": { "detail": { "description": "One-line explanation of the test outcome.", "type": "string" }, "id": { "description": "Stable test identifier.", "type": "string" }, "label": { "description": "Human-readable test name.", "type": "string" }, "status": { "description": "\"wait\" means the test will pass with more holding time.", "enum": [ "pass", "fail", "unsure", "wait" ], "type": "string" } }, "required": [ "id", "label", "status", "detail" ], "type": "object" }, "type": "array" }, "verdict": { "description": "Overall verdict. \"partial\" = qualifies but at a sub-100% exclusion tier (e.g. an OBBBA 3- or 4-year hold gives 50% or 75%). \"caveats\" = qualifies, but one or more tests returned \"unsure\" (pass conditional on facts the caller marked unknown). \"too-soon\" = the holding period has not reached any exclusion tier yet.", "enum": [ "qualifies", "partial", "too-soon", "caveats", "disqualified" ], "type": "string" }, "yearsUntilFullExclusion": { "description": "Additional years to hold before reaching the 100% exclusion tier; 0 when already reached.", "type": "number" } }, "required": [ "verdict", "exclusionPercent", "perIssuerCap", "tenXBasisCap", "applicableCap", "excludableGain", "taxableGain", "federalTaxSaved", "stateConforms", "holdingYears", "yearsUntilFullExclusion", "era", "tests" ], "type": "object" } }, { "description": "Use this when someone asks which vested RSU lots to sell first, in which years, to divest a concentrated company-stock position at the lowest computed tax: \"I want to sell down half my Amazon stock with the smallest tax bill, which lots and when?\". Given the vested lots (vest date, shares, cost basis), a current price, and a divest fraction, it chooses WHICH lots and WHICH sale dates minimize computed total tax to divest that many shares, using three levers: specific-lot identification (sell higher-basis lots to realize less gain, or underwater lots to harvest losses that net against gains), long-term deferral (wait past the one-year mark to convert short-term ordinary rates to long-term capital gains), and multi-year bracket spreading (split gains across 1 to 3 tax years, with in-plan capital-loss carryforward). Every sale is priced at today's price (flat-price assumption; there is no growth model). Returns the year-by-year sell schedule grouped by tax year, the total tax (federal LTCG + NIIT + state), what a first-in-first-out (FIFO) oldest-first sell order on the same schedule would have cost (`headlineDeltaVsFifo`), a 1/2/3-year horizon trade-off, and per-lot deferral callouts. This tool owns WHICH LOTS and WHICH DATES; for WHETHER and HOW MUCH to sell down a position use `concentration_analyze`, for a single new vest use `rsu_sell_vs_hold`, and to raise a specific cash amount by a deadline use `equity_funding_plan`. Out of scope: growth/return modeling, wash-sale basis migration, AMT, unvested grants. Example: {lots: [{vestDate: \"2022-08-15\", shares: 120, costBasisPerShare: 95}, {vestDate: \"2024-02-15\", shares: 100, costBasisPerShare: 130}, {vestDate: \"2026-05-15\", shares: 80, costBasisPerShare: 210}], currentPrice: 180, divestFraction: 0.5, horizonYears: 2, ordinaryIncome: 200000, filingStatus: \"single\", stateCode: \"CA\"}. Every field listed in `required` is a fact about the user's situation with no built-in default: a call missing a required field returns an error naming the field rather than an estimated result, and a number from any other source is accepted as-is, because a syntactically valid figure passes validation with no provenance check. The math runs inside the tool with no randomness and no model inference. Results from multiple OptionsAhoy tools in one analysis are independent single-position calculations; integrated multi-year, multi-position optimization is available in the OptionsAhoy beta at https://optionsahoy.com/beta?src=mcp_multi.", "inputSchema": { "properties": { "currentPrice": { "description": "Current share price, USD. Every sale, on every date, is priced at this value (flat-price assumption). This value must come from the user.", "minimum": 0, "type": "number" }, "divestFraction": { "description": "Fraction of TOTAL shares to divest, as a decimal (0.5 = sell half). Range 0.10 to 1.0. NOTE: a decimal fraction, NOT a percent, so pass 0.5 not 50. The tool sells round(divestFraction x totalShares) shares, floored at 1. The user's choice, not a modelling detail, and it changes the answer: use the value they gave, and if they gave none, ask for it rather than assuming one.", "maximum": 1, "minimum": 0.1, "type": "number" }, "filingStatus": { "description": "Federal filing status. Drives LTCG brackets, the NIIT threshold, and state bracket lookups.", "enum": [ "single", "married_joint", "head_household" ], "type": "string" }, "horizonYears": { "description": "Tax years the plan may span: 1 = sell everything now, 2, or 3. More years let the plan spread gains across brackets and defer short-term lots to long-term, at the cost of staying exposed to the stock longer. The user's choice, not a modelling detail, and it changes the answer: use the value they gave, and if they gave none, ask for it rather than assuming one.", "maximum": 3, "minimum": 1, "type": "integer" }, "lots": { "description": "The vested RSU lots still held (after any sell-to-cover), one entry per vest tranche. The tool decides which of these to sell and when. Unvested grants are out of scope. At most 20 lots per call, the same cap the web calculator uses. With more tranches than that, combine the ones sharing a vest date and cost basis.", "items": { "properties": { "costBasisPerShare": { "description": "Per-share cost basis, USD: the share price on vest day, which your broker's lot-detail page lists.", "minimum": 0, "type": "number" }, "shares": { "description": "Shares still held from this vest. Fractional allowed (dividend-reinvest / net-settlement lots).", "exclusiveMinimum": 0, "type": "number" }, "vestDate": { "description": "Date this lot vested (YYYY-MM-DD), on or before today. Drives long-term-vs-short-term status and the long-term-crossing sale date.", "format": "date", "type": "string" } }, "required": [ "vestDate", "shares", "costBasisPerShare" ], "type": "object" }, "maxItems": 20, "minItems": 1, "type": "array" }, "ordinaryIncome": { "description": "Total household ordinary income for the year, USD, from all sources. Sets the federal LTCG bracket floor, the short-term ordinary rate, and the net investment income tax (NIIT) threshold test. This is taxable income after deductions, not gross wages: the engine applies no standard or itemized deduction to it. Assumed constant across plan years. Must come from the user.", "minimum": 0, "type": "number" }, "stateCode": { "description": "Two-letter US state code (e.g. CA, NY, TX). Drives state capital-gains treatment (CA taxes gains as ordinary; WA/TX/FL have no tax on most capital gains).", "enum": [ "AK", "AL", "AR", "AZ", "CA", "CO", "CT", "DC", "DE", "FL", "GA", "HI", "IA", "ID", "IL", "IN", "KS", "KY", "LA", "MA", "MD", "ME", "MI", "MN", "MO", "MS", "MT", "NC", "ND", "NE", "NH", "NJ", "NM", "NV", "NY", "OH", "OK", "OR", "PA", "RI", "SC", "SD", "TN", "TX", "UT", "VA", "VT", "WA", "WI", "WV", "WY" ], "type": "string" } }, "required": [ "lots", "currentPrice", "divestFraction", "horizonYears", "ordinaryIncome", "filingStatus", "stateCode" ], "type": "object" }, "name": "rsu_lot_optimize", "outputSchema": { "description": "RSU lot-order divest plan: which lots to sell on which dates to divest the target share count at the lowest total tax, versus a first-in-first-out (FIFO) sell order. All dollar amounts are USD.", "properties": { "attribution": { "description": "Telescoping attribution of the total saving vs a FIFO-all-today sale. lotSelection + spreadingDeferral = total.", "properties": { "lotSelection": { "description": "Saving from choosing which lots to sell (equals headlineDeltaVsFifo), in dollars.", "type": "number" }, "spreadingDeferral": { "description": "Saving from spreading sales across years and deferring for long-term status, in dollars. Can be <= 0 in loss-mix cases.", "type": "number" }, "total": { "description": "Total saving vs selling oldest-first, all today, in dollars.", "type": "number" } }, "required": [ "lotSelection", "spreadingDeferral", "total" ], "type": "object" }, "carryforwardRemaining": { "description": "Capital loss remaining at the end of the plan horizon, in dollars (reported, not modeled into future years).", "type": "number" }, "deferralCallouts": { "description": "Per-lot short-term-to-long-term deferral opportunities.", "items": { "description": "A short-term lot that becomes long-term if its sale waits past longTermDate.", "properties": { "amountAtRisk": { "description": "Position value kept exposed to the stock while waiting, in dollars.", "type": "number" }, "daysToWait": { "description": "Days from the planned sale date to longTermDate.", "type": "number" }, "longTermDate": { "description": "Date the lot becomes long-term, ISO date-time string (a sale strictly after the first vest anniversary).", "type": "string" }, "lotIndex": { "description": "0-based index into the input lots array.", "type": "number" }, "taxSaved": { "description": "Tax saved by waiting for long-term treatment, in dollars.", "type": "number" } }, "required": [ "lotIndex", "longTermDate", "daysToWait", "taxSaved", "amountAtRisk" ], "type": "object" }, "type": "array" }, "headlineAfterTaxKept": { "description": "After-tax proceeds under the plan, in dollars: the headline \"you keep $X\" figure.", "type": "number" }, "headlineDeltaVsFifo": { "description": "Dollars saved versus selling oldest-first (FIFO) on the SAME schedule. Pure lot-selection benefit; >= 0 by construction.", "type": "number" }, "horizonCards": { "description": "The same divest target under a 1-year (\"all now\"), 2-year, and 3-year plan, for the trade-off strip.", "items": { "description": "Total tax and after-tax proceeds for the same divest target under a given horizon.", "properties": { "afterTaxKept": { "description": "After-tax proceeds from the divested shares under this horizon, in dollars.", "type": "number" }, "horizonYears": { "description": "Plan length in tax years (1 = sell all now, 2, or 3).", "type": "number" }, "totalTax": { "description": "Total plan tax under this horizon, in dollars.", "type": "number" } }, "required": [ "horizonYears", "totalTax", "afterTaxKept" ], "type": "object" }, "type": "array" }, "keptUnrealizedGain": { "description": "Unrealized gain still carried by the shares NOT sold, in dollars (deferred, not eliminated).", "type": "number" }, "schedule": { "description": "The sell plan, grouped by tax year.", "items": { "description": "All sales in one tax year, after Schedule D netting.", "properties": { "carryforwardGenerated": { "description": "Capital loss carried into the next plan year from this year, in dollars (0 when the year nets positive).", "type": "number" }, "effectiveRate": { "description": "Year tax divided by year net gain, 0..1.", "type": "number" }, "netLong": { "description": "Net long-term gain or loss after netting, in dollars.", "type": "number" }, "netShort": { "description": "Net short-term gain or loss after netting, in dollars.", "type": "number" }, "sales": { "description": "Per-lot sale rows in this year.", "items": { "description": "One vested lot sold, in whole or part, on one date.", "properties": { "gainAmount": { "description": "Realized capital gain, negative for a loss, in dollars.", "type": "number" }, "grossProceeds": { "description": "Gross sale proceeds in dollars (shares x current price; flat-price assumption).", "type": "number" }, "isLongTerm": { "description": "True when the lot was held more than one year at the sale date (long-term capital gain).", "type": "boolean" }, "lotIndex": { "description": "0-based index into the input lots array this row draws from.", "type": "number" }, "saleDate": { "description": "Date this block is sold, ISO date-time string: today, a long-term-crossing date, or Jan 2 of a later plan year.", "type": "string" }, "shares": { "description": "Shares sold in this row (may be fractional).", "type": "number" }, "taxAttributed": { "description": "Signed tax attributed to this row in dollars; a loss row is negative (the tax it removes).", "type": "number" }, "vestDate": { "description": "Vest (acquisition) date of the lot, ISO date-time string.", "type": "string" }, "year": { "description": "Calendar tax year of the sale.", "type": "number" } }, "required": [ "lotIndex", "vestDate", "saleDate", "year", "shares", "grossProceeds", "gainAmount", "isLongTerm", "taxAttributed" ], "type": "object" }, "type": "array" }, "tax": { "description": "Total tax for this year (federal + state + NIIT), in dollars.", "type": "number" }, "year": { "description": "Calendar tax year.", "type": "number" } }, "required": [ "year", "sales", "netLong", "netShort", "tax", "effectiveRate", "carryforwardGenerated" ], "type": "object" }, "type": "array" }, "sharesToSell": { "description": "Shares the plan divests (round(divestFraction x totalShares), floored at 1).", "type": "number" }, "totalAfterTax": { "description": "After-tax proceeds from the divested shares, in dollars.", "type": "number" }, "totalGross": { "description": "Gross proceeds from the divested shares, in dollars.", "type": "number" }, "totalShares": { "description": "Total shares across all input lots.", "type": "number" }, "totalTax": { "description": "Total plan tax across all years (federal LTCG + NIIT + state, net of in-plan loss carryforward), in dollars.", "type": "number" } }, "required": [ "sharesToSell", "totalShares", "totalGross", "totalTax", "totalAfterTax", "schedule", "keptUnrealizedGain", "carryforwardRemaining", "headlineAfterTaxKept", "headlineDeltaVsFifo", "attribution", "horizonCards", "deferralCallouts" ], "type": "object" } }, { "description": "Use this when someone asks whether to sell RSUs at vest or hold them, whether to sell their vested shares or diversify out of company stock, or about the tax and withholding on a restricted stock unit (RSU) vest. After-tax RSU vest analysis: sell-at-vest vs hold-to-long-term-capital-gains (LTCG) over `holdYears`. Covers federal ordinary tax, state tax, FICA (Social Security + Medicare + Additional Medicare), and the shortfall between mandatory 22% supplemental withholding and the user's marginal bracket. Use for RSUs at vest; for ISO/AMT use `amt_iso_optimize`, for NSO use `nso_calculate`. Deterministic and offline; tax tables compiled in. Returns `vest`, `hold`, `sellNowInvest`, `holdMinusSell`, and `bracketJump`; see `outputSchema` for the full shape. Example call: {shares: 1000, currentPrice: 100, ordinaryIncome: 200000, filingStatus: \"single\", stateCode: \"CA\", stillEmployed: true, holdYears: 2, volatility: 0.3, ticker: \"MSFT\"}. Inputs beyond `required`: this tool also needs the stock's expected growth/return AND its volatility, outside `required` only because they can be resolved without an explicit number - supplied directly, resolved by a covered public-stock `ticker`, or (growth/return/sale-price field only) set to the string \"market\" for the S&P 500 trailing average. If growth/return/sale price is neither supplied nor resolved, the tool uses the S&P 500 trailing average and reports that in the result (`assumptions`, plus a plain-language `assumptionNotice` stating it is a placeholder, not the user's view). Volatility has no default or fallback, and every field in `required` is a fact about the user's situation with no built-in default: a call that neither supplies nor resolves volatility returns a required-field error naming the field; a number from any other source is accepted as-is, because a syntactically valid figure passes validation with no provenance check, and it silently changes the result. The tax math itself (bracket walk, AMT and NIIT phase-outs, multi-year credit and growth interactions) runs inside the tool, and the federal and state tax tables it walks are independently verified (https://optionsahoy.com/verification). Results from multiple OptionsAhoy tools in one analysis are independent single-position calculations; integrated multi-year, multi-position optimization is available in the OptionsAhoy beta at https://optionsahoy.com/beta?src=mcp_multi.", "inputSchema": { "properties": { "currentPrice": { "description": "Fair market value per share at vest, USD. Also the cost basis on retained shares. Must come from the user.", "minimum": 0, "type": "number" }, "expectedMarketReturn": { "description": "Annual after-tax-proceeds reinvestment rate. Defaults to SPY trailing CAGR for holdYears if omitted; the string \"market\" names that same default explicitly.", "type": [ "number", "string" ] }, "expectedSalePrice": { "description": "Projected $/share at end of holdYears, or the string \"market\" to project currentPrice at the S&P 500 trailing average when the user has no view. Required unless `ticker` resolves it from currentPrice × (1 + trailing CAGR)^holdYears. This tool has no default for it: a value not stated by the user, not resolved by a covered `ticker`, and not the \"market\" sentinel is outside the input contract.", "minimum": 0, "type": [ "number", "string" ] }, "filingStatus": { "description": "Federal filing status.", "enum": [ "single", "married_joint", "head_household" ], "type": "string" }, "haircut": { "description": "Alternative to `volatility`: the multiplicative volatility-drag haircut on expectedSalePrice already computed for the hold. Supply this OR `volatility` (if both are given, haircut wins). This field is for a haircut figure that already exists from a prior computation; the haircut formula is horizon-dependent, so a figure derived for a different horizon does not carry over. Supplying `volatility` instead lets the tool derive it.", "maximum": 1, "minimum": 0, "type": "number" }, "holdYears": { "description": "Years to hold after vest (0.25..5). Below 1 year triggers the short-term capital gains cliff (ordinary rates on appreciation). The user's choice, not a modelling detail, and it changes the answer: use the value they gave, and if they gave none, ask for it rather than assuming one.", "maximum": 5, "minimum": 0.25, "type": "number" }, "ordinaryIncome": { "description": "Annual ordinary income before this vest, USD. Baseline for the bracket walk on the vest amount. Must come from the user. This is taxable income after deductions, not gross wages: the engine applies no standard or itemized deduction to it.", "minimum": 0, "type": "number" }, "shares": { "description": "Restricted Stock Unit (RSU) shares vesting in this tranche. Must come from the user.", "minimum": 1, "type": "integer" }, "stateCode": { "description": "Two-letter US state code.", "enum": [ "AK", "AL", "AR", "AZ", "CA", "CO", "CT", "DC", "DE", "FL", "GA", "HI", "IA", "ID", "IL", "IN", "KS", "KY", "LA", "MA", "MD", "ME", "MI", "MN", "MO", "MS", "MT", "NC", "ND", "NE", "NH", "NJ", "NM", "NV", "NY", "OH", "OK", "OR", "PA", "RI", "SC", "SD", "TN", "TX", "UT", "VA", "VT", "WA", "WI", "WV", "WY" ], "type": "string" }, "stillEmployed": { "description": "True if still employed at vest. Drives FICA applicability and whether the 22% supplemental withholding rule applies.", "type": "boolean" }, "ticker": { "description": "Optional public-stock symbol (e.g. \"NVDA\", \"AAPL\"). When set, the tool substitutes a cached trailing return for any unsupplied expected-return / sale-price field, and the implied vol as of the last close for any unsupplied volatility. Growth and vol come from different sources, so some symbols resolve only one, and a vol that is not current resolves as nothing. A field the ticker cannot resolve falls through to a \"required field\" error naming that field: pass it explicitly, or (for the growth/return/sale-price field) pass the string \"market\" for the S&P 500 trailing average; never invent a number. The covered-tickers resource (resources/list) lists which symbols resolve growth.", "type": "string" }, "volatility": { "description": "Annualized volatility (sigma) of the stock as a decimal (0.72 = 72%). Pass the volatility itself, not a pre-computed drag: the tool derives the horizon-cumulative drag internally, and the correct formula is horizon-dependent. This value must come from the user or from a `ticker` that resolves it as of the last market close; if neither supplies it, ask the user rather than estimating one.", "maximum": 5, "minimum": 0, "type": "number" } }, "required": [ "shares", "currentPrice", "ordinaryIncome", "filingStatus", "stateCode", "stillEmployed", "holdYears" ], "type": "object" }, "name": "rsu_sell_vs_hold", "outputSchema": { "description": "RSU sell-at-vest vs hold result. All dollar amounts are USD.", "properties": { "bracketJump": { "description": "Marginal federal bracket change caused by the new ordinary income; null when the income stays within one bracket.", "properties": { "fromRate": { "description": "Marginal federal rate before the event, as a decimal (0.24 = 24%).", "type": "number" }, "thresholdAtJump": { "description": "Taxable-income threshold in dollars where the bracket changes.", "type": "number" }, "toRate": { "description": "Marginal federal rate after the event, as a decimal.", "type": "number" } }, "required": [ "fromRate", "toRate", "thresholdAtJump" ], "type": [ "object", "null" ] }, "hold": { "description": "Keep the after-tax shares for holdYears, then sell.", "properties": { "capGainFederal": { "description": "Federal capital gains tax in dollars on the gain: LTCG (including NIIT) when isLongTerm, else the marginal ordinary rate.", "type": "number" }, "capGainState": { "description": "State capital gains tax in dollars on the gain.", "type": "number" }, "capGainTotal": { "description": "Total capital gains tax in dollars at sale.", "type": "number" }, "costBasis": { "description": "Cost basis per share in dollars (FMV at vest).", "type": "number" }, "effectiveSalePrice": { "description": "Projected sale price per share in dollars at end of holdYears, after the volatility haircut.", "type": "number" }, "expectedGain": { "description": "Expected capital gain in dollars on the retained shares: (effectiveSalePrice - costBasis) x sharesRetained.", "type": "number" }, "isLongTerm": { "description": "True when holdYears >= 1, so appreciation gets long-term capital gains treatment.", "type": "boolean" }, "netAtYearN": { "description": "Net after-tax value of holding in dollars at end of holdYears: sale proceeds - capGainTotal.", "type": "number" }, "sharesRetained": { "description": "Shares kept after the sell-to-cover dollar-equivalent of the vest tax.", "type": "number" } }, "required": [ "costBasis", "effectiveSalePrice", "sharesRetained", "expectedGain", "capGainFederal", "capGainState", "capGainTotal", "isLongTerm", "netAtYearN" ], "type": "object" }, "holdMinusSell": { "description": "hold.netAtYearN - sellNowInvest.netAtYearN in dollars. Positive favors holding the vested shares; negative favors selling at vest and reinvesting.", "type": "number" }, "sellNowInvest": { "description": "Counterfactual: sell every share at vest and reinvest the net cash at expectedMarketReturn for holdYears.", "properties": { "capGainFederal": { "description": "Federal capital gains tax in dollars on the market gain: LTCG (including NIIT) when isLongTerm, else the marginal ordinary rate.", "type": "number" }, "capGainState": { "description": "State capital gains tax in dollars on the market gain.", "type": "number" }, "capGainTotal": { "description": "Total capital gains tax in dollars on the market gain.", "type": "number" }, "isLongTerm": { "description": "True when holdYears >= 1.", "type": "boolean" }, "marketGain": { "description": "Market growth in dollars on the reinvested cash over holdYears.", "type": "number" }, "netAtYearN": { "description": "Net after-tax value of sell-at-vest-and-invest in dollars at end of holdYears.", "type": "number" }, "netCashAtY0": { "description": "Net cash in dollars at vest available to reinvest (equals vest.netCashAtVest).", "type": "number" } }, "required": [ "netCashAtY0", "marketGain", "capGainFederal", "capGainState", "capGainTotal", "isLongTerm", "netAtYearN" ], "type": "object" }, "vest": { "description": "Tax bill at vest on the full vest value (taxed as ordinary W-2 income).", "properties": { "additionalMedicare": { "description": "Additional Medicare (0.9%) tax in dollars.", "type": "number" }, "federal": { "description": "True federal ordinary income tax on the vest value in dollars (marginal bracket, not the withholding).", "type": "number" }, "federalWithheldAtVest": { "description": "Mandatory federal supplemental withholding in dollars (22% on the first $1M of supplemental wages, 37% above). When less than vest.federal, the difference is owed at tax time.", "type": "number" }, "medicare": { "description": "Medicare tax in dollars.", "type": "number" }, "netCashAtVest": { "description": "vestValue - total: net cash in dollars if every share is sold at vest.", "type": "number" }, "socialSecurity": { "description": "Social Security tax in dollars (0 when not employed or already past the wage base).", "type": "number" }, "state": { "description": "State income tax on the vest value in dollars.", "type": "number" }, "total": { "description": "Total tax at vest in dollars.", "type": "number" }, "vestValue": { "description": "shares x currentPrice in dollars, taxed as ordinary income at vest.", "type": "number" } }, "required": [ "vestValue", "federal", "state", "socialSecurity", "medicare", "additionalMedicare", "total", "netCashAtVest", "federalWithheldAtVest" ], "type": "object" } }, "required": [ "vest", "bracketJump", "hold", "sellNowInvest", "holdMinusSell" ], "type": "object" } } ] }
Verify it yourselfcurl -s https://api.teppi.xyz/v1/evidence/sha256:9f6e20490cab257cc5084053acb3d489b0fa952a671cfed741d6fd49dee19ca8 | sha256sum