Skip to main content
Glama

hl_enable_trading

Enable Hyperliquid trading for a managed wallet; run this one-time setup before placing outcome or HIP-3 orders.

Instructions

Enable HL trading for a managed wallet (one-time, required before outcome/HIP-3 orders). Pass apiKey, walletAddress (control address), sessionPrivateKey and the SDK builds the payload; a pre-built computedData is also accepted.

Input Schema

NameRequiredDescriptionDefault
apiKeyNo
accountRefNoConnected account from gdex_connect. Supplies session key, wallet address, API key and session data so no secret is passed in chat
computedDataNo
walletAddressNoCONTROL wallet address from sign-in
sessionPrivateKeyNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field 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"
      +}
  2. First observedv4.11.3

TDQS

A4/5.0
Behavior3/5

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

Annotations already declare the safety profile (readOnlyHint=false, destructiveHint=false, openWorldHint=true), so this is a known non-destructive write. The description adds that the call is one-time and that secrets may be supplied either directly or via a connected account (implying no secret in chat), which is useful. It does not describe failure modes, permissions, or what state changes on success.

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?

One dense sentence that front-loads the purpose and prerequisite before the parameter guidance. Slightly run-on with the semicolon clause, but every element (one-time, order gating, param list, computedData alternative) earns its place.

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 5-param setup tool with no output schema, the description covers intent and the two input paths but leaves gaps: which params are actually required, what the call returns, and what happens if it is invoked twice or on an unmanaged wallet. Adequate but not complete.

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?

With only 40% schema coverage, the description carries real weight: it enumerates apiKey, walletAddress (clarified as the control address), sessionPrivateKey, and states that pre-built computedData is an accepted alternative input path. That meaningfully supplements the schema, though it doesn't clarify required-vs-optional among the 5 params (schema lists 0 required).

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+resource ('Enable HL trading') for a specific target ('managed wallet'), and immediately qualifies it as one-time and required before outcome/HIP-3 orders. That scope plus the prerequisite framing lets an agent distinguish it from siblings like execute_spot or gdex_execute_trade.

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?

Explicitly says when to use it: one-time setup, required before outcome/HIP-3 orders. It does not name a preferred alternative or exclusion beyond that, but the trigger condition is stated clearly rather than implied.

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