Skip to main content
Glama

Vectorial Data Terminal

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.

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_addressNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior3/5

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

With no annotations, the description carries the full burden and does disclose key constraints (no prior Hyperliquid account), validity (180 days), and signing algorithms (EIP-191 proof, ECDSA P-256 DER base64). However it omits failure modes, whether the wallet must be funded before call 1 or call 3, what happens if the verify list mismatches, and permission requirements, so meaningful behavioral gaps remain for a security-critical mutation.

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 action, then organized as an ordered call flow with imperative steps. It is dense and parenthetical-heavy (algorithm stacks, canonical JSON) but nearly every clause carries operational information, and the ordering matches how the agent must actually invoke the tool.

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?

Covers the workflow, prerequisites, validity period, and the shape of returned values (payload_b64 plus a verify list to check before signing), which is substantial given a four-parameter, no-output-schema, security-critical tool. Still missing error handling, idempotency/retry guidance, and where to source owner keys, so it is not fully complete for the complexity involved.

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 75%, so baseline is 3, and the description genuinely adds meaning by mapping each parameter to a specific call stage and stating what each signature signs (trading_key_proof over the returned message, owner_signature over payload_b64). It also supplies meaning for the undescribed trading_key_address ('your trading key'). Minor gap: nothing on address format or how to obtain it.

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 ('Authorize the key that signs your LIVE orders') and immediately distinguishes the required key type (a NEW secp256k1 key with no Hyperliquid history). An agent can tell this is the live-trading key authorization flow, not key rotation or agent registration, without opening the 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 an explicit three-call sequence with the arguments required at each step (no args → message; trading_key_address + trading_key_proof → payload_b64; add time + owner_signature → done), plus the prerequisite to fund the trading wallet first. Also states the alternative outcomes ('repeat to renew or rotate'), so when-to-use and how-to-sequence are fully covered.

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