Skip to main content
Glama

LexGrid Financial Risk & CSRD ESG

DCF & WACC Corporate Valuation Engine

dcf_wacc_valuation
Read-onlyIdempotent

[Deterministic corporate valuation engine. Pure calculation, read-only, side-effect free]. Discounted Cash Flow (DCF) enterprise valuation model: Capital Asset Pricing Model (CAPM) Cost of Equity, after-tax Cost of Debt, blended Weighted Average Cost of Capital (WACC), Gordon Growth perpetual terminal value, net debt bridge waterfall, and multi-parameter sensitivity matrix. Usage: Use this tool to calculate intrinsic Enterprise Value, Equity Value, and implied share price from forecast cash flows. Do NOT use for solvency default prediction (use 'corporate_default_predictor') or accounting anomaly forensics (use 'financial_trend_anomaly'). Returns: JSON object with { enterpriseValue: number, equityValue: number, impliedSharePrice: number | null, wacc: number, costOfEquity: number, costOfDebtAfterTax: number, pvForecastFlows: number, terminalValue: number, sensitivityMatrix: Array<{ wacc, terminalGrowth, enterpriseValue }> }.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "waccParams": "<waccParams>",
      "forecastCashFlows": "<forecastCashFlows>",
      "terminalGrowthRate": "<terminalGrowthRate>"
    },
    "name": "dcf_wacc_valuation"
  }
}

Input Schema

NameRequiredDescriptionDefault
currencyNoReporting currency code (default EUR)EUR
waccParamsYesWACC cost of capital inputs
netDebtBridgeNoBalance sheet net debt bridge to calculate Equity Value
forecastCashFlowsYesAt least 2 projection periods of forecast FCFF
sharesOutstandingNoTotal diluted shares for implied share price calculation
midYearDiscountingNoWhether to apply mid-year discounting (period - 0.5)
terminalGrowthRateYesPerpetual growth rate g (e.g. 0.02 for 2.0%)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed7 schema fields changed
    • changedInput schema / properties / forecastCashFlows / items / properties / fcff / description
      Previous value: -"Free Cash Flow to Firm in currency units"New value: +"Free Cash Flow to Firm in EUR"
    • addedInput schema / properties / forecastCashFlows / items / properties / year / description
      Added value: +"Projection period label (e.g. 2026, 2027)"
    • addedInput schema / properties / netDebtBridge / properties / cashAndCashEquivalents / description
      Added value: +"Cash and liquid equivalents in EUR"
    • addedInput schema / properties / netDebtBridge / properties / minorityInterests / description
      Added value: +"Minority interests in EUR"
    • addedInput schema / properties / netDebtBridge / properties / nonOperatingAssets / description
      Added value: +"Non-operating assets in EUR"
    • addedInput schema / properties / netDebtBridge / properties / totalFinancialDebt / description
      Added value: +"Total financial debt in EUR"
    • addedInput schema / properties / waccParams / description
      Added value: +"WACC cost of capital inputs"
  2. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint and destructiveHint=false, so the 'pure calculation, side-effect free' phrasing is largely redundant, though it usefully frames determinism. The description goes beyond annotations by spelling out the exact return object, which matters for a tool with no output schema. It omits one meaningful behavioral caveat: no warning that a terminal growth rate at or above WACC breaks the Gordon Growth denominator, nor any note on validation failures for the minimum two forecast periods.

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?

The bracketed scope note, 'Usage:' and 'Returns:' labels front-load the important information and make the block scannable. The middle sentence is a long laundry list of model components, and the return keys are partly restated in prose ('implied share price') and again in the JSON shape, which is minor redundancy rather than bloat.

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?

For a nested-object, seven-parameter financial engine with no output schema, the description does the right things: it names the model family, enumerates outputs including the sensitivityMatrix structure, and disambiguates from siblings. It falls short only on edge-case behavior — the Gordon Growth g-versus-WACC constraint and what happens when fewer than two cash-flow periods are supplied are left unstated.

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

Parameters3/5

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

Schema description coverage is 100% and every field, including the units convention (0.035 = 3.5%) and the example values, is already documented in the schema. The description adds no parameter-level meaning beyond that, such as interaction between equityWeight and debtWeight or how midYearDiscounting shifts the terminal value timing. Baseline 3 is appropriate when the schema carries the full parameter burden.

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 opens with a specific verb-and-resource framing ('Discounted Cash Flow (DCF) enterprise valuation model') and enumerates the exact computations performed (CAPM cost of equity, after-tax cost of debt, WACC, Gordon Growth terminal value, net debt bridge, sensitivity matrix). It explicitly separates itself from 'corporate_default_predictor' and 'financial_trend_anomaly', so an agent can route correctly without opening the 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?

There is an explicit 'Usage:' line stating when to use the tool ('calculate intrinsic Enterprise Value, Equity Value, and implied share price from forecast cash flows') and a 'Do NOT use for...' clause naming two concrete alternatives with their domains. Both the positive and negative selection conditions are stated, leaving nothing to inference.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources