Skip to main content
Glama

Autonomous Base M2M Compute Gateway

compute_quant_risk

Computes exact Kelly fraction, half-Kelly allocation, EV & AMM impermanent loss.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "compute_quant_risk"
  }
}

Input Schema

NameRequiredDescriptionDefault
demoNo
oddsNo
win_probNo
price_ratioNo
bankroll_usdNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

C2.7/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden, yet it says nothing about whether this is a pure stateless calculator, whether results are persisted, or how errors from missing inputs are handled. The word "exact" hints at precision of computation but gives no operational context, and the meaning of the unexplained "demo" parameter is left entirely opaque.

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?

One short, front-loaded sentence with no filler or repetition. It is dense rather than bloated, though the bundling of four distinct calculations into a single clause reduces readability slightly.

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

Completeness2/5

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

A five-parameter computational tool with zero annotation coverage, zero schema descriptions, and no output schema leaves the description as the only documentation, and it does not identify input requirements or output shape. For a multi-mode calculator, this is materially incomplete.

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

Parameters2/5

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

Schema description coverage is 0%, so the description must compensate and largely fails: it never mentions odds, win_prob, price_ratio, bankroll_usd, or demo. At best the listed outputs imply that win_prob/odds drive Kelly and EV and that price_ratio drives impermanent loss, but that mapping is inferred rather than stated, and two parameters have no explanation at all.

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?

"Computes" plus a named set of outputs (Kelly fraction, half-Kelly allocation, EV, AMM impermanent loss) tells an agent exactly what domain of math this tool performs. It stops short of distinguishing the bundled modes from one another, but the sibling tools are unrelated domains, so disambiguation is not a real need.

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

Usage Guidelines2/5

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

There is no statement of when to use this tool, no prerequisites, and no indication of which inputs are needed for which of the four bundled calculations. An agent must guess whether it can request only EV without supplying price_ratio, for example.

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