Skip to main content
Glama

ForexDemo.com

Futures Calculator

calculate_futures
Read-onlyIdempotent

Tick value, the value of a one-point move and the profit or loss of a trade for CME Group futures such as ES, MES, NQ, MNQ, CL, GC and 6E. Same calculation as the Futures Calculator page at https://forexdemo.com/futures-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

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "contract": "<contract>"
    },
    "name": "calculate_futures"
  }
}

Input Schema

NameRequiredDescriptionDefault
feeNoOptional fee per contract, in US dollars.
exitNoExit price (mode prices).
modeNoprices: profit or loss from entry and exit prices. move: value of a move. dollars: the move that makes a dollar amount.prices
sideNobuy (long) or sell (short).buy
stopNoOptional stop price (mode prices).
entryNoEntry price (mode prices).
amountNoDollar amount (mode dollars).
contractYesContract symbol, or custom with tickSize and tickValue.
feeBasisNoside or round trip.side
moveSizeNoSize of the move (mode move).
moveUnitNoUnit of moveSize: move (the contract's own point, pip or dollar step) or ticks.move
tickSizeNoCustom contract only: tick size.
contractsNoNumber of contracts.
tickValueNoCustom contract only: tick value in US dollars.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, destructiveHint=false and openWorldHint=false, so the safety profile is fully covered structurally. The description adds one genuinely behavioral detail — that unspecified inputs use the referenced page's defaults and that those defaults are echoed in the reply — but says nothing about result shape, precision, or how the three modes differ in output, and the external URL is provenance rather than behavior.

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 computation and contract list, followed by provenance and then the most operationally useful rule about optional inputs. The external-page sentence is somewhat expendable, but nothing is padded or buried.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 14-parameter, three-mode calculator with no output schema, the description covers the input contract adequately via the schema but leaves the mode-specific input requirements and the shape of returned results unexplained beyond the defaults echo. It is workable but stops short of what an agent needs to construct a correct non-trivial call without reading the schema closely.

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% and five parameters carry enums with inline explanations (mode, side, feeBasis, moveUnit), so the schema already does the semantic work. The description adds only the blanket rule that all inputs except 'contract' are optional and default-filled, without clarifying mode-dependent requirements like entry/exit for 'prices' or amount for 'dollars'. Baseline 3 is appropriate.

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 opens with a specific enumeration of what is computed (tick value, one-point move value, trade P&L) and scopes it to named CME contracts (ES, MES, NQ, MNQ, CL, GC, 6E). That is a clear verb+resource statement an agent can match to a user request, but it never distinguishes itself from the close sibling calculate_futures_contracts or the other calculate_* calculators.

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?

Useful context is given that only 'contract' is required and that omitted inputs fall back to page defaults, which implies a call-with-partial-inputs workflow. However, there is no explicit when-to-use guidance and no routing to alternatives such as calculate_futures_contracts or calculate_pip, so the agent must infer which calculator applies from the purpose statement alone.

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