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

TableJSON Schema
NameRequiredDescriptionDefault
pairYesCurrency pair in BASE/QUOTE format, e.g. "EUR/USD"
sideYes
stopPriceYes
entryPriceYes
targetPriceYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already establish this is a safe, closed-world read, and the description goes further by disclosing output semantics: ratio is a raw number, not a verdict, and is null in two distinct conditions (stop at entry, validSetup false). It does not state units beyond pips or formatting of the ratio.

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?

Front-loads the core computation, then the null-ratio caveats, then the return list. Dense but every clause carries information; only the trailing "Returns:" enumeration is somewhat redundant.

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 does the work of naming the return fields (riskPips, rewardPips, validSetup, ratio) and explaining the null cases. Adequate for a 5-param calculator; a few numeric-format details are the only missing piece.

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 only 20% (only pair is documented), so the description must carry the load. It usefully explains how stopPrice/targetPrice relate to entryPrice for a given side via the validSetup discussion, but gives no detail on price format, quote convention, or precision for the numeric fields.

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?

Names a precise verb+resource: computes risk/reward distance in pips from entry, stop and target, plus the ratio. The forex/pips framing implicitly separates it from the generic workflow.run_risk_reward sibling, but that differentiation is never made explicit.

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 a concrete routing cue ("what's my risk/reward on this setup?") and a strong precondition: check validSetup before trusting the ratio, since ratio is null when the stop sits at entry or the stop/target are on the wrong side. It stops short of naming alternative siblings for related questions (e.g. pip value, position sizing).

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.