Skip to main content
Glama

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

Forex Breakeven

workflow.run_forex_breakeven
Read-only

Breakeven price for a forex position accounting for spread and round-trip commission, in pips and in price. Commission is quoted per standard lot (100,000 units) and expressed in the pair's own quote currency; because both commission and pip value scale with lot size, the commission-in-pips figure is independent of position size by construction. Use when user asks "where's my true breakeven after spread and commission?". Returns: pipSize, commissionPips, totalCostPips, breakevenPrice.

Input Schema

NameRequiredDescriptionDefault
pairYesCurrency pair in BASE/QUOTE format, e.g. "EUR/USD"
sideYesTrade direction: "long" or "short"
entryPriceYesEntry price in the pair's own quote terms, e.g. 1.0850 for EUR/USD
spreadPipsYesSpread at entry, in pips
commissionPerLotRoundTripNoRound-trip commission per standard lot, in the pair's own quote currency. Default 0 (pure-spread broker model).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 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\""
  2. Added

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already establish readOnlyHint=true, destructiveHint=false and openWorldHint=false, so safety is covered. The description adds genuine domain behavior: commission is per standard lot in the quote currency, and commission-in-pips is position-size invariant by construction. It does not discuss edge cases such as zero commission or non-standard lot conventions.

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?

Three sentences, front-loaded with the core purpose, then the commission/scale invariant, then the return key list. Dense but each sentence carries meaning; the mid-sentence derivation of size-independence is slightly verbose but earns its place by preventing unit errors.

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 and five parameters, the description compensates fully: it enumerates the returned keys (pipSize, commissionPips, totalCostPips, breakevenPrice) and explains the unit conventions of the inputs. An agent has everything needed to call and interpret the tool.

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 100%, so the baseline is 3. The description goes beyond the schema by explaining the semantics of commissionPerLotRoundTrip (per standard lot, in quote currency, default 0 pure-spread model) and why its pip conversion is size-independent, which helps an agent reason about the units rather than just passing numbers.

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 verb+resource: computing a forex position's breakeven price inclusive of spread and round-trip commission, in both pips and price. This is well differentiated from generic breakeven siblings by the 'forex' + 'commission' scope, but it never names the closest siblings (run_breakeven_planning, run_funding_breakeven) it could be confused with.

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 an explicit trigger phrase: 'Use when user asks "where's my true breakeven after spread and commission?"', which gives a clear context for invocation. It stops short of stating when NOT to use it or which alternative handles the simpler spread-only case, so routing among the many breakeven/pnl siblings is 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.