Skip to main content
Glama

Quant Arbitrage & Risk Calculator MCP

arb_stake_allocator

Compute exact multi-outcome (2..N) mutually exclusive arbitrage eligibility, fee-adjusted net implied probability sum, net edge %, equal-payout stakes, worst-case guaranteed net profit, and ROI %.

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": {
      "outcomes": "<outcomes>",
      "total_bankroll": "<total_bankroll>"
    },
    "name": "arb_stake_allocator"
  }
}

Input Schema

NameRequiredDescriptionDefault
fee_bpsNoDefault per-leg fee in basis points (100 bps = 1%).
fee_modeNoFee basis: 'payout' (on gross payout), 'profit' (commission on winning profit), or 'stake' (upfront fee out of deployed capital).payout
outcomesYes2..N mutually exclusive outcomes. Each leg specifies either decimal_odds (>1) or implied_prob (0..1), plus optional fee_bps.
total_bankrollYesTotal capital to deploy across all legs if arb exists.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.5/5.0
Behavior3/5

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

With no annotations, the description carries the full behavioral burden. It discloses the computed outputs and the equal-payout/worst-case-profit framing, which is useful context for a calculation tool. However, it does not state that the tool is non-mutating, side-effect-free, or how the results are returned.

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 definition is a single, front-loaded sentence with no filler. Every listed item maps to an output the agent will receive. It is dense but slightly run-on, keeping it from a 5.

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 a computation tool with no output schema, the description enumerates the key computed values clearly. Inputs are fully documented in the schema, and the description covers the main result categories. It stops short of explaining return structure or formatting.

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 100%, so the schema already documents all four parameters in detail. The description adds the 2..N mutually exclusive constraint and the fee-adjusted and equal-payout semantics, but these are largely implied by the schema. Baseline 3 is appropriate.

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 description names a specific verb ('Compute') and a precise resource: multi-outcome arbitrage eligibility, fee-adjusted implied probability sum, edge, stakes, profit, and ROI. An agent can tell this is an arbitrage stake calculator rather than an option greeks or Kelly sizer tool. It does not explicitly contrast itself with any sibling, so it falls short of a 5.

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?

Usage is implied by the resource name: use it when evaluating multi-outcome arbitrage opportunities. There is no explicit statement of when to prefer this tool over alternatives, nor any when-not conditions or prerequisites. Adequate but with clear gaps.

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