Skip to main content
Glama

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

Forex Scenario

workflow.run_forex_scenario
Read-only

PnL across a range of hypothetical price moves (in pips, signed by actual price direction, not pre-adjusted for side), for a single forex position size, long or short. Use when user asks "what if price moves X pips in either direction?". Returns: scenarios[] (deltaPips, exitPrice, pnlQuote).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pairYesCurrency pair in BASE/QUOTE format, e.g. "EUR/USD"
sideYes
unitsYesPosition size in base-currency units
deltasPipsYesHypothetical price moves in pips, e.g. [-50, 0, 50]
entryPriceYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already establish read-only, non-destructive, closed-world behavior, so the safety profile needs no repetition. The description adds genuinely useful semantics the annotations cannot carry: the pip deltas are signed by actual price direction and are not pre-adjusted for side, plus the returned field shape. It stops short of describing edge cases or constraints on delta ranges.

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?

Three tight sentences: the core computation first, the trigger phrase second, the return shape last. Zero filler, and the sign-convention caveat is embedded where the agent will read it rather than buried.

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 present, the description usefully names scenarios[] and its fields, and it pins down the sign convention that would otherwise cause wrong calls. It omits any mention of pip definition per pair or limits on the delta list, which are minor given the pip-value siblings exist.

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 coverage is only 60%, so the description must compensate, and it does for the two riskiest parameters: it clarifies that deltasPips are raw signed moves and that a single side (long or short) applies per call. It does not address entryPrice or units beyond what the schema already states, leaving some coverage gap.

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?

States a specific computation (PnL across a range of hypothetical pip moves) for a specific resource (a single forex position, long or short), which an agent can distinguish from the many sibling workflow tools. It does not, however, explicitly contrast itself with the closest siblings such as run_forex_pnl or run_scenario_planning, so differentiation is left to inference.

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?

Provides a concrete trigger phrase ("what if price moves X pips in either direction?") that tells the agent when to reach for this tool. There is no explicit when-not guidance or named alternative (e.g., use run_forex_pnl for a single realized PnL), so routing among the dense set of forex siblings is only partially supported.

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.