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

NameRequiredDescriptionDefault
mmrNoMaintenance margin rate (default 0.005)
sideYesTrade direction: "long" or "short"
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. Changed1 schema field changed
    • addedInput schema / properties / side / description
      Added value: +"Trade direction: \"long\" or \"short\""
  2. Added

TDQS

A4.1/5.0
Behavior5/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false and a closed world, so the safety profile is covered. The description goes well beyond that by explaining the exact semantics of key outputs: margin_added is cash/margin at this leverage rather than full notional, risk_penalty_pct is measured against the fresh-entry alternative, and liquidation_before_stop means the exchange force-closes before the stop fires. That is exactly the extra behavioral context the annotations cannot supply.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

It is front-loaded correctly, opening with the purpose and closing with usage triggers, and every clause carries information. But the output-explanation passage is a single sprawling multi-clause sentence dense with em-dashes that is harder to parse than necessary; it would read better as a short bulleted field list.

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?

There is no output schema, so the description rightly carries the full burden of explaining return values, and it names every notable returned field (blended average, liquidation, breakeven before/after, margin_added, the three risk figures, risk_penalty_pct, liquidation_before_stop) with meaning attached. For a computation tool with 11 documented parameters this is sufficient for correct invocation.

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 the parameter contract is fully documented in the structured data and the baseline is 3. The narrative adds interpretive meaning (e.g. add_price doubles as today's price, margin_added is not notional, inverse denomination in base coin), but most of this concerns outputs rather than the 11 input parameters themselves.

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 specific verb and resource: it is a 'should-I-average-down check' that compares adding at a worse price against buying the same total size fresh. That is a concrete, agent-readable purpose. It does not, however, differentiate itself from the close siblings workflow.run_average_entry, primitive.average_entry, or run_dca_entry, which an agent could easily confuse with this one.

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-facing triggers ('should I add to this losing position?' / 'what does averaging down actually cost me here?') and frames the internal alternative it weighs (fresh entry at add_price). No when-NOT-to-use guidance or tool-level alternative (e.g. use run_average_entry for the plain blended price) is offered, so it stops short of a 5.

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.