Skip to main content
Glama

hyperliquid_submit

hyperliquid_submit

Sends a Hyperliquid action prepared by /hyperliquid/prepare and signed by the wallet (eth_signTypedData_v4) to the exchange: order, cancel, leverage change or builder-fee approval. Returns the exchange result per order (resting with its id, filled with size and average price, or the rejection reason). The signature is forwarded as-is; no key ever reaches the server. Price: $0.002 USDC per call (x402).

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "action": "<action>",
      "nonce": "<nonce>",
      "signature": "<signature>"
    },
    "name": "hyperliquid_submit"
  }
}

Input Schema

NameRequiredDescriptionDefault
nonceYesThe nonce returned by /prepare
actionYesThe action object returned by /prepare, unchanged
signatureYes0x-prefixed 65-byte signature from eth_signTypedData_v4 over typed_data
vault_addressNoOptional vault or sub-account address the action is for

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.4/5.0
Behavior5/5

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

Annotations only say readOnlyHint=false, so the description carries most of the load and does so: it discloses that the signature is forwarded as-is, that no private key ever reaches the server, that the call costs $0.002 USDC via x402, and what the per-order result contains (resting with id, filled with size and average price, or rejection reason). That is material behavioral context an agent needs before spending money or submitting a mutating action.

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

Conciseness5/5

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

Four information-dense sentences, front-loaded with the action and its prerequisite, then return shape, then security guarantee, then cost. No filler or repetition of the tool name.

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?

For a mutating tool with a nested free-form action object and no output schema, the description is nearly complete: it explains what is submitted, what comes back per order, the security model, and the price. Minor gaps remain around nonce lifetime/replay behavior and what happens when the whole submission (not a single order) fails, but nothing essential to correct invocation is missing.

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 description coverage is 100%, so nonce, action, signature, and vault_address are already documented in the schema. The description reinforces that the action must be passed unchanged and that the signature is forwarded as-is, but adds little semantic detail beyond what the schema provides, so the baseline of 3 applies.

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 and resource: it submits a Hyperliquid action that was prepared by /hyperliquid/prepare and signed by the wallet, and it enumerates the action types covered (order, cancel, leverage change, builder-fee approval). This clearly separates it from hyperliquid_prepare, which only builds the payload, so an agent can pick the right tool without opening either schema.

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?

The description establishes the required pipeline explicitly: the action must come from /hyperliquid/prepare and be signed with eth_signTypedData_v4 before calling this tool. It doesn't give explicit when-not guidance or error-recovery routing, but the prerequisite chain is unambiguous.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources