Skip to main content
Glama

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

authorize_trading_key

Authorize the key that signs your LIVE orders. Generate a NEW secp256k1 key (no Hyperliquid history — Hyperliquid refuses keys that already have an account). Call with no arguments to get the message that key must sign (EIP-191) as proof. Fund the trading wallet first. Then call with trading_key_address + trading_key_proof: you get payload_b64 (the exact Privy request as canonical JSON) and a verify list — decode it and check every field against YOUR records (your saved privy_wallet_id, your trading key) BEFORE signing it with your OWNER P-256 key (ECDSA P-256 over SHA-256, DER, base64). Call a third time adding time + owner_signature. Valid 180 days; repeat to renew or rotate.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "authorize_trading_key"
  }
}

Input Schema

NameRequiredDescriptionDefault
timeNoLast call only: the `time` returned by the previous call
owner_signatureNoLast call only: your OWNER key's signature over payload_b64
trading_key_proofNoEIP-191 signature of trading_key_message by the trading key
trading_key_addressNoA NEW 0x address whose key you generated to sign orders (not your agent wallet nor the trading wallet)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / trading_key_address / description
      Added value: +"A NEW 0x address whose key you generated to sign orders (not your agent wallet nor the trading wallet)"
  2. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Beyond the annotations (readOnlyHint=false, destructiveHint=false, openWorldHint=true, idempotentHint=false), it discloses the stateful multi-call flow, the cryptographic algorithms required (EIP-191 for the trading key, ECDSA P-256 over SHA-256, DER, base64 for the owner), and the safety-critical instruction to decode payload_b64 and check every field against local records before signing. What it omits is failure behavior — e.g. what happens if the key already has Hyperliquid history or the proof is stale — 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?

Content is front-loaded with purpose and the call sequence, and nearly every clause earns its place given the three-step handshake. The prose is dense and sentence-heavy, packing aliasing (payload_b64, verify) and algorithm details into long runs, which slightly hurts scannability but not comprehension.

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?

With no output schema, the description does describe the returns (payload_b64 canonical JSON and the verify list), and it covers the sequencing and validity needed to call correctly. Gaps remain around error conditions and what a successful authorization yields (e.g. a key id or confirmation), which an agent may need before treating the operation as done.

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 schema already defines all four parameters; the description's added value is contextual, clarifying that the parameters arrive across separate calls in sequence and what payload_b64 and the verify list mean relative to them. It does not restate the schema's per-field types, but it does explain the verification obligation tied to owner_signature, which is meaning the schema alone does not convey.

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

Purpose4/5

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

The description opens with a specific verb+resource: 'Authorize the key that signs your LIVE orders,' and immediately distinguishes this key from the agent/trading wallets. It does not name the nearby siblings (rotate_key, create_trading_wallet, get_trading_wallet), so an agent must infer that boundary, but the intended purpose is unambiguous.

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?

It lays out an explicit three-call protocol (no args → trading_key_address + proof → add time + owner_signature) with ordering, prerequisites ('Fund the trading wallet first'), and the key-generation constraint ('no Hyperliquid history'). It also states the renew/rotate condition and the 180-day validity window, leaving nothing about when or how to invoke it to inference.

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.