Skip to main content
Glama
RiskOps MCP Suite

RiskOps MCP Suite

calculate_quant_risk_dcf

Read-only

Compute DCF intrinsic value per share, Half-Kelly position size, and Sharpe ratio or max drawdown from returns to replace LLM arithmetic with deterministic financial calculations.

Instructions

Deterministic institutional finance engine: computes 5-year DCF intrinsic value per share, Half-Kelly optimal position sizing, and Sharpe/Max Drawdown from periodic returns. Eliminates LLM arithmetic errors.

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": {
      "mode": "<mode>"
    },
    "name": "calculate_quant_risk_dcf"
  }
}

Input Schema

NameRequiredDescriptionDefault
modeYesCalculation mode: dcf, kelly, or portfolio_stats
waccNoDCF: Discount rate decimal (e.g. 0.095 for 9.5%)
fcfBaseNoDCF: Base annual free cash flow (in millions)
netDebtNoDCF: Net debt in millions (negative for net cash)
returnsNoportfolio_stats: Array of periodic decimal returns (e.g. [0.02, -0.01, 0.035])
winProbNoKelly: Win probability between 0 and 1 (e.g. 0.55)
sharesOutNoDCF: Diluted shares outstanding in millions
growthRateNoDCF: Annual FCF growth rate decimal (e.g. 0.12 for 12%)
winLossRatioNoKelly: Average win / average loss payoff ratio (e.g. 1.8)
periodsPerYearNoportfolio_stats: 252 daily, 52 weekly, 12 monthly
terminalGrowthNoDCF: Perpetual growth rate decimal (e.g. 0.025 for 2.5%)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.8/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and openWorldHint=false, so the safety and locality profile is covered. The description usefully adds that the computation is 'deterministic' and institutionally oriented, but says nothing about error behavior, input validation (e.g. probabilities outside 0-1, missing mode-specific params), or result units.

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?

Two compact sentences, front-loaded with the capability then the differentiator. No filler, no restatement of the tool name, and the enumerated outputs are the most useful content placed first.

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 an 11-parameter, three-mode calculator with no output schema, the description at least enumerates the three return values, which is the key completeness need. The residual gap is mode-to-parameter mapping (e.g. that kelly needs winProb/winLossRatio and portfolio_stats needs returns/periodsPerYear), which the agent must infer from schema descriptions.

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% with per-parameter examples and defaults, so the schema already carries the full burden. The description adds no parameter-level meaning beyond what is documented – notably, it does not say which of the 11 parameters are required for each of the three modes, which would be the highest-value addition.

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?

Names a specific verb ('computes') and three concrete resources: 5-year DCF intrinsic value per share, Half-Kelly position sizing, and Sharpe/Max Drawdown from periodic returns. The three outputs map cleanly onto the 'dcf', 'kelly', and 'portfolio_stats' modes, so an agent can tell exactly what it gets back 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 Guidelines3/5

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

There is an implicit routing cue in 'Eliminates LLM arithmetic errors' – use this engine instead of doing the math inline – but no explicit when-to-use/when-not, no prerequisites, and no statement of which parameters each mode requires. The mode enum conveys the three sub-uses, but that lives in the schema rather than the description.

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