Skip to main content
Glama

Place order (agent wallet)

hl_place_order
Destructive

Place a limit or market perp order on Hyperliquid via your agent wallet, attaching builder code for fee collection. Preview with dry-run; submit by setting confirm=true and dryRun=false.

Instructions

Place a limit or market perp order through YOUR local agent wallet, with the HyperSignal builder code attached. Dry-run by default (previews the exact signed action without sending). Set confirm=true AND dryRun=false to submit. ⚠️ Places a REAL order via your agent wallet when confirm=true and dry-run is off. Trades are risky and irreversible; this is not investment advice. Test on testnet first. The customer builder code is attached to earn a small builder fee.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
tifNoTime-in-force for limit orders.Gtc
coinYesPerp coin symbol, e.g. 'BTC'.
sideYes
sizeYesOrder size in base units.
dryRunNoKeep true to preview only; set false (with confirm) to submit.
confirmNoMust be true to submit. False => dry-run preview.
limitPxNoLimit price; omit for a market (IOC) order.
reduceOnlyNo
slippageBpsNoSlippage bound for market orders (bps).

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
modeYes
actionYes
reasonNo
responseNo
agentAddressNo
builderAttachedYes
Behavior5/5

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

Disclosures beyond annotations: dry-run mechanism, irreversible real orders when submitted, builder fee attachment. Aligns with destructiveHint=true and readOnlyHint=false.

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 focused sentences with a clear warning. Front-loaded purpose. Every sentence contributes, though slightly longer due to necessary risk disclosure.

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?

Covers submission flow, risk, builder fee, and testnet advice. With output schema present, return values are assumed documented. Adequate for a trading tool.

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 coverage is high (78%). Description adds global context (builder code, dry-run logic) but does not detail individual parameters beyond what schema provides. Baseline 3 is appropriate.

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?

The description clearly states it places a limit or market perp order via the agent wallet with builder code. It differentiates from sibling tools (e.g., hl_twap_order for TWAP) by specifying the order type and dry-run feature.

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?

Provides explicit instructions: dry-run by default, submit with confirm=true and dryRun=false. Warns to test on testnet. Lacks explicit comparisons to siblings but context enough for correct use.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/johnsmithxy1mmm-sys/HyperliquidMCP'

If you have feedback or need assistance with the MCP directory API, please join our Discord server