Skip to main content
Glama

Ironflow: Hyperliquid data

Wallet PnL curve

get_user_pnl_series
Read-only

How has a Hyperliquid wallet's PnL gone over time? Its realized PnL over time: buckets with realized PnL and fees paid in each, by default daily over the last 30 days. Add the buckets up for a running PnL curve. Realized only: unrealized PnL on open positions is in get_user_state. For totals over a range use get_user_summary.

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": {
      "address": "<address>"
    },
    "name": "get_user_pnl_series"
  }
}

Input Schema

NameRequiredDescriptionDefault
toNoWindow end: Unix ms or seconds, ISO 8601 (2026-10-01T00:00:00Z), or relative (-7d, -24h, now). Default now
fromNoWindow start: Unix ms or seconds, ISO 8601 (2026-10-01T00:00:00Z), or relative (-7d, -24h, now). Default 30 days ago
addressYes0x-prefixed 20-byte hex address
bucket_msNoBucket size in milliseconds: 3600000 for hourly, 86400000 for daily (default)

Output Schema

NameRequiredDescriptionDefault
toNoWindow end, Unix milliseconds
dataNoBuckets
fromNoWindow start, Unix milliseconds
bucketNoBucket size
noticeNoA note from the API: how a market name was read, why data starts later than asked, or a next step such as a free key
addressNoWallet address (0x…)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedOutput schema / properties / notice / description
      Previous value: -"Present when the API added a note: how a market name was read, that data starts later than asked because of the history window, or a next step such as a free key"New value: +"A note from the API: how a market name was read, why data starts later than asked, or a next step such as a free key"
  2. Changed2 schema fields changed
    • changedInput schema / properties / from / description
      Previous value: -"Window start: Unix ms or seconds, or ISO 8601 (2026-10-01T00:00:00Z). Default 30 days ago"New value: +"Window start: Unix ms or seconds, ISO 8601 (2026-10-01T00:00:00Z), or relative (-7d, -24h, now). Default 30 days ago"
    • changedInput schema / properties / to / description
      Previous value: -"Window end: Unix ms or seconds, or ISO 8601 (2026-10-01T00:00:00Z). Default now"New value: +"Window end: Unix ms or seconds, ISO 8601 (2026-10-01T00:00:00Z), or relative (-7d, -24h, now). Default now"
  3. Changed2 schema fields changed
    • changedInput schema / properties / bucket_ms / description
      Previous value: -"Bucket size in ms (e.g. 3600000 for 1h)"New value: +"Bucket size in milliseconds: 3600000 for hourly, 86400000 for daily (default)"
    • changedInput schema / properties / from / description
      Previous value: -"Window start: Unix ms or seconds, or ISO 8601 (2026-10-01T00:00:00Z)"New value: +"Window start: Unix ms or seconds, or ISO 8601 (2026-10-01T00:00:00Z). Default 30 days ago"
  4. First observed

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and openWorldHint=true, so the safety profile is covered. The description adds genuinely useful behavioral context beyond that: only realized PnL is returned, fees paid are included per bucket, and results are pre-bucketed rather than a single cumulative figure. It stops short of discussing pagination or bucket-count limits for very wide windows, which would be the remaining gap.

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?

Four tight sentences: a leading question that frames the resource, the mechanics, the exclusion, and the routing alternative. It is front-loaded with the purpose and every sentence carries either scope or differentiation information.

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?

An output schema exists, so return values need no explanation, and the tool is a single required-address read with a handful of optional window parameters. Given that, the description covers everything an agent needs: what is measured, what is excluded, the default window, and which sibling to use for adjacent questions.

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

Parameters3/5

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

Schema coverage is 100%, with from/to/bucket_ms fully documented including formats and defaults, so the schema does the heavy lifting. The description only echoes the default window and bucket granularity ('by default daily over the last 30 days') and adds the one genuinely new idea — that buckets are meant to be summed. Baseline 3 is appropriate.

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 description states a specific verb and resource — a Hyperliquid wallet's realized PnL bucketed over time — and immediately clarifies the aggregation model ('Add the buckets up for a running PnL curve'). It also explicitly distinguishes itself from get_user_state (unrealized) and get_user_summary (range totals), so an agent can pick it apart from siblings without opening schemas.

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 names both alternatives and the exact conditions that select them: use get_user_state for unrealized PnL on open positions, use get_user_summary for totals over a range. The default window (daily buckets, last 30 days) is stated so an agent knows the no-argument behavior.

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.