Skip to main content
Glama

ProofNexa B2B and Quant Risk Gate

simulate_grid_martingale_survival

Run a deterministic 1-to-12 step Grid / Martingale drawdown survival simulation for Gold (XAUUSD) or FX pairs. Computes cumulative open lots, required margin at each grid level, floating drawdown in USD, and the exact adverse price movement in pips before triggering a 20% vs 0% broker margin stop-out.

Input Schema

NameRequiredDescriptionDefault
symbolNoTrading symbol for pip value and contract specification (e.g., "XAUUSD", "EURUSD", "USDJPY"). Defaults to "XAUUSD".XAUUSD
initialLotNoInitial Step-1 trade size in standard lots (minimum 0.01). Defaults to 0.01.
gridStepPipsNoFixed distance in pips between consecutive grid entries. Defaults to 25.
lotMultiplierNoMartingale lot multiplier applied at each subsequent grid step (e.g., 1.5x or 2.0x). Defaults to 1.5.
accountBalanceUsdNoStarting account balance in USD to test against multi-level grid drawdown. Defaults to 1000.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 schema fields changed
    • addedInput schema / properties / accountBalanceUsd / description
      Added value: +"Starting account balance in USD to test against multi-level grid drawdown. Defaults to 1000."
    • addedInput schema / properties / gridStepPips / description
      Added value: +"Fixed distance in pips between consecutive grid entries. Defaults to 25."
    • addedInput schema / properties / initialLot / description
      Added value: +"Initial Step-1 trade size in standard lots (minimum 0.01). Defaults to 0.01."
    • addedInput schema / properties / lotMultiplier / description
      Added value: +"Martingale lot multiplier applied at each subsequent grid step (e.g., 1.5x or 2.0x). Defaults to 1.5."
    • addedInput schema / properties / symbol / description
      Added value: +"Trading symbol for pip value and contract specification (e.g., \"XAUUSD\", \"EURUSD\", \"USDJPY\"). Defaults to \"XAUUSD\"."
  2. First observed

TDQS

A3.9/5.0
Behavior4/5

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

No annotations are supplied, so the description carries the full burden and does reasonably well: it declares the computation is deterministic, bounds it to 1-to-12 grid steps, and names the two stop-out thresholds (20% vs 0% broker margin) driving the result. It stops short of stating assumptions such as leverage, contract size, swap/commission treatment, or that it is a pure offline calculation with no live account access.

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?

Two sentences, front-loaded with the purpose before enumerating outputs; no filler. The second sentence is a dense enumeration of computed quantities, but every clause corresponds to a distinct output.

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?

With no output schema, the description must enumerate what comes back, and it does so concretely (lots, margin per level, USD drawdown, pips to stop-out). Remaining gaps are the response structure/field names and modeling assumptions, minor for a pure computation tool.

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 each of the five inputs already has a documented default and meaning; the description adds no parameter-level syntax or constraints. It does implicitly reveal that the 20%/0% margin stop-out levels are fixed rather than configurable, which is mildly useful context.

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

Purpose5/5

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

States a precise verb (run) and resource (deterministic 1-to-12 step Grid/Martingale drawdown survival simulation) with the supported instrument scope (XAUUSD or FX pairs). It also names the exact outputs (cumulative lots, margin, floating drawdown, stop-out distance), which cleanly separates it from the audit/calculation siblings.

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 modeled scenario implies when it applies (stress-testing a grid/martingale position against margin stop-out), but there is no explicit 'use this when...' clause and no routing versus the kelly/swap calculator sibling. Prerequisites and exclusions are left to inference.

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