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

TableJSON Schema
NameRequiredDescriptionDefault
pairYesCurrency pair in BASE/QUOTE format, e.g. "EUR/USD"
sideYes
entryPriceYes
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. Added

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare a read-only, non-destructive, closed-world calculation, and the description adds real behavioral context beyond that: commission is per standard lot in the quote currency and the commission-in-pips result is independent of position size by construction. It also previews the return shape. Does not discuss error cases or assumptions on spread handling, keeping it below 5.

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 definition, then the domain nuance, then a 'Returns:' list. The commission-scaling sentence is dense but earns its place by explaining why the pip figure is size-independent. Slightly overpacked but no filler.

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?

No output schema exists, so the description compensates by naming the returned fields (pipSize, commissionPips, totalCostPips, breakevenPrice). Inputs are adequately framed. Complete enough to call correctly, though edge cases (e.g. missing commission default behavior) are only implied.

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?

With 60% schema coverage, the description usefully explains the semantics of commissionPerLotRoundTrip (per standard lot, pair's quote currency, default of 0 implied) and how it interacts with lot size. It adds meaning over the bare schema. Schema already documents pair, spreadPips, and the side enum, so it does not need to repeat those.

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: computes forex breakeven price accounting for spread and round-trip commission, quantified in pips and price. This clearly separates it from generic computation siblings, though it never names a specific sibling (e.g. run_forex_pip_value or run_breakeven_planning) to disambiguate.

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: 'Use when user asks where's my true breakeven after spread and commission?'. This is clear usage context, but there are no exclusions or stated alternatives among the many run_forex_* / breakeven siblings.

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.