Skip to main content
Glama
simonmak-ascent

io.github.simonmak-ascent/fair-value

Discounted cash flow valuation

valuation_dcf
Read-onlyIdempotent

Value going-concern firms by discounting projected free cash flows to present value, returning fair value per share plus WACC and terminal value. Supply assumptions or omit to derive from market data.

Instructions

Value a company by discounting projected free cash flows to present value. Supply explicit assumptions, or omit them to derive from current market data. Use this for going-concern cash-flow businesses; for asset-heavy holding companies use valuation_nav, and for peer-based pricing use valuation_cca. Returns fair value per share plus the WACC and terminal value.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
waccNoWeighted average cost of capital as a decimal.
yearsNoProjection horizon in years (default 5).
tickerYesEquity ticker, e.g. 'AAPL' or '9988.HK'.
nwc_pctNoChange in net working capital as a fraction of revenue (decimal).
revenueNoBase-year revenue in the reporting currency.
net_debtNoTotal debt minus cash and equivalents.
tax_rateNoEffective corporate tax rate as a decimal.
capex_pctNoCapital expenditure as a fraction of revenue (decimal).
growth_rateNoAnnual revenue growth rate as a decimal (e.g. 0.05).
ebitda_marginNoEBITDA as a fraction of revenue (decimal).
terminal_growthNoPerpetuity growth rate applied to terminal value (decimal).
depreciation_pctNoDepreciation as a fraction of revenue (decimal).
shares_outstandingNoDiluted shares outstanding.

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 tools, an object for valuation tools.
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.2/5.0
Behavior3/5

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

Annotations already establish readOnlyHint, idempotentHint, and openWorldHint, so safety behavior is covered by structured fields. The description adds useful context about the fallback ('omit them to derive from current market data') and the response shape ('fair value per share plus the WACC and terminal value'). It does not disclose what happens with partial assumption sets or error conditions, but with annotations covering the safety profile and an output schema present, a 3 is appropriate.

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

Conciseness5/5

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

Three sentences, zero waste: purpose first, then the assumption-vs-derived behavior, then sibling routing, then return values. Information is front-loaded and every sentence earns its place.

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

Completeness4/5

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

Given a 13-param tool with an existing output schema and annotations, the description covers purpose, fallback behavior, sibling alternatives, and return values. It could note anything about the granularity of the derived market data or whether partial assumptions are supported, but it is otherwise complete for correct invocation.

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

Parameters3/5

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

Schema coverage is 100% with per-parameter descriptions for all 13 fields, so the schema carries the parameter burden. The description adds only the high-level insight that assumptions can be supplied or omitted, without explaining syntax or precedence. Baseline 3 is correct.

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

Purpose5/5

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

The description states a specific verb+resource ('Value a company by discounting projected free cash flows to present value') and explicitly differentiates from two named siblings: valuation_nav for asset-heavy holding companies and valuation_cca for peer-based pricing. An agent can disambiguate among the 35 valuation_* siblings 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?

Explicitly names when to use this tool ('going-concern cash-flow businesses') and provides two concrete alternatives with the conditions that select them. This is textbook routing guidance.

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