Skip to main content
Glama

Fair Value MCP Server

Loss-making and pre-profit company valuation

calculate_loss_making_company
Read-onlyIdempotent

Loss-making-company engine. Value currently unprofitable companies with margin-ramp DCF, revenue multiples, Merton structural equity, the VC method, distressed waterfalls, bank residual income, and SPAC deals; every method returns a central value plus a dispersion (sigma, percentiles, long-tail). Use this when earnings-based multiples break down; for standalone probability weighting of arbitrary scenarios use calculate_expected_value, and for a single going-concern DCF use calculate_dcf. Methods: margin_ramp_dcf: revenue, growth_rate, start_margin, target_margin, ramp_years, discount_rate, years, shares_outstanding, net_debt, range_method; revenue_multiple: revenue, ev_revenue_multiple, net_debt, shares_outstanding, range_method; merton_equity: firm_value, firm_volatility, debt, risk_free, maturity, range_method; vc_method: terminal_value, target_return, investment, shares_outstanding, range_method; distressed_waterfall: enterprise_value, claims, range_method; bank_residual_income: book_value, net_income, cost_equity, growth_rate, range_method; spac_deal: trust_cash, shares_outstanding, redemption_price, range_method. Supply exactly one method with its declared inputs (no defaults). An unknown method, a missing input, or an extra field returns an error envelope (code INVALID_ARGUMENT) instead of raising.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
debtNoDebt face value (default point) for the Merton equity model.
yearsNoNumber of projection years n; equal len(cash_flows) when both are supplied.
claimsNoOrdered claims [{name, amount, priority}] for a waterfall.
methodYesFormula to apply; the tool description lists the exact inputs each value requires.
revenueNoBase-year revenue in reporting currency.
maturityNoTime to expiry in years (0.5 = six months); > 0.
net_debtNoTotal debt minus cash and equivalents.
risk_freeNoContinuously-compounded risk-free rate (decimal).
book_valueNoBook value of equity in reporting currency.
firm_valueNoFirm/asset value for the Merton equity model.
investmentNoAmount invested (VC method).
net_incomeNoNet income in reporting currency.
ramp_yearsNoYears to move from start_margin to target_margin (>=1).
trust_cashNoSPAC trust cash available for redemption.
cost_equityNoCost of equity as a decimal (0.12 = 12%).
growth_rateNoPeriodic growth rate as a decimal (0.03 = 3%).
range_methodNoStatistic returned as the headline value; the full dispersion is always included.
start_marginNoOpening operating margin (decimal, may be negative); margin_ramp.
discount_rateNoDiscount rate as a decimal (0.10 = 10%); pre-tax when method=viu_pre_tax.
target_marginNoNormalized margin reached after ramp_years; margin_ramp.
target_returnNoVC target return multiple.
terminal_valueNoExit/terminal value (VC method).
firm_volatilityNoAsset volatility for the Merton equity model (decimal).
enterprise_valueNoEnterprise value distributed across claims.
redemption_priceNoSPAC redemption price per share.
shares_outstandingNoShares outstanding.
ev_revenue_multipleNoEV/Revenue multiple.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
errorNoError detail, present only when status='error'.
stepsNoOrdered computation steps, when the method reports them.
valueNoPrimary result: a number for scalar methods, an object for valuation methods.
methodNoMethod or tool name that produced the result.
statusYes'ok' on success, 'error' on failure.
tickerNoTicker the result pertains to, when applicable.
assumptionsNoInputs and assumptions used, echoed for traceability.
formula_refNoFormula or standards reference for the method.
data_timestampNoISO-8601 UTC timestamp of the underlying data, when fetched.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.7/5.0
Behavior4/5

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

Annotations already establish readOnly/idempotent/non-destructive, so the safety profile is covered; the description still adds real value by disclosing that every method returns a central value plus dispersion (sigma, percentiles, long-tail), that no defaults are applied, and that bad input yields an INVALID_ARGUMENT error envelope rather than raising. It does not contradict the annotations.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loads purpose, then usage/exclusions, then the method-to-input catalog. The method listing is long but each term carries load for a 27-parameter tool; only the repeated 'range_method' tail across every method is slightly wasteful.

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

Completeness5/5

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

Given 27 params, one required discriminator, full schema coverage, and an existing output schema, the description supplies everything an agent needs: purpose, routing versus siblings, the per-method input contract, no-defaults rule, and error behavior. Return-value detail is correctly left to the output schema.

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

Parameters5/5

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

Schema coverage is 100%, which alone would cap the baseline at 3, but the description goes well beyond the per-field schema text by mapping each of the seven method enum values to the exact inputs it requires (e.g. merton_equity: firm_value, firm_volatility, debt, risk_free, maturity) and stating that exactly one method's declared inputs must be supplied. That mapping is genuinely unavailable from the flat schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb+resource (value currently unprofitable companies) and enumerates the exact method families the engine covers. It explicitly distinguishes itself from siblings by naming calculate_expected_value (probability weighting of arbitrary scenarios) and calculate_dcf (single going-concern DCF), so an agent can route correctly without opening any schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives an explicit trigger ('Use this when earnings-based multiples break down') plus two named alternatives with the precise condition that selects each. Coverage of when-to-use and when-to-use-something-else is essentially complete.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.