Skip to main content
Glama

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

Forex PnL

workflow.run_forex_pnl
Read-only

Profit or loss for a closed or hypothetical forex trade, in pips and in the pair's own quote currency, long or short. Use when user asks "what did I make/lose on this trade?" or "what would X pips be worth on Y lots?". Returns: pips (signed, positive favors the position taken), pnlQuote.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pairYesCurrency pair in BASE/QUOTE format, e.g. "EUR/USD"
sideYes
unitsYesPosition size in base-currency units
exitPriceYes
entryPriceYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.8/5.0
Behavior3/5

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

Annotations already cover the safety profile (readOnlyHint=true, destructiveHint=false, openWorldHint=false), so the bar is low. The description usefully adds return semantics (pips signed, positive favors the position taken) and output fields (pnlQuote), but says nothing about quote-currency conversion behavior or handling of open vs closed trades.

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?

Two tight sentences: the first defines the output and scope, the second gives usage triggers, then a terse returns clause. Front-loaded, zero waste, no repetition of schema.

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 appropriately names the return fields (pips, pnlQuote) and their sign convention, and covers required inputs conceptually. It is complete enough to call correctly, but the missing price-field format details and open-vs-closed trade handling leave a modest gap for a 5-param, fully-required 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 only 40% – pair and units are documented in the schema, while side, entryPrice, and exitPrice are bare. The description partially compensates by referencing 'X pips', 'Y lots', and 'pair's own quote currency', but adds no format or unit guidance for the price fields, so it neither fully covers the gap nor is irrelevant.

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 computed resource (forex PnL in pips and quote currency) with an explicit scope (closed or hypothetical trade, long or short). Distinguishes itself from sibling run_forex_pip_value by combining pips and money PnL, but never names a sibling to differentiate, so it falls short of a 5.

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 concrete when-to-use cues via example user phrasings ('what did I make/lose on this trade?', 'what would X pips be worth on Y lots?'). It does not, however, say when NOT to use it or route to alternatives like run_forex_pip_value or run_forex_risk_reward, which matters given the dense forex sibling cluster.

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.