Skip to main content
Glama

create_hl_copy_trade

Destructive

Set up a Hyperliquid perpetual copy trade to mirror a trader's long/short positions, with configurable risk and profit targets.

Instructions

Create a new HL perp copy trade. Copies a trader's long/short perpetual positions.

Input Schema

NameRequiredDescriptionDefault
apiKeyNoAPI key for AES encryption
userIdNoControl wallet address
copyModeYes1 = Fixed USD per order, 2 = Proportion of trader size
accountRefNoConnected account from gdex_connect. Supplies session key, wallet address, API key and session data so no secret is passed in chat
lossPercentYesStop-loss percentage (> 0, < 100)
oppositeCopyNoShort when trader goes long
traderWalletYesEVM address of the trader to copy
copyTradeNameYesHuman-readable label
profitPercentYesTake-profit percentage (> 0)
sessionPrivateKeyNoSession private key from sign-in
fixedAmountCostPerOrderYesUSD amount (mode 1) or ratio (mode 2)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv4.12.0
    • addedInput schema / properties / accountRef
      Added value: +{
      +  "description": "Connected account from gdex_connect. Supplies session key, wallet address, API key and session data so no secret is passed in chat",
      +  "type": "string"
      +}
    • changedInput schema / required
      Previous value: -[
      -  "apiKey",
      -  "userId",
      -  "sessionPrivateKey",
      -  "traderWallet",
      -  "copyTradeName",
      -  "copyMode",
      -  "fixedAmountCostPerOrder",
      -  "lossPercent",
      -  "profitPercent"
      -]New value: +[
      +  "traderWallet",
      +  "copyTradeName",
      +  "copyMode",
      +  "fixedAmountCostPerOrder",
      +  "lossPercent",
      +  "profitPercent"
      +]
  2. First observedv4.11.3

TDQS

C2.9/5.0
Behavior2/5

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

Annotations already declare destructiveHint=true and openWorldHint=true, so the risk profile is known. The description adds no behavioral context beyond them: it does not say that this begins live copying and commits funds, that credentials (accountRef/apiKey/sessionPrivateKey) are required, or whether the trade can be edited afterward. For a destructive mutation with 11 parameters, that is a meaningful gap.

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 short sentences, front-loaded with the action and resource. The second sentence is mildly redundant with 'copy trade' in the name but does add the long/short perpetual qualifier, so it earns most of its place.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a destructive, open-world creation tool with 11 parameters, no output schema, and auth-via-accountRef flow, the description omits the setup path (gdex_connect / sign-in), confirmation semantics, and what happens after creation. It names the operation but leaves an agent under-informed about safe invocation of a high-consequence call.

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 all 11 parameters including copyMode, lossPercent, profitPercent, oppositeCopy, and accountRef are documented in the schema itself. The description adds only the general notion of long/short copying, which loosely maps to oppositeCopy but explains nothing about mode semantics or risk percentages. Baseline 3 is appropriate when the schema does the heavy lifting.

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?

States a specific verb and resource ('Create a new HL perp copy trade') and clarifies with 'Copies a trader's long/short perpetual positions,' which distinguishes it from the spot-oriented create_copy_trade sibling by naming the HL perp domain. It does not explicitly say how it differs from create_copy_trade or update_hl_copy_trade, leaving the agent to infer scope from the 'HL perp' qualifier.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no guidance on when to use this versus create_copy_trade, update_hl_copy_trade, or the related pause/resume tools, and no prerequisites are stated. The agent must discover on its own that this is the creation path for a new perp copy-trade subscription rather than a modification of an existing one.

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

Deploy Server

Other Tools