Skip to main content
Glama

Leash

Hyperliquid trade plan

hl_trade_plan
Read-onlyIdempotent

Pure position planning for a Hyperliquid perp: size from risk (riskUsd ÷ |entry − stop|) or from sizeUsd/size, notional, margin, R multiple to take-profit, estimated liquidation price, maxLeverage and size-decimals checks. Leash does not place Hyperliquid orders. Place it yourself in Hyperliquid or through an agent key you control.

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": {
      "coin": "<coin>",
      "side": "<side>",
      "stopPrice": "<stopPrice>",
      "leverage": "<leverage>"
    },
    "name": "hl_trade_plan"
  }
}

Input Schema

NameRequiredDescriptionDefault
coinYesCoin, e.g. 'BTC'
sideYes
sizeNo
riskUsdNo
sizeUsdNo
leverageYes
stopPriceYes
entryPriceNo
takeProfitPriceNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior3/5

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

The annotations already declare readOnlyHint=true and idempotentHint=true, and the description is consistent with them ('Pure position planning', 'does not place orders'), so no contradiction. It adds useful context about the guardrail checks performed (maxLeverage, size decimals). However it never states what happens when optional fields like entryPrice are omitted (presumably mark price is fetched — openWorldHint is set), nor what the response contains or how invalid plans are reported.

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?

Two sentences, front-loaded with the core identity before the list of computed outputs, and the second sentence is a high-value safety boundary rather than filler. The formula-and-term packing is dense and reads like a spec sheet, but no sentence is wasted.

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?

Given 9 parameters, no output schema and near-zero schema descriptions, the definition does unusually well on the compute side by naming the outputs (notional, margin, R multiple, liquidation price, checks). It is still incomplete on input precedence, default entry price behavior, and error/failure semantics for a planning tool whose whole value is numeric output.

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 only 11% (only 'coin' is documented) across 9 parameters, so the description must carry most of the burden. It does add real semantics for riskUsd via the formula 'riskUsd ÷ |entry − stop|' and links sizeUsd/size, leverage and takeProfitPrice to outputs (R multiple, maxLeverage check), but side, stopPrice units, and the precedence among size/riskUsd/sizeUsd remain unexplained.

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?

Opens with a specific verb+resource ('Pure position planning for a Hyperliquid perp') and enumerates exactly what the plan computes: risk-based sizing, notional, margin, R multiple, liquidation price, leverage and size-decimal checks. It also explicitly distinguishes itself from order placement ('Leash does not place Hyperliquid orders'), which separates it from execution-oriented tools in a way the sibling list alone cannot.

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?

Gives clear context for using the tool (you want a plan, not an order) and an explicit exclusion with the alternative path: 'Place it yourself in Hyperliquid or through an agent key you control.' It also hints at the two sizing routes (risk-based vs. sizeUsd/size). It does not say which sizing input wins when several are supplied, nor when to skip planning.

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