Skip to main content
Glama

账户战绩

get_account_stats
Read-onlyIdempotent

Query a wallet’s historical performance—realized PnL, volume, win rate, liquidations, fees by market, LP flows, and claimed rewards—using authorized API key/JWT or delegated subaccount access.

Instructions

一个钱包的历史战绩:合约已实现盈亏、交易量、胜率、清算次数、手续费(总计和分市场),LP 存取金额,已领取的分红 / 挖矿 / dev / 返佣,亏损挖矿所得。仅允许本人 API Key / JWT 或已链上授权的子账户查询。

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": {
      "account": "<account>",
      "range": "<range>"
    },
    "name": "get_account_stats"
  }
}

Input Schema

NameRequiredDescriptionDefault
rangeYesall
accountYes用户钱包地址(交易的签名人和收款人)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.7/5.0
Behavior4/5

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

The annotations already declare readOnly, idempotent, non-destructive, and closed-world, so the safety profile is covered. The description adds genuinely new behavioral context beyond them: an authorization constraint (only the wallet owner's API key/JWT or an on-chain-authorized sub-account may query), which is exactly the kind of access precondition an agent needs before calling. It does not describe cost, rate limits, or how the aggregation handles partial history.

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?

Two sentences: the first front-loads the resource and then enumerates the returned metrics, the second states the access precondition. The dense metric enumeration is justified because it tells the agent what the payload contains in the absence of an output schema, though the run-on list could have been grouped more scannably.

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?

With no output schema, the description carries the burden of describing return content and does so by enumerating the metric categories, and it covers authorization. The remaining shortfall is the 'range' parameter's semantics, which are left entirely to the enum, and no indication of whether per-market fee breakdowns depend on market context.

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 description coverage is 50%: 'account' is documented in the schema as the signing and receiving wallet address, while 'range' is only an enum with a default. The description does not explain what each range value covers (rolling window vs. all-time) or that the aggregation scopes all listed metrics, so it adds little meaning beyond the structured fields. Baseline 3 is appropriate at this coverage level.

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 uses a specific verb+resource ('a wallet's historical performance') and enumerates the included metrics — realized contract PnL, volume, win rate, liquidation count, fees, LP flows, claimed rewards — which effectively distinguishes it from list-style siblings such as get_account_trades or get_account_rewards. The only gap is that it never explicitly frames itself as an aggregate/summary view versus those detail endpoints, so the boundary is inferred rather than stated.

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 implied by the metric list and by the access restriction (own API key/JWT or an on-chain-authorized sub-account), which tells the agent who may call it. However, there is no explicit guidance on when to prefer this over get_stats, get_account_rewards, or get_account_trades, and no note on what to do when the requested range yields no data.

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