Skip to main content
Glama

ForexDemo.com

Account Survival Calculator

calculate_account_survival
Read-onlyIdempotent

The chance that a trading account loses a set share of its money (risk of ruin) within a number of trades, from the win rate, the average win and the risk per trade. Same calculation as the Account Survival Calculator page at https://forexdemo.com/account-survival-calculator.html. Every input is optional unless marked required; left-out inputs use the page's defaults, which are listed in the reply.

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": {
      "winRate": "<winRate>",
      "reward": "<reward>"
    },
    "name": "calculate_account_survival"
  }
}

Input Schema

NameRequiredDescriptionDefault
riskNoRisk per trade in percent. Give 2 for 2%.
ruinNoRuin level: the share of the account lost that counts as ruin. Give 2 for 2%.
rewardYesAverage win as a multiple of the risk, such as 1.5.
targetNoOptional profit target in percent. Give 2 for 2%.
tradesNoNumber of trades to look ahead.
winRateYesWin rate in percent. Give 2 for 2%.
riskBaseNocurrent: risk is a share of the current balance. start: of the starting balance.current
ruinTypeNoWhere the ruin level is measured from: start or peak.start

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive, and closed-world, so the safety profile is covered. The description adds genuine behavioral context beyond that: omitted inputs fall back to the page's defaults, and those applied defaults are echoed back in the reply, which lets the agent reason about the result without a second call. It does not state the shape or scale of the returned probability, which is the main remaining gap.

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?

Three sentences: purpose first, reference second, default-handling rule third — well front-loaded with no filler. The external URL is the only slightly extraneous element, but it serves as a definitional anchor rather than padding.

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 8-parameter, no-output-schema calculator, the description covers what it computes, how inputs may be omitted, and that applied defaults are returned. What remains thin is the return value itself — whether the result is a percentage or a 0–1 probability, and how the optional target parameter affects output — but with no output schema and full parameter coverage this is close to sufficient.

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

Parameters4/5

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

Schema description coverage is already 100%, including per-parameter defaults and enum meanings for riskBase and ruinType, so the baseline is 3. The description contributes an additional cross-cutting rule — every input is optional unless marked required, and defaults come from the reference page and are reported back — which meaningfully changes how an agent should populate the two required fields versus the six optional ones.

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 opens with a specific computation — the probability that an account loses a set share of its money (risk of ruin) over a number of trades — and lists the driving inputs (win rate, average win, risk per trade). An agent can distinguish this from related siblings such as calculate_drawdown or calculate_kelly by the 'risk of ruin over N trades' framing. It stops short of explicitly naming which sibling to prefer.

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 tie to a specific Account Survival Calculator page gives a concrete usage anchor, and the rule about optional vs required inputs tells the agent it can call with just two parameters. However, there is no guidance on when to choose this over calculate_drawdown, calculate_kelly, or calculate_win_rate, and no exclusions are stated, so the usage guidance is implied rather than explicit.

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