Skip to main content
Glama

Startup Valuation MCP Server

CAPM & Cost of Equity

valuation_capm
Read-onlyIdempotent

Estimate the cost of capital: standard CAPM, startup-adjusted CAPM with size and illiquidity premiums, portfolio beta from weighted asset betas, and WACC blending after-tax cost of equity and debt. Method selects the formula. Use to derive the discount rate that feeds valuation_time_value and DCF models; for cross-border rates add valuation_international. Parameters apply per method: capm needs risk_free_rate + beta + market_return; startup_capm adds size_premium and liquidity_premium; portfolio_beta needs weights + betas, which must be equal length; wacc needs equity_value + debt_value + cost_of_equity + cost_of_debt + tax_rate. Only method is required; all other parameters are method-dependent, so supply those the selected method names and omit the rest (defaults apply where defined). Rate and decimal inputs are fractions (0.10 = 10%); probability and weight lists are in [0,1] and sum to 1. Returns value, method, inputs, assumptions, chapter, formula_number and calculation steps; pure arithmetic — no I/O and no external calls — at full float precision, so a value can be fed into another method without rounding loss; round only for display. No auth and no rate limits. An unknown method, or a missing method-required parameter, returns an error instead of a value.

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": {
      "method": "<method>"
    },
    "name": "valuation_capm"
  }
}

Input Schema

NameRequiredDescriptionDefault
betaNoSystematic risk beta (market = 1.0).
betasNoAsset betas aligned with weights; typically 0.5–3.0 (market = 1.0).
methodYesFormula to apply. Options: capm = E(R) = Rf + β·(E(Rm) - Rf).; startup_capm = r = Rf + β·MRP + size premium + illiquidity premium.; portfolio_beta = βp = Σ wᵢ·βᵢ.; wacc = WACC = (E/V)·Re + (D/V)·Rd·(1 − T).
weightsNoPortfolio or factor weights, each in [0,1] and summing to 1 (same order as the paired value list).
tax_rateNoEffective tax rate as a decimal in [0,1].
debt_valueNoMarket value of debt, in currency units.
cost_of_debtNoPre-tax cost of debt Rd as a decimal.
equity_valueNoValue of equity offered, currency units.
size_premiumNoSmall-cap / size premium as a decimal.
market_returnNoExpected market return as a decimal (e.g. 0.10 for 10%).
cost_of_equityNoAfter-tax cost of equity Re as a decimal.
risk_free_rateNoRisk-free rate as a decimal (e.g. 0.04 for 4%).
liquidity_premiumNoIlliquidity premium as a decimal.
market_risk_premiumNoMarket risk premium as a decimal (e.g. 0.06).

Output Schema

NameRequiredDescriptionDefault
errorNoError message when the call fails.
stepsNoIntermediate steps for traceability.
valueYesComputed valuation or metric.
inputsNoEcho of the normalised inputs used.
methodNoFormula / method name that produced the result.
chapterNoSource textbook chapter.
assumptionsNoModelling assumptions applied.
formula_numberNoSource textbook formula number (e.g. '3.1').
defaults_appliedNoOptional parameters that were not supplied, so their documented defaults were used.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / liquidity_premium / default
      Previous value: -0New value: +0.03
    • changedInput schema / properties / size_premium / default
      Previous value: -0New value: +0.05
  2. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Annotations already declare readOnly/idempotent/closed-world, and the description adds substantially beyond them: pure arithmetic with no I/O or external calls, full float precision with no rounding loss when chaining methods, no auth and no rate limits, and explicit error behavior for an unknown method or missing method-required parameter.

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-loaded with purpose and method selection, then usage routing, then parameter mapping, then conventions and return/error behavior. It is dense and a few sentences are long run-ons, but no sentence is filler given the 14-parameter surface.

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?

For a 14-param tool with one required selector, the description covers what each method consumes, what is optional, numeric conventions, output shape (redundant but harmless given the output schema), and failure modes. Nothing an agent needs in order to call it correctly is missing.

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

Parameters4/5

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

Schema coverage is already 100%, so the baseline is 3; the description earns above that by mapping parameters to methods (capm needs risk_free_rate + beta + market_return, wacc needs five inputs, etc.), flagging the equal-length constraint on weights/betas, and stating fraction conventions. It stops short of covering every parameter (e.g., market_risk_premium vs. market_return interplay is left implicit).

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 ("Estimate the cost of capital") and enumerates the four formulas it applies: standard CAPM, startup-adjusted CAPM, portfolio beta, and WACC. It also distinguishes itself from siblings by naming valuation_time_value as the consumer and valuation_international as the cross-border add-on.

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 explicit routing: use this to derive the discount rate feeding valuation_time_value and DCF models, and add valuation_international for cross-border rates. The 'Method selects the formula' sentence tells the agent how to pick the right branch, which is the main selection decision for this tool.

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.