Skip to main content
Glama

TradingCalc MCP: Options, Forex, Risk Stats, Prediction Markets, On-Chain & Crypto Futures

Forex Risk Reward

workflow.run_forex_risk_reward
Read-only

Risk and reward distance in pips from entry/stop/target, and the resulting ratio (reward/risk): a raw number, not a verdict. ratio is null when the stop sits exactly at entry (no risk distance), and also when validSetup is false (stop/target on the wrong side of entry for the given side, e.g. a long with its stop above entry) - check validSetup before trusting the ratio. Use when user asks "what's my risk/reward on this setup?". Returns: riskPips, rewardPips, validSetup, ratio.

Input Schema

NameRequiredDescriptionDefault
pairYesCurrency pair in BASE/QUOTE format, e.g. "EUR/USD"
sideYesTrade direction: "long" or "short"
stopPriceYesStop-loss price, same quote convention as the entry price
entryPriceYesEntry price in the pair's own quote terms, e.g. 1.0850 for EUR/USD
targetPriceYesTake-profit price, same quote convention as the entry price

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changed
    • addedInput schema / properties / entryPrice / description
      Added value: +"Entry price in the pair's own quote terms, e.g. 1.0850 for EUR/USD"
    • addedInput schema / properties / side / description
      Added value: +"Trade direction: \"long\" or \"short\""
    • addedInput schema / properties / stopPrice / description
      Added value: +"Stop-loss price, same quote convention as the entry price"
    • addedInput schema / properties / targetPrice / description
      Added value: +"Take-profit price, same quote convention as the entry price"
  2. Added

TDQS

A4.5/5.0
Behavior5/5

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

Beyond the readOnly/non-destructive annotations, it discloses non-obvious output behavior: ratio is null when stop equals entry and when validSetup is false, with a concrete example (a long with its stop above entry). That pre-empts a real misinterpretation an agent would otherwise make.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loads the computed quantity, then the null-edge cases, then the trigger, then the return fields. Every sentence carries information; the "a raw number, not a verdict" clause usefully clarifies output semantics rather than padding.

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

Completeness5/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 supplies the return field list (riskPips, rewardPips, validSetup, ratio) and the conditions under which ratio is null. Combined with a fully documented input schema and safe-read annotations, an agent has everything needed to call and interpret this 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 description coverage is 100%, so all five parameters are already documented (including the BASE/QUOTE convention and side enum). The description adds only conceptual reference to entry/stop/target and no new per-parameter syntax or constraint, so the baseline 3 applies.

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 specific computation (risk/reward distance in pips from entry/stop/target plus the reward/risk ratio) on a specific resource (forex setup). It is clearly separable from generic siblings like workflow.run_risk_reward and from adjacent forex tools such as run_forex_pnl or run_forex_pip_value.

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

Usage Guidelines4/5

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

Gives an explicit trigger phrase ("Use when user asks 'what's my risk/reward on this setup?'") and a precondition (check validSetup before trusting the ratio). It does not name or exclude alternative siblings, so the when-not guidance is absent, but the context is clear.

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.