Skip to main content
Glama

OnchainCheck Prediction Markets

Wallet trader pnl

wallet_trader_pnl
Read-onlyIdempotent

A wallet's trading P&L across venues: Hyperliquid (P&L, volume and return for day, week, month and all time, account value, open perp positions with notional, unrealized P&L and margin use) and Polymarket (P&L, volume and leaderboard rank per window, open positions' value, name and X handle), plus the combined P&L per window. Takes a signer wallet or a Polymarket proxy wallet. From the venues' public APIs. Not advice. Costs $0.01 USDC on Base via x402.

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": "wallet_trader_pnl"
  }
}

Input Schema

NameRequiredDescriptionDefault
addressYesWallet address (EVM)

Output Schema

NameRequiredDescriptionDefault
moreNostring, e.g. "GET /hyperliquid/trader and /polymarket/trader for position
venuesNoobject
addressNostring, e.g. "0x31ca8395cf837de08b24da3f660e77761dfb974b"
disclaimerNostring, e.g. "Public venue data, not advice."
venuesFoundNonumber, e.g. 1
combinedNoteNostring, e.g. "Hyperliquid P&L (perps and spot) plus Polymarket P&L for th
combinedPnlUsdNoobject

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, openWorld and non-destructive, so the safety profile is covered. The description adds genuinely new behavioral context: the data comes from the venues' public APIs, it accepts either a signer wallet or a Polymarket proxy wallet, it carries a $0.01 USDC x402 charge on Base, and it explicitly disclaims being advice.

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 the resource and its per-venue breakdown, and every clause carries information (coverage, wallet types, source, cost, disclaimer). It is delivered as one long sentence with heavily nested parentheses, which makes it denser than ideal but not padded.

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?

An output schema exists, so return-shape explanation is not required, and the description already flags the venues, wallet types and payment. The main remaining gap is edge-case behavior, such as what happens when the wallet has no activity on one of the two venues or when the x402 payment fails.

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% and the single parameter is documented as an EVM address with a pattern. The description nevertheless adds real meaning beyond the schema by clarifying that the address may be a signer wallet or a Polymarket proxy wallet, which affects what values are valid.

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 names a specific resource (a wallet's trading P&L) and enumerates exactly what is covered per venue, including the combined cross-venue figure. It is clearly distinguishable from the per-venue profile siblings because it aggregates Hyperliquid and Polymarket together, though it never names a sibling to contrast with explicitly.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage is only implied: the reader infers this is the tool to call when they want P&L rather than profile data. There is no explicit when-to-use, when-not-to-use, or pointer to an alternative (e.g. the single-venue profile tools) for narrower queries.

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