Skip to main content
Glama

ForexDemo.com

Forex Drawdown Calculator

calculate_drawdown
Read-onlyIdempotent

What a run of losing trades does to an account, the gain needed to win it back, how likely such a run is, and the chance of reaching a drawdown limit. Same calculation as the Forex Drawdown Calculator page at https://forexdemo.com/forex-drawdown-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

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": "calculate_drawdown"
  }
}

Input Schema

NameRequiredDescriptionDefault
riskNoRisk per trade in percent. Give 2 for 2%.
limitNoDrawdown limit in percent, such as a prop firm's. Give 2 for 2%.
lossesNoLosing trades in a row.
rewardNoAverage win as a multiple of the risk, such as 1.5.
tradesNoNumber of trades to look ahead.
balanceNoAccount balance.
winRateNoWin rate in percent, for the chance of a losing run. Give 2 for 2%.
currencyNoThe currency the trading account is held in.USD
riskBaseNocurrent: risk is a share of the current balance. start: of the starting balance.current
limitTypeNoWhere the limit is measured from: peak (highest balance), start (starting balance) or lock (trailing until it locks at the start).peak

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, non-destructive and closed-world, so the safety profile is fully covered. The description adds two genuinely new facts: the results match a specific published web page (useful for trusting the algorithm) and omitted inputs fall back to page defaults that are echoed in the response. It stops short of describing the structure or units of the returned figures, which matters given there is no output schema.

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, no filler, with the computed outputs front-loaded ahead of provenance and input rules. The opening sentence is a noun phrase rather than a verb-led statement of purpose, which slightly slows an agent scanning for what the tool does.

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 ten-parameter, all-optional calculator with no output schema, the description covers the four result concepts, the defaults rule, and the reference algorithm, which is enough to call it correctly. The remaining gap is that it does not say what units or shape the returned numbers take beyond the mention of defaults appearing in the reply.

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 defaults and enum meanings already documented for all ten inputs, so the schema carries the parameter burden. The description only adds the global rule that everything is optional and that defaults are surfaced in the reply. That is helpful framing but not new per-parameter meaning.

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 concretely enumerates what the tool computes: the impact of a losing streak on the account, the gain needed to recover, the likelihood of such a streak, and the probability of breaching a drawdown limit. That is far more specific than restating the name. It offers no differentiation from lookalike siblings such as calculate_account_survival or calculate_kelly, so an agent must infer the boundary.

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 pick this calculator over the other calculate_* tools, nor any when-not guidance or named alternative. The only guidance given is about optional inputs and defaults, which is parameter behavior rather than tool selection.

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