Skip to main content
Glama
mutexa-labs

@mutexa/mcp

Official
by mutexa-labs

Plan a liquidation ladder

plan_ladder
Read-onlyIdempotent

Splits a Hyperliquid perp position into isolated slices so liquidation prices form a band, with optional alert-threshold sizing and fee/account cost previews.

Instructions

Split one Hyperliquid perp position into isolated slices whose liquidation prices form a band instead of one public line. Placement 'around' keeps the same capital as one position; 'beyond' puts no slice closer to price than the single position (more margin). Give slices, or alertThreshold to size every slice under your alert threshold. Optional cost preview when feeRate and accountCost are given. Uses the market's live margin tiers and mark.

Input Schema

NameRequiredDescriptionDefault
bandYesLeverage stagger across slices, 0..1
coinYesHyperliquid perp market name, for example BTC, ETH, kPEPE
seedNoSeed for the size variation (default 1)
sideYesPosition side
entryNoEntry price (default: current mark)
slicesNoNumber of slices
feeRateNoYour venue fee rate per fill, for example 0.00045
leverageYesTarget leverage of the whole position
notionalYesTotal position size in USD
placementYes
sizeJitterNoSize variation across slices, 0..1 (default 0: equal sizes)
accountCostNoYour cost per extra account in USD
alertThresholdNoYour alert threshold in USD; sets the slice count when slices is not given

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.1

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already establish read-only, idempotent, open-world, non-destructive behavior. The description adds useful context beyond them: it uses the market's live margin tiers and mark, and optionally previews costs when feeRate and accountCost are supplied.

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 description is compact and front-loaded: it defines the core behavior first, then explains placement, sizing alternatives, and optional cost preview. The sentences are dense but each contributes relevant information.

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 complex 13-parameter planning tool with no output schema, the description explains inputs and live-data behavior but does not say what the result contains, such as returned slice sizes, liquidation prices, or cost preview structure. That leaves a meaningful gap for correct invocation interpretation.

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 high at 92%, so the baseline would be 3. The description still adds meaningful semantics by explaining placement modes, alertThreshold-based slice sizing, and the optional cost-preview condition.

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 uses a specific verb and resource: splitting a Hyperliquid perp position into isolated slices whose liquidation prices form a band. It clearly distinguishes the tool's function from data-querying siblings like hl_markets or liq_price, though it does not explicitly name alternative tools.

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?

It explains parameter-level choices, such as placement 'around' vs 'beyond' and using slices vs alertThreshold, which implies how to use the tool. However, it gives no explicit guidance on when to choose this tool over siblings like liquidation_map or plan_loans.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.