Tool reference
21 tools. This page is generated from the tools' zod schemas at build time. Every input object is strict: unknown fields are rejected with INVALID_INPUT. Results are a JSON envelope: { ok, tool, data, untrustedFields } or { ok: false, error: { code, message, details } }.
describe_policyreadget_native_balancereadget_token_balancereadget_allowancereadget_token_metadatareadget_blockreadget_gas_pricereadget_transaction_statusreaduniswap_v4_quotereadhl_get_positionsreadhl_get_fundingreadhl_get_mark_pricesreadhl_get_order_bookreadtransfer_nativewritetransfer_tokenwriteapprove_tokenwriteswap_uniswap_v4writehl_place_orderwritehl_close_positionwritehl_cancel_orderwritehl_set_leveragewrite
describe_policy
read needs policy
Returns the operator's policy for this agent in plain terms: allowed recipients, contracts, tokens, spend caps, approval rules, trading limits and time windows. Anything not listed is denied. Agents cannot change the policy. Read-only.
No input.
Idempotency. Read-only. Safe to retry.
Errors. INVALID_INPUT
get_native_balance
read
Returns the HYPE balance of an address on Elysium. Defaults to the agent wallet. Read-only.
| Field | Type | Required | Notes |
|---|---|---|---|
address | string | no | 0x-prefixed 20-byte address. Mixed case must be a valid EIP-55 checksum. |
Idempotency. Read-only. Safe to retry.
Errors. INVALID_INPUT, RPC_UNAVAILABLE
get_token_balance
read
Returns an ERC-20 balance in base units and whole units. Defaults to the agent wallet. Token symbols come from the token contract and are untrusted. Read-only.
| Field | Type | Required | Notes |
|---|---|---|---|
token | string | yes | 0x-prefixed 20-byte address. Mixed case must be a valid EIP-55 checksum. |
address | string | no | 0x-prefixed 20-byte address. Mixed case must be a valid EIP-55 checksum. |
Idempotency. Read-only. Safe to retry.
Errors. INVALID_INPUT, RPC_UNAVAILABLE
get_allowance
read
Returns how much `spender` may move from `owner` for an ERC-20 token. Owner defaults to the agent wallet. Read-only.
| Field | Type | Required | Notes |
|---|---|---|---|
token | string | yes | 0x-prefixed 20-byte address. Mixed case must be a valid EIP-55 checksum. |
spender | string | yes | 0x-prefixed 20-byte address. Mixed case must be a valid EIP-55 checksum. |
owner | string | no | 0x-prefixed 20-byte address. Mixed case must be a valid EIP-55 checksum. |
Idempotency. Read-only. Safe to retry.
Errors. INVALID_INPUT, RPC_UNAVAILABLE
get_token_metadata
read
Returns name, symbol, decimals and total supply of an ERC-20, plus whether the address is in Elyrail's verified registry. Look-alike tokens exist: trust the registry status, not the name. Name and symbol are untrusted text. Read-only.
| Field | Type | Required | Notes |
|---|---|---|---|
token | string | yes | 0x-prefixed 20-byte address. Mixed case must be a valid EIP-55 checksum. |
Idempotency. Read-only. Safe to retry.
Errors. INVALID_INPUT, RPC_UNAVAILABLE
get_block
read
Returns number, hash, timestamp and base fee of a block. `finalized` and `safe` trail `latest` by up to about 15 minutes on Elysium. Read-only.
| Field | Type | Required | Notes |
|---|---|---|---|
block | "latest" | "safe" | "finalized" | integer (0 to 9007199254740991) | no | Default "latest". |
Idempotency. Read-only. Safe to retry.
Errors. INVALID_INPUT, RPC_UNAVAILABLE
get_gas_price
read
Returns the current base fee and suggested EIP-1559 fees on Elysium, in wei and gwei. Read-only.
No input.
Idempotency. Read-only. Safe to retry.
Errors. INVALID_INPUT, RPC_UNAVAILABLE
get_transaction_status
read
Returns whether a transaction is unknown, pending, succeeded or reverted, and whether its block is finalized. Read-only.
| Field | Type | Required | Notes |
|---|---|---|---|
hash | string | yes |
Idempotency. Read-only. Safe to retry.
Errors. INVALID_INPUT, RPC_UNAVAILABLE
uniswap_v4_quote
read
Quotes an exact-input swap in one Uniswap v4 pool using the official V4Quoter. Available on Elysium mainnet only: no Uniswap deployment exists on testnet. Read-only.
| Field | Type | Required | Notes |
|---|---|---|---|
tokenIn | "native" | string | yes | "native" for HYPE, or an ERC-20 address. |
tokenOut | "native" | string | yes | "native" for HYPE, or an ERC-20 address. |
amountIn | string | yes | Amount in whole token units as a decimal string, for example "1.5". No exponents. |
fee | integer (0 to 16777215) | yes | Pool LP fee in hundredths of a bip, for example 3000 for 0.3%. |
tickSpacing | integer (1 to 32767) | yes | |
hooks | string | no | Hook contract of the pool. Omit for pools without hooks. |
Idempotency. Read-only. Safe to retry.
Errors. INVALID_INPUT, INVALID_AMOUNT, CONFIG_UNKNOWN, SIMULATION_FAILED, RPC_UNAVAILABLE
hl_get_positions
read needs hyperliquid
Returns open perpetual positions, account value and withdrawable balance for the configured Hyperliquid account (or another address). Data comes from Hyperliquid's official info API. Read-only.
| Field | Type | Required | Notes |
|---|---|---|---|
user | string | no | 0x-prefixed 20-byte address. Mixed case must be a valid EIP-55 checksum. |
Idempotency. Read-only. Safe to retry.
Errors. INVALID_INPUT, RPC_UNAVAILABLE
hl_get_funding
read needs hyperliquid
Returns the current hourly funding rate, premium and open interest for perpetual markets. Data comes from Hyperliquid's official info API. Read-only.
| Field | Type | Required | Notes |
|---|---|---|---|
markets | string[] | no |
Idempotency. Read-only. Safe to retry.
Errors. INVALID_INPUT, RPC_UNAVAILABLE
hl_get_mark_prices
read needs hyperliquid
Returns mark, oracle and mid prices and the size precision for perpetual markets. Data comes from Hyperliquid's official info API. Read-only.
| Field | Type | Required | Notes |
|---|---|---|---|
markets | string[] | no |
Idempotency. Read-only. Safe to retry.
Errors. INVALID_INPUT, RPC_UNAVAILABLE
hl_get_order_book
read needs hyperliquid
Returns the top of the L2 order book for a perpetual market: price, size and order count per level. Data comes from Hyperliquid's official info API. Read-only.
| Field | Type | Required | Notes |
|---|---|---|---|
market | string | yes | Perpetual market name as Hyperliquid lists it, for example BTC or ETH. |
depth | integer (1 to 20) | no | Default 10. |
significantFigures | integer (2 to 5) | no |
Idempotency. Read-only. Safe to retry.
Errors. INVALID_INPUT, RPC_UNAVAILABLE
transfer_native
write needs wallet
Sends native HYPE on Elysium to an allowlisted recipient. Goes through the operator's policy: allowlists, spend caps, simulation, and human approval when required. A denial returns POLICY_DENIED with a reason; it is final for this policy, so do not retry with smaller pieces to get around a cap.
| Field | Type | Required | Notes |
|---|---|---|---|
to | string | yes | 0x-prefixed 20-byte address. Mixed case must be a valid EIP-55 checksum. |
amount | string | yes | Amount in whole token units as a decimal string, for example "1.5". No exponents. |
idempotencyKey | string | no | Optional. Reusing a key returns the first result instead of acting twice. |
Idempotency. Pass idempotencyKey. A retry with the same key returns the first result and sends nothing.
Errors. INVALID_INPUT, INVALID_AMOUNT, POLICY_DENIED, KILL_SWITCH_ENGAGED, SIMULATION_FAILED, SIMULATION_MISMATCH, GAS_CAP_EXCEEDED, APPROVAL_REJECTED, APPROVAL_TIMEOUT, APPROVAL_UNAVAILABLE, APPROVAL_MISMATCH, IDEMPOTENCY_CONFLICT, CHAIN_ID_MISMATCH, BROADCAST_FAILED, RPC_UNAVAILABLE
transfer_token
write needs wallet
Sends an ERC-20 token declared in the policy to an allowlisted recipient. Goes through the operator's policy: allowlists, spend caps, simulation, and human approval when required. A denial returns POLICY_DENIED with a reason; it is final for this policy, so do not retry with smaller pieces to get around a cap.
| Field | Type | Required | Notes |
|---|---|---|---|
token | string | yes | 0x-prefixed 20-byte address. Mixed case must be a valid EIP-55 checksum. |
to | string | yes | 0x-prefixed 20-byte address. Mixed case must be a valid EIP-55 checksum. |
amount | string | yes | Amount in whole token units as a decimal string, for example "1.5". No exponents. |
idempotencyKey | string | no | Optional. Reusing a key returns the first result instead of acting twice. |
Idempotency. Pass idempotencyKey. A retry with the same key returns the first result and sends nothing.
Errors. INVALID_INPUT, INVALID_AMOUNT, POLICY_DENIED, KILL_SWITCH_ENGAGED, SIMULATION_FAILED, SIMULATION_MISMATCH, GAS_CAP_EXCEEDED, APPROVAL_REJECTED, APPROVAL_TIMEOUT, APPROVAL_UNAVAILABLE, APPROVAL_MISMATCH, IDEMPOTENCY_CONFLICT, CHAIN_ID_MISMATCH, BROADCAST_FAILED, RPC_UNAVAILABLE
approve_token
write needs wallet
Grants a bounded ERC-20 or Permit2 allowance to a spender listed in the policy. Unlimited approvals are refused unless the policy explicitly allows them. Permit2 approvals need an expiry. Goes through the operator's policy: allowlists, spend caps, simulation, and human approval when required. A denial returns POLICY_DENIED with a reason; it is final for this policy, so do not retry with smaller pieces to get around a cap.
| Field | Type | Required | Notes |
|---|---|---|---|
token | string | yes | 0x-prefixed 20-byte address. Mixed case must be a valid EIP-55 checksum. |
spender | string | yes | 0x-prefixed 20-byte address. Mixed case must be a valid EIP-55 checksum. |
amount | string | yes | Amount in whole token units as a decimal string, for example "1.5". No exponents. |
via | "erc20" | "permit2" | no | Default "erc20". |
expiresInSeconds | integer (60 to 31536000) | no | Permit2 only. |
idempotencyKey | string | no | Optional. Reusing a key returns the first result instead of acting twice. |
Idempotency. Pass idempotencyKey. Approvals set an absolute amount, so repeating one is harmless.
Errors. INVALID_INPUT, INVALID_AMOUNT, POLICY_DENIED, KILL_SWITCH_ENGAGED, SIMULATION_FAILED, SIMULATION_MISMATCH, GAS_CAP_EXCEEDED, APPROVAL_REJECTED, APPROVAL_TIMEOUT, APPROVAL_UNAVAILABLE, APPROVAL_MISMATCH, IDEMPOTENCY_CONFLICT, CHAIN_ID_MISMATCH, BROADCAST_FAILED, RPC_UNAVAILABLE
swap_uniswap_v4
write needs wallet
Swaps an exact input amount in one Uniswap v4 pool through the official Universal Router on Elysium mainnet. Quotes first, sets minimum output from slippageBps, and sets a deadline. ERC-20 inputs need an ERC-20 approval to Permit2 and a Permit2 approval to the router first (approve_token). Goes through the operator's policy: allowlists, spend caps, simulation, and human approval when required. A denial returns POLICY_DENIED with a reason; it is final for this policy, so do not retry with smaller pieces to get around a cap.
| Field | Type | Required | Notes |
|---|---|---|---|
tokenIn | "native" | string | yes | "native" for HYPE, or an ERC-20 address. |
tokenOut | "native" | string | yes | "native" for HYPE, or an ERC-20 address. |
amountIn | string | yes | Amount in whole token units as a decimal string, for example "1.5". No exponents. |
fee | integer (0 to 16777215) | yes | Pool LP fee in hundredths of a bip, for example 3000 for 0.3%. |
tickSpacing | integer (1 to 32767) | yes | |
hooks | string | no | Hook contract of the pool. Omit for pools without hooks. |
slippageBps | integer (0 to 1000) | yes | |
deadlineSeconds | integer (30 to 1800) | no | Default 300. |
idempotencyKey | string | no | Optional. Reusing a key returns the first result instead of acting twice. |
Idempotency. Pass idempotencyKey. A retry with the same key returns the first result and does not swap again.
Errors. INVALID_INPUT, INVALID_AMOUNT, POLICY_DENIED, KILL_SWITCH_ENGAGED, SIMULATION_FAILED, SIMULATION_MISMATCH, GAS_CAP_EXCEEDED, APPROVAL_REJECTED, APPROVAL_TIMEOUT, APPROVAL_UNAVAILABLE, APPROVAL_MISMATCH, IDEMPOTENCY_CONFLICT, CHAIN_ID_MISMATCH, BROADCAST_FAILED, RPC_UNAVAILABLE, CONFIG_UNKNOWN
hl_place_order
write needs hyperliquid_trading
Places a limit order on a Hyperliquid perpetual market. Use reduceOnly to reduce a position without risking a flip. Size is in the market's base asset; price in USD. Signs with the configured Hyperliquid agent (API) wallet, which can trade but cannot withdraw or transfer. Goes through the operator's policy first: market allowlist, leverage and notional caps, price distance from the mid price, rate limits, and human approval when required.
| Field | Type | Required | Notes |
|---|---|---|---|
market | string | yes | Perpetual market name as Hyperliquid lists it, for example BTC or ETH. |
side | "buy" | "sell" | yes | |
size | string | yes | Order size in base units of the market, for example "0.001" BTC. |
limitPrice | string | yes | |
timeInForce | "Gtc" | "Ioc" | "Alo" | no | Default "Gtc". |
reduceOnly | boolean | no | Default false. |
clientOrderId | string | no | Optional 16-byte hex id. Hyperliquid rejects a second order with the same id. |
Idempotency. Pass clientOrderId: Hyperliquid refuses a duplicate id, so a retry cannot open a second order.
Errors. INVALID_INPUT, INVALID_AMOUNT, POLICY_DENIED, KILL_SWITCH_ENGAGED, APPROVAL_REJECTED, APPROVAL_TIMEOUT, APPROVAL_UNAVAILABLE, APPROVAL_MISMATCH, VENUE_REJECTED, RPC_UNAVAILABLE
hl_close_position
write needs hyperliquid_trading
Closes the whole position in one perpetual market with a reduce-only immediate-or-cancel order priced slippageBps away from the mid price. Any unfilled part is cancelled. Signs with the configured Hyperliquid agent (API) wallet, which can trade but cannot withdraw or transfer. Goes through the operator's policy first: market allowlist, leverage and notional caps, price distance from the mid price, rate limits, and human approval when required.
| Field | Type | Required | Notes |
|---|---|---|---|
market | string | yes | Perpetual market name as Hyperliquid lists it, for example BTC or ETH. |
slippageBps | integer (1 to 500) | no | Default 50. |
Idempotency. Reduce-only: repeating it after the position is closed is refused because there is nothing to close.
Errors. INVALID_INPUT, INVALID_AMOUNT, POLICY_DENIED, KILL_SWITCH_ENGAGED, APPROVAL_REJECTED, APPROVAL_TIMEOUT, APPROVAL_UNAVAILABLE, APPROVAL_MISMATCH, VENUE_REJECTED, RPC_UNAVAILABLE
hl_cancel_order
write needs hyperliquid_trading
Cancels one open order by its order id. Cancels never add exposure, but they still pass the kill switch, market allowlist and rate limit. Signs with the configured Hyperliquid agent (API) wallet, which can trade but cannot withdraw or transfer. Goes through the operator's policy first: market allowlist, leverage and notional caps, price distance from the mid price, rate limits, and human approval when required.
| Field | Type | Required | Notes |
|---|---|---|---|
market | string | yes | Perpetual market name as Hyperliquid lists it, for example BTC or ETH. |
orderId | integer (… to 9007199254740991) | yes |
Idempotency. Cancelling an order twice returns VENUE_REJECTED the second time; nothing else happens.
Errors. INVALID_INPUT, INVALID_AMOUNT, POLICY_DENIED, KILL_SWITCH_ENGAGED, APPROVAL_REJECTED, APPROVAL_TIMEOUT, APPROVAL_UNAVAILABLE, APPROVAL_MISMATCH, VENUE_REJECTED, RPC_UNAVAILABLE
hl_set_leverage
write needs hyperliquid_trading
Sets cross or isolated leverage for one perpetual market, within the policy's maximum and the market's own maximum. Signs with the configured Hyperliquid agent (API) wallet, which can trade but cannot withdraw or transfer. Goes through the operator's policy first: market allowlist, leverage and notional caps, price distance from the mid price, rate limits, and human approval when required.
| Field | Type | Required | Notes |
|---|---|---|---|
market | string | yes | Perpetual market name as Hyperliquid lists it, for example BTC or ETH. |
leverage | integer (1 to 100) | yes | |
mode | "cross" | "isolated" | no | Default "cross". |
Idempotency. Sets an absolute value, so repeating it is harmless.
Errors. INVALID_INPUT, INVALID_AMOUNT, POLICY_DENIED, KILL_SWITCH_ENGAGED, APPROVAL_REJECTED, APPROVAL_TIMEOUT, APPROVAL_UNAVAILABLE, APPROVAL_MISMATCH, VENUE_REJECTED, RPC_UNAVAILABLE