Skip to main content
Glama

execute_perp_order

Destructive

Submit a pre-signed EIP-712 Hyperliquid perpetual futures order only after approval, policy, session, and API-wallet signature checks; supports IOC/limit/stop orders and reports fill outcomes.

Instructions

[Capability: available_with_tier_gate; tier: scout_capacity_signature_gated; API: /api/v1/agent/futures/execute-order; authority: /api/v1/agent/status] USER_SIGNED requires fresh human approval. BOUNDED_AUTONOMOUS requires a valid owner-signed futures policy, authenticated session, and a local API-wallet signature on every action; rollout remains preparation_only. Compatibility: submit a pre-signed EIP-712 Hyperliquid order after a 60-second parameter-bound research gate. market_ioc is a signed, price-protected IOC limit order with a live 100 bps adverse-price cap, never an unbounded market order; its outcome distinguishes full, partial, and zero fill, and an IOC resting response is unknown/inconsistent. For delegated API wallets, set accountAddress to the venue-verified equity owner used during analysis. FarmDash recovers the exact L1 signer, rejects an agentAddress mismatch, and preflights the owner maxBuilderFee. The signed action must disclose builder f=1 (0.1 bp/0.001% of filled notional), and expiresAt is venue-signed as expiresAfter. Venue nonce authority is network + signer + nonce across account/vault contexts; durable replay control fails closed before submission.

Input Schema

NameRequiredDescriptionDefault
coinYes
sizeYes
isBuyYes
nonceYes
priceYes
grantIdNo
leverageNo
expiresAtYes
orderTypeYes
sessionIdNo
signatureYes
intentHashYes
reduceOnlyNo
agentAddressYes
sessionTokenNo
signedActionNoIf supplied, must include the signed FarmDash builder term { b: treasury, f: 1 }; f is tenths of a basis point.
executionModeNoUSER_SIGNED
accountAddressNo
executionTrialIdNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv5.0.0

TDQS

B3.1/5.0
Behavior4/5

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

Annotations already flag destructive/non-idempotent/openWorld, and the description adds substantial detail beyond them: market_ioc is a price-protected IOC limit with a 100 bps adverse cap and is 'never an unbounded market order', fill outcomes distinguish full/partial/zero, a resting IOC response is treated as unknown/inconsistent, agentAddress mismatches are rejected, maxBuilderFee is preflighted, and replay control fails closed before submission. This is exactly the kind of safety-critical context annotations cannot convey.

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

Conciseness2/5

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

Dense run-on sentences with no separation of purpose, authorization, signing, and fee rules; the most agent-relevant fact (it submits a signed perp order) is buried mid-paragraph. Substantial text is spent on internal capability/tier bookkeeping that does not help an agent decide or invoke.

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 destructive 19-param financial execution tool with no output schema, the description does cover auth paths, builder fee, fill semantics, and replay protection, which is above average. It still omits what a successful call returns (order id? receipt handle for get_receipt?) and how the required intentHash/grantId/sessionId are obtained, which an agent needs before calling.

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?

With 19 parameters at 5% schema description coverage, the description must carry the load and only partly does: it explains executionMode, accountAddress (venue-verified equity owner for delegated wallets), signedAction (builder term f=1), expiresAt (venue-signed as expiresAfter), nonce scoping, and agentAddress validation. Coin, size, price, signature, intentHash, grantId, sessionId, sessionToken, reduceOnly, leverage, and executionTrialId remain undocumented in both places.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

The actual operation — 'submit a pre-signed EIP-712 Hyperliquid order' — is stated, but only in the third sentence, behind a '[Capability: available_with_tier_gate; tier: ...]' preamble that reads like internal metadata rather than purpose. It never names the sibling it must follow (prepare_perp_order) or contrasts with cancel_perp_order, so the agent must infer the workflow position.

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

Usage Guidelines3/5

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

The two executionMode values are given real conditions: USER_SIGNED 'requires fresh human approval', BOUNDED_AUTONOMOUS needs an owner-signed futures policy, authenticated session, and per-action wallet signature, with rollout 'preparation_only'. That is genuine mode selection guidance, but there is no routing to sibling tools (policy_check_intent, request_human_approval, prepare_perp_order, simulate_intent) that obviously precede this destructive call.

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