Skip to main content
Glama

portal_hyperliquid_query_fills

Retrieve raw Hyperliquid fill records filtered by trader, coin, direction, builder, or fee token, including PnL and builder context.

Instructions

Query raw individual Hyperliquid fills with trader, coin, fee, PnL, and builder context.

COMMON USER ASKS:

  • Recent BTC fills

WHEN TO USE:

  • You need raw fill records on Hyperliquid.

  • You want to filter by trader, coin, direction, builder, or fee token.

DON'T USE:

  • You want the big picture, top traders, grouped aggregates, or candles instead of raw fill rows.

EXAMPLES:

  • Recent BTC fills: {"network":"hyperliquid-fills","timeframe":"1h","coin":["BTC"],"limit":20}

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
dirNoTrade direction: "Open Long", "Close Long", "Open Short", "Close Short"
coinNoAsset symbols (e.g., "ETH", "BTC", "SOL")
userNoTrader wallet addresses (0x-prefixed, lowercase)
cloidNoClient order IDs (0x-prefixed hex)
limitNoMax fills to return (default: 50, max: 200)
cursorNoContinuation cursor from a previous response
builderNoBuilder addresses (0x-prefixed, lowercase)
networkNoNetwork name (default: 'hyperliquid-fills'). Optional when continuing with cursor.hyperliquid-fills
to_blockNoEnding block number
fee_tokenNoFee token symbols
timeframeNoTime range (e.g., '1h', '24h'). Alternative to from_block/to_block.
from_blockNoStarting block number (use this OR timeframe)
include_pnlNoInclude closedPnl and startPosition fields
to_timestampNoEnding timestamp. Accepts Unix seconds, Unix milliseconds, ISO datetime, or relative input like "now".
finalized_onlyNoOnly query finalized blocks
from_timestampNoStarting timestamp. Accepts Unix seconds, Unix milliseconds, ISO datetime, or relative input like "1h ago".
response_formatNoResponse format: defaults to 'compact' for chat-friendly output. Use 'summary' for aggregate stats or 'full' when you truly need every fill field.
include_builder_infoNoInclude builder and builderFee fields
Behavior4/5

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

While no annotations exist, the description implies read-only operation and mentions cursor for continuation. It does not explicitly state safety traits like no side effects, but the behavioral context is adequate.

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?

The description is well-structured with clear sections, no unnecessary text, and an example that demonstrates usage. Every sentence serves a purpose.

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 tool with 18 parameters and no output schema, the description covers purpose, usage, and an example. It could be more complete by explaining pagination or return format, but it is sufficient.

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 baseline is 3. The description adds value by providing a concrete example and common user asks, which helps understand parameter usage beyond schema descriptions.

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?

The verb 'Query' and resource 'raw individual Hyperliquid fills' are specific. The description clearly states what the tool does and distinguishes from siblings by focusing on raw fill records.

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?

Explicit 'WHEN TO USE' and 'DON'T USE' sections provide clear guidance. It contrasts with aggregated or analytics tools, helping the agent decide when to invoke this tool.

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

Install Server

Other Tools

Latest Blog Posts

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/subsquid-labs/portal-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server