Skip to main content
Glama

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

Average Down

workflow.run_average_down
Read-only

Should-I-average-down check: for an already-open position, compares adding more at a worse price against the always-available alternative of buying the same final total size fresh at today's price. Returns the new blended average entry, liquidation price and breakeven (before vs. after), margin_added (the actual cash/margin required for the add at this leverage, not the full notional), and three risk figures at your stop-loss: existing_risk (what you already risk, before adding), pyramid_risk (what you'd risk after adding), and clean_entry_risk (what a fresh entry at add_price for the same total size would risk). risk_penalty_pct is how much MORE than that fresh-entry alternative you're risking - for any genuine average-down (add_price worse than existing_entry_price) pyramid_risk is provably always greater than clean_entry_risk. liquidation_before_stop is true when the new liquidation price sits at or beyond your own stop-loss, meaning the exchange would force-close the position before the stop-loss ever triggers. Use when user asks "should I add to this losing position?" or "what does averaging down actually cost me here?".

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
mmrNoMaintenance margin rate (default 0.005)
sideYes
add_sizeYesAdditional size being considered, same unit convention as existing_size
leverageYesLeverage multiplier
add_priceYesProposed price to add at - also treated as today's current price for the fresh-entry comparison
stop_lossYesStop-loss price (must be below add_price for a long, above it for a short - the position should already be closed otherwise)
contractTypeNolinear = USDT-margined (default), inverse = coin-margined. Risk figures come back denominated in the base coin for inverse.
fee_open_pctNoOpen fee rate (default 0.0002)
existing_sizeYesSize already held: base-asset quantity for linear, USD notional (contracts) for inverse
fee_close_pctNoClose fee rate (default 0.0005)
existing_entry_priceYesEntry price of the position already held

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.4/5.0
Behavior5/5

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

Annotations already declare readOnly/non-destructive behavior, but the description adds substantial behavioral context: it explains the outputs, the meaning of risk_penalty_pct, the provable relationship between pyramid_risk and clean_entry_risk, and the liquidation_before_stop condition. No contradiction with annotations.

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?

The purpose is front-loaded and the dense output explanations are relevant for a tool with no output schema. It is longer than ideal, but nearly every clause adds decision-useful semantics rather than filler.

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?

For an 11-parameter analytical workflow with no output schema, the description carries the return-value burden well: it names and explains the blended average, liquidation/breakeven, margin_added, risk figures, risk_penalty_pct, and liquidation_before_stop. Enough context is provided 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.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 91%, so parameter semantics are already well documented. The description adds only marginal context for add_price, stop_loss, and existing_entry_price, mostly repeating what the schema already says.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description names the exact decision-analysis purpose: comparing an average-down add against a fresh entry for the same final size. It specifies the inputs it reasons over and the metrics it produces, which clearly separates it from generic entry/sizing siblings.

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?

It gives explicit user-phrasing triggers ("should I add to this losing position?" and "what does averaging down actually cost me here?") and scopes the tool to already-open positions. It does not explicitly name sibling alternatives or state when not to use it.

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.