Skip to main content
Glama

Liquidation price of a leveraged position

liquidation_price
Read-only

Use this when someone asks at what price their own leveraged long or short would be liquidated. The price at which a leveraged long or short would be liquidated, from entry price and leverage, with isolated margin. Name a coin to use its live price as the entry and to get its funding rate and the heaviest levels on that coin's liquidation map beside the answer, so the position can be judged against where the crowd would be closed. Answers "where is my liquidation price on a 20x long from 60,000" and "how far is liquidation on a 10x ETH short opened now".

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": {
      "leverage": "<leverage>"
    },
    "name": "liquidation_price"
  }
}

Input Schema

NameRequiredDescriptionDefault
coinNoTicker of one of the sixty followed coins, e.g. BTC
sideNolong when left out
entryNoEntry price in dollars. Leave out to use the coin's live price
leverageYesFor example 10 for 10x
maintenance_margin_pctNoMaintenance margin in percent; 0.4 when left out

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / coin / description
      Previous value: -"Ticker of one of the twenty followed coins, e.g. BTC"New value: +"Ticker of one of the sixty followed coins, e.g. BTC"
  2. Added

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already cover read-only, open-world, non-destructive behavior, but the description adds useful context: it assumes isolated margin, uses a named coin's live price as entry, and returns supplementary funding rate plus heaviest liquidation-map levels. It still does not spell out output format or failure cases such as omitting both coin and entry, so it is not a 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?

The text is front-loaded with usage guidance and includes helpful examples. However, the second sentence partially restates the first ('the price at which a leveraged long or short would be liquidated'), and the extra-output clause is dense.

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?

For a read-only calculation tool with full schema coverage and no output schema, the description supplies the key assumptions, optional coin effects, entry behavior, and examples. It leaves some edge-case behavior and exact return structure unstated, so it is complete but not exhaustive.

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?

Schema coverage is 100%, so the baseline is 3; the description adds meaningful semantics for coin (live price entry plus funding and map context) and the entry/leverage interaction. It does not elaborate maintenance_margin_pct or the side default beyond what the schema already provides, preventing a 5.

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 a precise calculation: the liquidation price for a user's leveraged long or short, with isolated margin, from entry price and leverage. It also distinguishes this personal-position calculation from broader liquidation-map use by saying the coin's heaviest liquidation-map levels appear beside the answer rather than being the main result.

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 an explicit trigger ('Use this when someone asks at what price their own leveraged long or short would be liquidated') and two concrete query examples. It does not state exclusions or name a sibling alternative for general liquidation-map browsing, so it falls short of the highest tier.

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