Hyperliquid MCP Server
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Hyperliquid MCP Serverget current BTC price and my portfolio"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Hyperliquid MCP Server
A Model Context Protocol (MCP) server for interacting with the Hyperliquid DEX. This server provides tools for retrieving market data, managing positions, and executing trades on Hyperliquid.
Built with Python 3.11+ and uv package manager, with full Docker support for easy deployment.
Features
Market Data Tools
get_all_mids- Get current mid prices for all coinsget_l2_book- Get L2 order book snapshot for a specific coinget_candle_snapshot- Get historical candle data
Account Information Tools
get_open_orders- Get all open ordersget_user_fills- Get trading history (fills)get_user_fills_by_time- Get fills for a specific time rangeget_portfolio- Get portfolio information including PnL and margin
Trading Tools
place_order- Place limit ordersplace_trigger_order- Place stop-loss or take-profit orderscancel_order- Cancel specific orderscancel_all_orders- Cancel all open orders
Installation
Prerequisites
Python 3.11 or higher
uv package manager
Docker (optional, for containerized deployment)
Local Installation
Clone this repository
Install dependencies with uv:
uv syncRun the server:
uv run python -m hyperliquid_mcp_server.main
Docker Installation
Clone this repository
Build and run with Docker Compose:
# Production mode make build && make run # Or using docker-compose directly docker-compose up --buildFor development with hot reloading:
# Development mode make dev # Or using docker-compose directly docker-compose --profile dev up --build
Configuration
Configure the server using environment variables:
Required for Trading Operations
HYPERLIQUID_PRIVATE_KEY- Your wallet's private key (with 0x prefix)
Optional
HYPERLIQUID_WALLET_ADDRESS- Your wallet address (derived from private key if not provided)HYPERLIQUID_TESTNET- Set to "true" for testnet, "false" or unset for mainnet
Example Environment Setup
Create a .env file (not recommended for production):
HYPERLIQUID_PRIVATE_KEY=0x1234567890abcdef...
HYPERLIQUID_WALLET_ADDRESS=0xabcdef1234567890...
HYPERLIQUID_TESTNET=trueUsage
Using Make Commands
The project includes a Makefile for common operations:
# Install dependencies
make install
# Run locally (without Docker)
make local
# Build Docker image
make build
# Run in production mode
make run
# Run in development mode
make dev
# Run tests
make test
# Format code
make format
# Clean up Docker resources
make cleanManual Commands
# Local development
uv run python -m hyperliquid_mcp_server.main
# Docker production
docker-compose up --build
# Docker development
docker-compose --profile dev up --buildWith Claude Desktop
Add this server to your Claude Desktop configuration:
Local Installation
{
"mcpServers": {
"hyperliquid": {
"command": "uv",
"args": ["run", "python", "-m", "hyperliquid_mcp_server.main"],
"cwd": "/path/to/hyperliq-mcp",
"env": {
"HYPERLIQUID_PRIVATE_KEY": "0x...",
"HYPERLIQUID_TESTNET": "true"
}
}
}
}Docker Installation
{
"mcpServers": {
"hyperliquid": {
"command": "docker",
"args": ["run", "--rm", "-i", "--env-file", ".env", "hyperliquid-mcp-server:latest"],
"cwd": "/path/to/hyperliq-mcp"
}
}
}API Reference
Market Data
get_all_mids
Get current mid prices for all coins.
{}get_l2_book
Get L2 order book for a specific coin.
{
"coin": "BTC",
"nSigFigs": 3
}get_candle_snapshot
Get historical candle data.
{
"coin": "BTC",
"interval": "1h",
"startTime": 1640995200000,
"endTime": 1641081600000
}Account Information
get_open_orders
Get open orders for the configured wallet or a specific user.
{
"user": "0x..." // optional
}get_user_fills
Get trading history.
{
"user": "0x..." // optional
}get_portfolio
Get portfolio information.
{
"user": "0x..." // optional
}Trading
place_order
Place a limit order.
{
"assetIndex": 0,
"isBuy": true,
"price": "50000",
"size": "0.1",
"timeInForce": "Gtc",
"reduceOnly": false,
"clientOrderId": "my-order-1"
}place_trigger_order
Place a trigger order (stop-loss/take-profit).
{
"assetIndex": 0,
"isBuy": false,
"size": "0.1",
"triggerPrice": "45000",
"isMarket": true,
"triggerType": "sl",
"reduceOnly": true
}cancel_order
Cancel a specific order.
{
"assetIndex": 0,
"orderId": 12345
}cancel_all_orders
Cancel all open orders.
{}Security Notes
Never share your private key
Use testnet for development and testing
Consider using environment variables or secure secret management for production
This server requires your private key to sign trading transactions
Read-only operations (market data, account info) work without a private key
Asset Indices
Common asset indices for Hyperliquid:
BTC: 0
ETH: 1
SOL: 2
(Check Hyperliquid documentation for complete list)
Error Handling
The server includes comprehensive error handling:
Invalid configurations are reported on startup
API errors are caught and returned with descriptive messages
Network timeouts are handled gracefully
Input validation prevents malformed requests
Development
Project Structure
hyperliquid_mcp_server/
├── main.py # Main MCP server
├── types/
│ └── hyperliquid.py # Pydantic type definitions
├── utils/
│ ├── hyperliquid_client.py # API client
│ └── config.py # Configuration management
└── tools/
├── market_data.py # Market data tools
├── account_info.py # Account information tools
└── trading.py # Trading toolsDevelopment Setup
# Install dependencies
uv sync
# Install with development dependencies
uv sync --extra dev
# Run tests
uv run pytest
# Format code
uv run black .
uv run isort .
# Lint code
uv run ruff check .
uv run mypy .Docker Development
# Development mode with hot reloading
make dev
# Shell into container
make shell
# View logs
make logsLicense
MIT
Available Tools
11 toolscancel_all_ordersB
Cancel all open orders
| Name | Required | Description | Default |
|---|---|---|---|
No parameters | |||
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
No annotations are provided, so the description carries the full burden. 'Cancel all open orders' implies a destructive write operation, but it doesn't disclose critical behavioral traits like whether this action is irreversible, requires confirmation, affects only certain order types, has rate limits, or returns any confirmation data. The description is minimal and lacks necessary context for safe use.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is a single, efficient sentence with zero waste—'Cancel all open orders' directly conveys the core action without extra words. It's appropriately sized and front-loaded, making it easy for an agent to parse quickly.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Given the complexity of a destructive trading operation with no annotations and no output schema, the description is incomplete. It doesn't explain what 'open orders' entails, the return format (e.g., success confirmation or list of canceled orders), error conditions, or side effects. For a high-stakes tool like this, more context is needed to ensure safe and correct usage.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
The tool has 0 parameters with 100% schema description coverage, so the schema fully documents the lack of inputs. The description doesn't need to add parameter details, but it implicitly confirms no parameters are needed by stating 'all open orders' without qualification. This aligns perfectly with the schema, warranting a baseline score of 4 for zero-parameter tools.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description 'Cancel all open orders' clearly states the verb (cancel) and resource (all open orders). It distinguishes from the sibling 'cancel_order' by specifying 'all' versus a single order. However, it doesn't explicitly mention the trading context or differentiate from other cancellation-related tools that might exist, keeping it at a 4 rather than a 5.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description provides no guidance on when to use this tool versus alternatives like 'cancel_order' for specific orders or other trading operations. It doesn't mention prerequisites, risks, or appropriate contexts for bulk cancellation versus selective cancellation.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
cancel_orderB
Cancel a specific order by order ID or client order ID
| Name | Required | Description | Default |
|---|---|---|---|
| assetIndex | Yes | Asset index for the coin | |
| clientOrderId | No | Client order ID to cancel (use either orderId or clientOrderId) | |
| orderId | No | Order ID to cancel (use either orderId or clientOrderId) |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations provided, the description carries full burden but only states the action without behavioral details. It doesn't disclose whether cancellation is reversible, requires specific permissions, affects portfolio balances, has rate limits, or returns confirmation details. For a mutation tool with zero annotation coverage, this is a significant gap.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is a single, efficient sentence that front-loads the core purpose with zero redundant information. Every word earns its place by specifying the action, target, and identification methods.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
For a mutation tool ('cancel') with no annotations and no output schema, the description is incomplete. It doesn't explain what happens upon cancellation (e.g., order status change, funds release), error conditions, or return values. Given the complexity of order management, more context is needed.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema description coverage is 100%, so the schema already documents all three parameters thoroughly. The description adds minimal value by mentioning 'order ID or client order ID', which is already covered in parameter descriptions. Baseline 3 is appropriate when schema does the heavy lifting.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the action ('Cancel') and target ('a specific order'), specifying identification methods ('by order ID or client order ID'). It distinguishes from sibling 'cancel_all_orders' by focusing on individual cancellation, though it doesn't explicitly name that sibling.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description implies usage context through 'specific order' and parameter descriptions mentioning 'use either orderId or clientOrderId', suggesting this tool is for targeted cancellations. However, it doesn't explicitly state when to use this versus 'cancel_all_orders' or other order-related tools, nor does it mention prerequisites like order status.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
get_all_midsB
Get current mid prices for all coins on Hyperliquid
| Name | Required | Description | Default |
|---|---|---|---|
No parameters | |||
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations provided, the description carries full burden for behavioral disclosure. It states what the tool does but lacks critical details such as whether it's a read-only operation, potential rate limits, authentication requirements, or what format the mid prices are returned in (e.g., JSON, array).
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is a single, efficient sentence that front-loads the core action ('Get current mid prices') and resource ('all coins on Hyperliquid'). There is no wasted verbiage, making it highly concise and well-structured.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Given the complexity of retrieving financial data and the absence of annotations and output schema, the description is insufficient. It doesn't explain return values, error handling, or behavioral traits like whether it's real-time or cached data, leaving significant gaps for agent usage.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
The tool has 0 parameters with 100% schema description coverage, so the schema fully documents the lack of inputs. The description adds value by specifying 'all coins on Hyperliquid', which clarifies scope beyond what the empty schema indicates, earning a baseline 4 for zero-parameter tools.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the verb ('Get') and resource ('current mid prices for all coins on Hyperliquid'), making the purpose specific and understandable. However, it doesn't explicitly differentiate from siblings like 'get_candle_snapshot' or 'get_l2_book', which also retrieve market data but for different metrics.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description provides no guidance on when to use this tool versus alternatives. It doesn't mention prerequisites, timing considerations, or compare it to sibling tools like 'get_portfolio' or 'get_user_fills', leaving the agent to infer usage context.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
get_candle_snapshotC
Get historical candle data for a specific coin
| Name | Required | Description | Default |
|---|---|---|---|
| coin | Yes | The coin symbol (e.g., BTC, ETH, SOL) | |
| endTime | No | End time in milliseconds (optional) | |
| interval | Yes | Candle interval | |
| startTime | No | Start time in milliseconds (optional) |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
No annotations are provided, so the description carries the full burden of behavioral disclosure. It states 'Get historical candle data' which implies a read-only operation, but doesn't cover critical aspects like rate limits, authentication needs, data freshness, or error handling, leaving significant gaps for a tool with market data access.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is a single, efficient sentence that directly states the tool's function without unnecessary words. It's appropriately sized and front-loaded, making it easy to parse quickly.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Given the complexity of financial data tools, no annotations, and no output schema, the description is insufficient. It lacks details on return format (e.g., data structure, timestamps), error cases, or behavioral constraints, making it incomplete for effective agent use.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema description coverage is 100%, so the input schema fully documents all parameters. The description adds no additional meaning beyond implying historical data retrieval, which is already clear from the schema. This meets the baseline for high schema coverage.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the verb 'Get' and the resource 'historical candle data for a specific coin', making the purpose understandable. However, it doesn't distinguish this tool from potential siblings like 'get_all_mids' or 'get_l2_book' that might also provide market data, missing explicit differentiation.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description provides no guidance on when to use this tool versus alternatives. With siblings like 'get_all_mids' and 'get_l2_book' that likely offer different market data, there's no mention of context, prerequisites, or exclusions, leaving usage ambiguous.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
get_l2_bookC
Get L2 order book snapshot for a specific coin
| Name | Required | Description | Default |
|---|---|---|---|
| coin | Yes | The coin symbol (e.g., BTC, ETH, SOL) | |
| nSigFigs | No | Number of significant figures for price aggregation (optional) |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations provided, the description carries the full burden of behavioral disclosure. It states it 'Get[s] L2 order book snapshot', implying a read-only operation, but doesn't clarify if this requires authentication, has rate limits, returns real-time or cached data, or what the output format entails. For a tool with zero annotation coverage, this is a significant gap, scoring a 2.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is a single, efficient sentence that front-loads the core purpose without any wasted words. It directly states what the tool does, making it easy to parse and understand quickly. This exemplifies excellent conciseness and structure, earning a 5.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Given the complexity of financial data tools, no annotations, and no output schema, the description is incomplete. It doesn't explain what an 'L2 order book snapshot' entails (e.g., bid/ask levels, depth), return values, or behavioral traits like latency or authentication needs. For a tool in this context, more detail is needed, resulting in a score of 2.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
The input schema has 100% description coverage, with clear docs for 'coin' and 'nSigFigs'. The description adds no additional parameter semantics beyond implying the tool is coin-specific, which is already covered in the schema. With high schema coverage, the baseline is 3, as the description doesn't compensate but doesn't detract either.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the verb 'Get' and the resource 'L2 order book snapshot for a specific coin', making the purpose immediately understandable. It specifies the scope ('for a specific coin') but doesn't explicitly differentiate from siblings like 'get_all_mids' or 'get_candle_snapshot', which might also provide market data. This is clear but lacks sibling differentiation, warranting a 4.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description provides no guidance on when to use this tool versus alternatives, such as 'get_all_mids' for mid-prices or 'get_candle_snapshot' for historical data. It doesn't mention prerequisites, exclusions, or specific contexts, leaving the agent to infer usage based on the name alone. This lack of explicit guidance results in a score of 2.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
get_open_ordersB
Get all open orders for the configured wallet or a specific user
| Name | Required | Description | Default |
|---|---|---|---|
| user | No | User wallet address (optional, defaults to configured wallet) |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
No annotations are provided, so the description carries the full burden. It states the tool retrieves open orders but does not disclose behavioral traits such as whether it requires authentication, rate limits, pagination, error handling, or the format of returned data. For a read operation with zero annotation coverage, this is a significant gap in transparency, though it correctly implies a non-destructive action.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is a single, efficient sentence that front-loads the core purpose ('Get all open orders') and includes key details (scope and parameter hint). There is no wasted language, making it appropriately sized and easy to parse quickly.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Given the complexity of a financial tool with no annotations and no output schema, the description is incomplete. It lacks details on authentication needs, rate limits, return format, error conditions, or how results are structured (e.g., list of orders with fields). For a tool interacting with wallet data, this omission reduces its usefulness for an AI agent in making informed decisions.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema description coverage is 100%, with the single parameter 'user' documented as an optional wallet address defaulting to the configured wallet. The description adds minimal value beyond the schema by mentioning 'a specific user', but does not provide additional context like format examples or edge cases. With high schema coverage, the baseline score of 3 is appropriate as the schema handles most parameter documentation.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the verb 'Get' and the resource 'all open orders', specifying the scope as 'for the configured wallet or a specific user'. It distinguishes the tool's purpose from siblings like 'get_user_fills' (which retrieves historical fills) and 'get_portfolio' (which retrieves overall holdings). However, it doesn't explicitly differentiate from 'cancel_all_orders' or 'place_order' in terms of action type, though the verb 'Get' implies read-only retrieval.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description implies usage when needing to retrieve open orders, with a default to the configured wallet and an optional user parameter for specificity. However, it lacks explicit guidance on when to use this tool versus alternatives like 'get_user_fills' (for historical data) or 'cancel_all_orders' (for management actions). No exclusions or prerequisites are mentioned, leaving usage context somewhat inferred rather than clearly defined.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
get_portfolioC
Get portfolio information including positions, PnL, and margin usage
| Name | Required | Description | Default |
|---|---|---|---|
| user | No | User wallet address (optional, defaults to configured wallet) |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations provided, the description carries full burden for behavioral disclosure. It states what data is returned but doesn't describe important behaviors: whether this requires authentication, rate limits, real-time vs. cached data, error conditions, or response format. For a financial data tool with zero annotation coverage, this leaves significant gaps in understanding how the tool behaves.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is a single, efficient sentence that front-loads the core purpose. It wastes no words on unnecessary details. However, it could be slightly more structured by separating the core function from the data components for even better readability.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Given the tool's moderate complexity (portfolio data retrieval), no annotations, no output schema, and 100% schema coverage, the description is minimally adequate. It tells what data is returned but lacks crucial context about authentication, data freshness, error handling, and response structure. For a financial tool with no output schema, more completeness would be expected.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema description coverage is 100%, so the schema already fully documents the single optional parameter. The description adds no parameter-specific information beyond what's in the schema. According to scoring rules, when schema coverage is high (>80%), the baseline is 3 even with no param info in the description.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the verb 'Get' and resource 'portfolio information', specifying the included data fields (positions, PnL, margin usage). It distinguishes from siblings like get_open_orders or get_user_fills by focusing on portfolio rather than orders or fills. However, it doesn't explicitly contrast with all siblings, preventing a perfect score.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description provides no guidance on when to use this tool versus alternatives. It doesn't mention when to prefer get_portfolio over other data retrieval tools like get_user_fills or get_open_orders, nor does it specify any prerequisites or constraints for usage. The only implied context is portfolio-related queries.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
get_user_fillsB
Get trading history (fills) for the configured wallet or a specific user
| Name | Required | Description | Default |
|---|---|---|---|
| user | No | User wallet address (optional, defaults to configured wallet) |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
No annotations are provided, so the description carries the full burden of behavioral disclosure. It describes a read operation ('Get'), which implies non-destructive behavior, but doesn't mention any other traits such as rate limits, authentication requirements, pagination, or error handling. For a tool that accesses trading history without annotation coverage, this is a significant gap in transparency, though it doesn't contradict any annotations.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is a single, efficient sentence that directly states the tool's purpose without any unnecessary words. It is front-loaded with the core functionality ('Get trading history (fills)') and includes essential scope information. Every part of the sentence earns its place, making it highly concise and well-structured.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Given the context: no annotations, no output schema, and a single parameter with full schema coverage, the description is incomplete. It lacks details on behavioral aspects like rate limits or authentication, doesn't explain the return format (e.g., what data 'fills' includes), and doesn't differentiate from sibling tools. For a tool that retrieves trading history, this leaves the agent with insufficient information to use it effectively beyond basic invocation.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
The input schema has 100% description coverage, with one optional parameter 'user' documented as 'User wallet address (optional, defaults to configured wallet)'. The description adds minimal value beyond the schema by restating that it retrieves fills 'for the configured wallet or a specific user', which aligns with the schema's description. Since schema coverage is high, the baseline score of 3 is appropriate, as the description doesn't provide additional parameter details like format examples or constraints.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the tool's purpose: 'Get trading history (fills) for the configured wallet or a specific user'. It specifies the verb ('Get'), resource ('trading history (fills)'), and scope ('configured wallet or a specific user'). However, it doesn't explicitly differentiate from sibling tools like 'get_user_fills_by_time', which appears to be a time-filtered variant, so it doesn't reach the highest clarity level.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description implies usage context by mentioning 'configured wallet or a specific user', suggesting this tool retrieves fills for either the default wallet or a specified one. However, it doesn't provide explicit guidance on when to use this tool versus alternatives like 'get_user_fills_by_time' or other sibling tools, nor does it specify any prerequisites or exclusions. This leaves some ambiguity for the agent in selecting between similar tools.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
get_user_fills_by_timeB
Get trading history (fills) for a specific time range
| Name | Required | Description | Default |
|---|---|---|---|
| endTime | No | End time in milliseconds | |
| startTime | No | Start time in milliseconds | |
| user | No | User wallet address (optional, defaults to configured wallet) |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations provided, the description carries full burden but only states what the tool does, not how it behaves. It doesn't disclose whether this requires authentication, rate limits, pagination behavior, error conditions, or what format the trading history returns. For a data retrieval tool with zero annotation coverage, this is insufficient.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is a single, efficient sentence with zero wasted words. It's appropriately sized and front-loads the core functionality without unnecessary elaboration.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
For a read-only data retrieval tool with good schema coverage but no annotations or output schema, the description is minimally adequate. It states what the tool does but lacks behavioral context about authentication, response format, or error handling that would be helpful for an AI agent.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema description coverage is 100%, so parameters are fully documented in the schema. The description adds no additional parameter semantics beyond implying time range filtering. The baseline of 3 is appropriate when the schema does all the parameter documentation work.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the verb 'Get' and resource 'trading history (fills)' with scope 'for a specific time range', making the purpose unambiguous. It doesn't explicitly differentiate from sibling 'get_user_fills' (which lacks time parameters), but the time range specification provides implicit distinction.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description implies usage when needing fills within a time range, but provides no explicit guidance on when to use this versus 'get_user_fills' (which presumably returns all fills without time filtering). No alternatives, exclusions, or prerequisites are mentioned.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
place_orderC
Place a limit or trigger order on Hyperliquid
| Name | Required | Description | Default |
|---|---|---|---|
| assetIndex | Yes | Asset index for the coin (0 for BTC, 1 for ETH, etc.) | |
| clientOrderId | No | Client order ID (optional) | |
| isBuy | Yes | True for buy order, false for sell order | |
| price | Yes | Order price as string | |
| reduceOnly | No | Whether this is a reduce-only order (optional, default false) | |
| size | Yes | Order size as string | |
| timeInForce | Yes | Time in force |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
No annotations are provided, so the description carries the full burden of behavioral disclosure. It states the tool places orders but doesn't mention critical traits like authentication requirements, rate limits, potential side effects (e.g., fund deductions), error handling, or response format. For a financial transaction tool, this is a significant gap in transparency.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is a single, efficient sentence that directly states the tool's function without unnecessary words. It's front-loaded and wastes no space, making it easy to parse quickly.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Given the complexity of a financial order placement tool with no annotations and no output schema, the description is insufficient. It lacks details on authentication, error cases, return values, and differentiation from siblings like 'place_trigger_order', leaving critical context gaps for safe and effective use.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema description coverage is 100%, with each parameter well-documented in the schema (e.g., assetIndex mapping, isBuy meaning). The description adds no additional parameter semantics beyond the schema, so it meets the baseline of 3 for high coverage without extra value.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the action ('place') and resource ('limit or trigger order on Hyperliquid'), making the purpose evident. However, it doesn't distinguish this tool from its sibling 'place_trigger_order', which appears to be a more specific variant, leaving some ambiguity about when to use one versus the other.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description provides no guidance on when to use this tool versus alternatives. It doesn't mention prerequisites (e.g., authentication, account setup), compare it to 'place_trigger_order', or indicate scenarios where it's appropriate (e.g., trading strategies). This lack of context makes it harder for an agent to decide when to invoke it.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
place_trigger_orderC
Place a trigger order (stop-loss or take-profit) on Hyperliquid
| Name | Required | Description | Default |
|---|---|---|---|
| assetIndex | Yes | Asset index for the coin (0 for BTC, 1 for ETH, etc.) | |
| clientOrderId | No | Client order ID (optional) | |
| isBuy | Yes | True for buy order, false for sell order | |
| isMarket | Yes | Whether to execute as market order when triggered | |
| reduceOnly | No | Whether this is a reduce-only order (optional, default false) | |
| size | Yes | Order size as string | |
| triggerPrice | Yes | Trigger price as string | |
| triggerType | Yes | Trigger type |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations provided, the description carries full burden for behavioral disclosure but offers minimal information. It states what the tool does but doesn't describe execution behavior (what happens when triggered), potential risks, authentication requirements, rate limits, or error conditions. For a financial trading tool with no annotation coverage, this represents a significant transparency gap.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is a single, efficient sentence that communicates the core purpose without unnecessary words. It's appropriately sized for a tool with comprehensive schema documentation and gets straight to the point with zero wasted verbiage.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
For a financial trading tool with 8 parameters, no annotations, and no output schema, the description is insufficient. It doesn't address critical context like execution mechanics, risk implications, authentication requirements, or response format. The combination of complex functionality with minimal behavioral disclosure creates significant gaps for an AI agent trying to use this tool appropriately.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema description coverage is 100%, so the schema already documents all 8 parameters thoroughly. The description adds no additional parameter information beyond what's in the schema. The baseline score of 3 reflects adequate parameter documentation through the schema alone, though the description doesn't enhance understanding of parameter relationships or usage patterns.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the action ('Place a trigger order') and specifies the resource type ('stop-loss or take-profit') and platform ('on Hyperliquid'). It distinguishes from the sibling 'place_order' by focusing specifically on conditional trigger orders rather than immediate execution orders. However, it doesn't explicitly contrast with 'cancel_order' or other order management tools.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description provides no guidance on when to use this tool versus alternatives. It doesn't mention when trigger orders are appropriate compared to regular orders, nor does it reference the sibling 'place_order' for immediate execution needs. There's no discussion of prerequisites, timing considerations, or typical use cases for stop-loss versus take-profit orders.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections. Dates show when Glama detected each change.
11 tool updates
v1.0.0- First observed
cancel_all_orders - First observed
cancel_order - First observed
get_all_mids - First observed
get_candle_snapshot - First observed
get_l2_book - First observed
get_open_orders - First observed
get_portfolio - First observed
get_user_fills - First observed
get_user_fills_by_time - First observed
place_order - First observed
place_trigger_order
TDQS
Each tool has a clearly distinct purpose with no significant overlap. For example, cancel_all_orders vs cancel_order handle different cancellation scopes, and get_user_fills vs get_user_fills_by_time provide historical data with different filtering approaches. The descriptions make it easy to distinguish between trading actions, data queries, and order management functions.
All tools follow a consistent verb_noun naming pattern with snake_case throughout. The verbs are clear and appropriate (get, cancel, place) and the nouns specify the exact resource or action. There are no deviations in style or convention across the 11 tools.
With 11 tools, this server provides comprehensive coverage for cryptocurrency trading on Hyperliquid without being overwhelming. The count aligns well with the domain scope, covering order placement/cancellation, market data access, portfolio tracking, and trade history—all essential functions for trading automation.
The toolset covers most core trading operations including order management, market data, portfolio tracking, and historical fills. A minor gap exists in account management tools (e.g., deposit/withdrawal, funding rates) and advanced order types beyond limit/trigger orders, but agents can execute basic to intermediate trading workflows effectively.
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Connectors
Non-custodial Hyperliquid perp trading: live markets, account state, user-armed order execution
Real-time & historical Hyperliquid/Lighter: L4/L2/L3, fills, funding, OI, liquidations, candles
Hyperliquid - 2 tools for perpetuals, options, and position data
Hyperliquid perp market data for LLMs: OHLCV, funding, open interest, positioning & forecasts.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/t3rmed/hyperliquid-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server