Skip to main content
Glama

Vectorial Data Terminal: Hyperliquid, Polymarket & yield for AI agents

send_trading_funds_home

Destructive

Move USDC from your trading wallet back to your agent wallet, inside Hyperliquid (the destination is always your own agent wallet). Pending trading fees are collected first. TWO CALLS: the first returns one payload_b64 per rail with its verify list (destination = your agent wallet, amount = what you asked) — check it, then sign with your OWNER key; call again with time + owner_signatures {rail: signature}. Without an API key (e.g. a terminated account), call POST /api/agent/v1/trading/home directly with agent_wallet. To leave Hyperliquid, withdraw from your agent wallet as usual.

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": {
      "amount_usd": "<amount_usd>"
    },
    "name": "send_trading_funds_home"
  }
}

Input Schema

NameRequiredDescriptionDefault
timeNoSecond call only: the `time` returned by the first call (the nonce you signed)
amount_usdYesAt most 2 decimals (it is exactly what gets signed).
owner_signaturesNoSecond call only: { sendAsset?: sig, usdSend?: sig }

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / time / description
      Added value: +"Second call only: the `time` returned by the first call (the nonce you signed)"
  2. First observed

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already declare destructive=true, readOnly=false, non-idempotent, so the bar is lower, yet the description adds real behavior: pending trading fees are collected first, the operation is a two-call flow where the first call only returns payload_b64 plus a verify list and the second submits owner signatures. It also discloses the auth requirement (OWNER key) and a no-API-key fallback. It stops short of stating irreversibility or failure handling on a partially-signed rail set, which keeps it from a 5.

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?

Front-loaded with the core action and destination constraint, then the two-call protocol, then the fallback and the exit path. Nearly every sentence carries load, though the stacked parentheticals and the dense two-call sentence make it heavier to parse than it needs to be.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a destructive, non-idempotent, owner-signed two-step mutation with no output schema, the description covers what is returned by call one, what to verify, what to sign, what call two needs, and how to proceed without an API key. An agent has everything needed to invoke it correctly.

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

Parameters4/5

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

Schema coverage is 100%, so the baseline is 3, but the description adds flow-level meaning the schema cannot: 'time' is the nonce you signed and must come from the first call, and owner_signatures is keyed by rail (sendAsset/usdSend) after verifying destination and amount. That contextualizes the parameters beyond their per-field text.

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 (move USDC from trading wallet to agent wallet) and pins the scope explicitly ('inside Hyperliquid', 'destination is always your own agent wallet'). That scope clause distinguishes it from siblings like move_funds, send_predictions_home, and prepare_withdrawal without the agent needing to open any schema.

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

Usage Guidelines5/5

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

Gives explicit when-to-use (repatriate trading USDC to your agent wallet), an explicit alternative for a different goal ('To leave Hyperliquid, withdraw from your agent wallet as usual'), and a fallback path when no API key exists (POST /api/agent/v1/trading/home with agent_wallet). The routing decision is fully specified.

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.