Skip to main content
Glama

finance_wacc

Read-only

WACC Calculator (CAPM) — Weighted average cost of capital, offline. Required: equity= (market value of equity), debt= (0 if none), cost_of_debt= (pre-tax %), beta= (or pass cost_of_equity= % instead of beta). Optional: rf= risk-free % (default 4.5 - pass today's 10-year Treasury yield), erp= equity risk premium % (default 5.5), size_premium=, country_risk_premium=, tax_rate= % (default 21). Returns capital weights, CAPM cost of equity, after-tax cost of debt, WACC, levered and unlevered (Hamada) beta, ERP sensitivity, flags and the assumptions used. Feed waccPct into /v1/finance/dcf as discount=. Price: $0.002 USDC (Base, via x402).

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": {
      "equity": "<equity>",
      "debt": "<debt>",
      "cost_of_debt": "<cost_of_debt>",
      "beta": "<beta>"
    },
    "name": "finance_wacc"
  }
}

Input Schema

NameRequiredDescriptionDefault
betaYes1.1
debtYes200000000
equityYes800000000
cost_of_debtYes6

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and destructiveHint=false, so the safety profile is covered; the description adds genuinely new behavior: it is 'offline', it costs $0.002 USDC on Base via x402 (a payment/auth prerequisite), which defaults are applied (rf 4.5, erp 5.5, tax_rate 21), and it returns assumption/flag metadata. It does not say what happens on bad input or if both beta and cost_of_equity are supplied.

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 the core definition, then required params, optional params, outputs, handoff, and price in a compact labeled format. Dense but nearly every clause carries information; the only wasted space is the optional-parameter list that the schema does not support.

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?

With no output schema, the description compensates well by enumerating returns (weights, CAPM cost of equity, after-tax cost of debt, WACC, levered/unlevered Hamada beta, ERP sensitivity, flags, assumptions). The notable gap is the schema/description divergence: the documented optional params and the cost_of_equity alternative are absent from the input schema, so an agent following the prose may attempt calls that fail validation.

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 nominally 100%, but the schema 'descriptions' are only bare example values ('1.1', '200000000', '6'), so the description carries real weight by defining equity as market value, cost_of_debt as pre-tax %, and beta vs cost_of_equity as alternatives. However, it also advertises optional inputs (rf, erp, size_premium, country_risk_premium, tax_rate, cost_of_equity) that do not exist in the schema, which creates a mismatch an agent cannot resolve from either source.

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?

Opens with a specific verb+resource ('WACC Calculator (CAPM) — Weighted average cost of capital') and names the exact downstream consumer (/v1/finance/dcf as discount=), which distinguishes it from the sibling finance_dcf. An agent can tell instantly that this computes a discount rate rather than performing the DCF itself.

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

Usage Guidelines4/5

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

Gives a concrete either/or selection rule ('beta= ... or pass cost_of_equity= instead') and states the downstream handoff ('Feed waccPct into /v1/finance/dcf'). No explicit when-not-to-use cases or exclusion against other finance calculators, so it stops short of 5.

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