Skip to main content
Glama

ForexDemo.com

Pip Calculator

calculate_pip
Read-onlyIdempotent

What one pip is worth in the account currency for a Forex pair or gold at a given trade size, and optionally the profit or loss of a move in pips. Same calculation as the Pip Calculator page at https://forexdemo.com/pip-calculator.html. Every input is optional unless marked required; left-out inputs use the page's defaults, which are listed in the reply.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "calculate_pip"
  }
}

Input Schema

NameRequiredDescriptionDefault
pairNoCurrency pair or gold (XAU/USD). EURUSD and eur-usd are accepted too.EUR/USD
rateNoOnly needed when the account currency is not in the pair: the price of the market pair that converts it (for example the GBP/USD price for EUR/GBP in a USD account). Leave it out to use the example price shown on the page.
sizeNoTrade size, counted in sizeUnit.
goldPipNoGold only: the price change your broker calls one pip.0.01
currencyNoThe currency the trading account is held in.USD
moveUnitNoUnit of pipsMoved: pips, points (MetaTrader, 10 points = 1 pip) or, for gold only, dollars an ounce.pips
sizeUnitNoHow the size is given: standard (100,000 units), mini (10,000), micro (1,000), nano (100) lots, or units.standard
pipsMovedNoOptional price move to value. Negative for a loss.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already state that the tool is read-only, idempotent, non-destructive, and not open-world, so safety behavior is well covered. The description adds useful behavioral context: all inputs are optional unless marked required, omitted inputs use documented defaults, and negative pipsMoved represents a loss.

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?

The definition is three tight sentences with the core purpose front-loaded, followed by the reference calculation and defaults behavior. Every sentence adds useful information without repetition.

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?

Given eight fully documented parameters, strong annotations, and the absence of an output schema, the description is largely complete: it states the calculation, optional P/L behavior, defaults, and the source page. The main remaining gap is lack of sibling-tool routing guidance.

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 100%, so parameter meaning is already fully documented in the schema. The description adds the default-behavior rule and reinforces the pipsMoved loss convention, but it does not add syntax or interpretation details beyond the schema.

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?

The description states a precise calculation: pip value in account currency for a Forex pair or gold at a given trade size, plus optional profit/loss from a pip move. This is clearly more specific than a generic calculator, though it does not explicitly distinguish itself from sibling calculators such as calculate_profit.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage is implied by the description of pip value and optional move valuation, and it explains that omitted inputs use page defaults. However, it gives no explicit when-to-use guidance, exclusions, or alternatives versus the many sibling calculation tools.

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.

Resources