Skip to main content
Glama

update_hl_copy_trade_settings

Destructive

Modify settings of an existing Hyperliquid perpetual copy trade while preserving omitted fields; use it to fix invalid copyMode or oppositeCopy configurations.

Instructions

Change settings of an existing HL perp copy trade. Never deletes and never pauses/resumes. Reads the current config first; omitted fields keep their current values. Configs created by SDK <= 4.12 may hold an invalid copyMode (e.g. 416/480) and oppositeCopy=true; pass copyMode, fixedAmountCostPerOrder and oppositeCopy explicitly to repair them.

Input Schema

NameRequiredDescriptionDefault
apiKeyNoAPI key
userIdNoControl wallet address
copyModeNo1 = fixed USD per order, 2 = proportion
accountRefNoConnected account from gdex_connect. Supplies session key, wallet address, API key and session data so no secret is passed in chat
copyTradeIdYesCopy trade ID (from get_hl_copy_trade_list)
lossPercentNoStop-loss % (> 0, < 100)
oppositeCopyNoTrade opposite to the trader
traderWalletNoNew trader wallet to follow
copyTradeNameNoNew label
profitPercentNoTake-profit % (> 0)
sessionPrivateKeyNoSession private key
fixedAmountCostPerOrderNoUSD amount (mode 1) or ratio (mode 2)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv5.1.0

TDQS

A4.4/5.0
Behavior4/5

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

Adds meaningful behavior beyond annotations: it reads current config first, preserves omitted fields, and does not delete or pause/resume. The SDK repair note is valuable context for a mutation tool, though it does not cover authorization needs or whether changes affect live positions.

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

Conciseness5/5

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

Front-loaded with the core action, then exclusions, merge behavior, and repair guidance in four tight sentences. Every sentence adds operational value without repetition.

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?

Given 12 parameters, mutation annotations, and no output schema, the description covers the most important operational behavior, exclusions, and legacy repair case. It leaves minor gaps around auth/accountRef expectations and the exact result shape, but remains sufficiently complete for correct invocation.

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 earns extra credit by explaining merge semantics for omitted fields and by naming copyMode, fixedAmountCostPerOrder, and oppositeCopy as the explicit repair trio for invalid legacy configs.

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?

States a specific verb and resource: "Change settings of an existing HL perp copy trade." It also distinguishes this from delete/pause/resume operations by explicitly saying it never performs those actions, so an agent can separate it from key siblings.

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?

Clearly indicates this is a settings-change operation and explicitly excludes delete and pause/resume use cases. It also gives a concrete repair scenario, though it does not explicitly route pause/resume/delete callers to the named sibling tools.

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