Skip to main content
Glama

execute_spot

Destructive

Buy or sell spot assets on HyperLiquid using a private key; supports market or limit orders and account-based signing.

Instructions

Execute a spot trade directly on HyperLiquid with a private key.

Input Schema

NameRequiredDescriptionDefault
coinYesAsset symbol
sizeYesTrade size
isBuyYesTrue for buy, false for sell
priceYesPrice
isMarketNo
accountRefNoConnected account from gdex_connect. Supplies session key, wallet address, API key and session data so no secret is passed in chat
privateKeyNoWallet private key (hex)
builderFeeRateNo
builderFeeAddressNo

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: -[
      -  "privateKey",
      -  "coin",
      -  "isBuy",
      -  "price",
      -  "size"
      -]New value: +[
      +  "coin",
      +  "isBuy",
      +  "price",
      +  "size"
      +]
  2. First observedv4.11.3

TDQS

C2.9/5.0
Behavior3/5

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

Annotations already declare destructiveHint=true and openWorldHint=true, so the description's useful additions are limited to the fact that execution is direct/on-venue and requires a private key. It says nothing about irreversibility, fee handling (builderFeeRate), slippage or failure behavior, which matter for a destructive trade call.

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?

A single front-loaded sentence with no filler. It is efficient, though the terseness borders on under-specification for a destructive trading tool.

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?

With 9 parameters, two auth paths, no output schema and a destructive annotation, an agent still lacks guidance on order semantics (market vs limit), price handling for market orders, fees, and what the call returns. The description covers only the venue and the key requirement.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 67% and the description adds no parameter meaning beyond the auth hint. It ignores the important nuance that accountRef is the secret-free alternative to passing privateKey in chat, and does not explain how isMarket (default true) interacts with the required price field or what builderFeeRate/builderFeeAddress do.

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 concrete verb+resource+venue: 'Execute a spot trade directly on HyperLiquid'. This distinguishes it reasonably from execute_cross_perp / execute_isolated_perp, though it never explains how it relates to siblings like gdex_execute_trade, limit_buy or managed_purchase.

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?

The word 'directly' hints at a self-custody path, but there is no explicit statement of when to use this instead of gdex_execute_trade, limit_buy/limit_sell, or the managed_* tools. No preconditions (funding, session key, whitelisting) are mentioned.

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