Skip to main content
Glama

calculate_quant_finance_model

Runs quant finance models such as Kelly Criterion, AMM slippage, compound APY, and Black-Scholes to compute deterministic results from your numeric inputs on demand.

Instructions

Run a quant finance model: Kelly Criterion, AMM slippage, compound APY or Black-Scholes.

Cost: $0.002 USDC per call.
Freshness: computed on demand (deterministic, no staleness).
Inputs: calc_type - model name, for example 'kelly_criterion', 'amm_slippage', 'compound_apy' or 'black_scholes'; params - object with that model's numeric inputs, for example {"spot": 100, "strike": 105, "rate": 0.05, "volatility": 0.2, "years": 1} for Black-Scholes.

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": {
      "calc_type": "<calc_type>",
      "params": "<params>"
    },
    "name": "calculate_quant_finance_model"
  }
}

Input Schema

NameRequiredDescriptionDefault
paramsYes
calc_typeYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/5.0
Behavior4/5

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

With no annotations at all, the description carries the full burden and does disclose two operationally important traits: a per-call price of $0.002 USDC and that results are computed on demand and deterministic. It does not cover failure behavior for an unrecognized calc_type or malformed params, but the paid and stateless nature of the call is made clear.

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 labeled lines (Cost, Freshness, Inputs) front-load the key verb and put price before detail, and there is no filler. The input line is slightly dense with its run-on example object, but every sentence adds information.

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

Completeness3/5

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

An output schema exists, so return values need not be explained, and cost plus determinism are covered. For a tool whose only real ambiguity is a nested, model-dependent params object at 0% schema coverage, the description only fully specifies one of four models, leaving a meaningful gap before the agent can invoke it confidently.

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 0% and params is a free-form nested object with additionalProperties, so the description must compensate. It does this well for Black-Scholes by naming the exact keys (spot, strike, rate, volatility, years) and gives the calc_type vocabulary, but leaves the required numeric inputs for kelly_criterion, amm_slippage and compound_apy entirely undocumented, so an agent must guess for three of four models.

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

Purpose4/5

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

The first line states a specific verb and resource ('Run a quant finance model') and enumerates the four supported models, so the agent knows exactly what class of computation this performs. It stops short of differentiating itself from the nearby evaluate_math_or_quant_expression sibling, leaving the boundary to inference.

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?

The description implies usage by listing the accepted calc_type values with examples, which helps an agent pick a model. However, it gives no when-to-use/when-not guidance and never says when to prefer a general expression evaluator over this specialized model tool.

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