Skip to main content
Glama

邀请返佣统计

get_account_referrals
Read-onlyIdempotent

Retrieve per-market referral stats for a wallet acting as referrer: invited traders, 7-day active users, 24-hour volume, generated closing fees, and claimed rebates.

Instructions

一个钱包作为邀请人的统计:邀请到的交易者数、近 7 天活跃数、他们 24 小时交易量、带来的盈利平仓费、已领返佣,按市场列出。仅允许本人 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>"
    },
    "name": "get_account_referrals"
  }
}

Input Schema

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

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, destructiveHint=false and openWorldHint=false, so the safety profile is covered. The description adds genuinely new context beyond that: the authorization requirement (own API Key/JWT or on-chain-authorized sub-accounts) and the fact that results are grouped by market. It does not discuss rate limits or the shape of the returned payload, which keeps it from a 5.

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?

Two sentences, front-loaded with the returned metric set and followed by the access constraint. Every clause carries information — no restatement of the name or title, no filler.

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 one required parameter, no output schema, and rich annotations, the description does most of the work by enumerating the returned metrics and the auth constraint. Minor remaining gap: the 7-day/24h windows are mentioned as metric definitions but the per-market response structure and any defaults are not described, which an agent would only learn by calling it.

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% with one parameter, so the schema baseline alone would be a 3. The description adds role semantics the schema does not: the account is the *referrer* whose invitee statistics are being returned, and the auth clause implies it must be the caller's own account. That is meaningful disambiguation for a single-address parameter.

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 the resource precisely (a wallet acting as referrer) and enumerates the exact metrics returned: invited trader count, 7-day active count, 24h volume, generated closing fees, claimed rebates, broken out by market. That enumeration distinguishes it from siblings like get_account_stats or get_account_rewards. It stops short of explicitly naming an alternative, so it is not a 5.

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 — an agent can infer 'call this when you need referral/rebate statistics for an account.' The only explicit condition is an authorization restriction (own API Key/JWT or on-chain-authorized sub-account), which gates who may call rather than when to prefer this tool over get_account_rewards or get_account_stats. No exclusions or alternatives are stated.

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