Skip to main content
Glama

账户成交

get_account_trades
Read-onlyIdempotent

Retrieve a wallet’s historical trades and filter them by market; access is limited to the wallet owner or an authorized subaccount.

Instructions

一个钱包的历史成交,可按市场筛选。仅允许本人 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>",
      "limit": "<limit>"
    },
    "name": "get_account_trades"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitYes
marketNo市场:短链接 slug、市场合约地址、代币地址、代币代号,或标的代号如 BTC / ETH / XAU(表示该标的的官方市场)
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?

Annotations already declare readOnlyHint=true, idempotentHint=true and destructiveHint=false, so the safety profile is covered. The description adds genuinely new behavior: an authorization constraint stating that only the owner's API Key / JWT or an on-chain-authorized sub-account may query. It does not disclose ordering, pagination, or time-range behavior, which keeps it short of 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.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two short sentences: the purpose is front-loaded and the authorization caveat is appended separately. Zero redundant wording; the only slight loss is that the filter and auth constraints are not visually separated into scannable clauses.

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 read-only list tool with three parameters, a well-described market field, and annotations covering safety, the description supplies purpose, filterability and access control. Remaining gaps such as result ordering and how limit bounds pagination are minor for this complexity level and no output schema is claimed.

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 67% and the schema itself describes market in detail (slug, contract address, token address, symbol, or underlying like BTC/ETH/XAU) and account as the wallet address. The description only restates market filtering, adding nothing about the limit parameter's default 50 and max 200, so baseline 3 applies.

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 states a specific resource and scope: '历史成交' (historical fills) of '一个钱包' (a single wallet), with market filtering. This distinguishes it in substance from the market-wide or token-wide siblings, though it never names get_market_trades or get_token_trades as the alternatives for non-account-scoped queries.

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 phrase '可按市场筛选' and the auth constraint limits who may call it, but there is no explicit when-to-use vs. when-not-to-use guidance and no mention that get_market_trades / get_token_trades exist for non-wallet-scoped views. The caller must infer the routing.

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