Skip to main content
Glama

市场成交

get_market_trades
Read-onlyIdempotent

某市场最近的合约成交(开平仓、清算、ADL),含方向、规模、价格、盈亏、手续费。

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": {
      "market": "<market>",
      "limit": "<limit>"
    },
    "name": "get_market_trades"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitYes
marketYes市场:短链接 slug、市场合约地址、代币地址、代币代号,或标的代号如 BTC / ETH / XAU(表示该标的的官方市场)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • removedInput schema / properties / market / maxLength
      Removed value: -80
    • removedInput schema / properties / market / minLength
      Removed value: -1
    • removedInput schema / properties / market / type
      Removed value: -"string"
  2. First observed

TDQS

B3.4/5.0
Behavior4/5

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

Annotations already establish readOnly, idempotent, non-destructive, closed-world behavior, so the safety profile is covered. The description adds real value beyond that by disclosing which trade events are included (including liquidations and ADL) and which fields come back — material information given there is no output schema. It does not define the '最近' time window or ordering, which is the main residual gap.

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?

A single compact sentence that front-loads the scope (recent, per-market) before the event types and returned fields. No redundant restatement of the title, though the dense parenthetical list is slightly harder to scan than a structured sentence would be.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a two-parameter, read-only listing tool with no output schema, the description covers purpose, event coverage, and return fields adequately. It still leaves the '最近' lookback window and any ordering/pagination behavior unspecified, which matters for a tool capped at 200 rows.

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 50%: the tricky `market` parameter (slug, contract address, token address, token symbol, or underlying symbol like BTC/ETH/XAU) is fully documented in the schema. The description adds no parameter detail of its own and says nothing about `limit` beyond what its min/max/default already convey, so the schema is doing the heavy lifting.

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 verb and resource — recent contract trades in a given market — and enumerates the trade kinds covered (open/close, liquidation, ADL) plus returned fields (direction, size, price, PnL, fees). The '某市场' scoping implicitly separates it from account- or token-scoped siblings, though no sibling is named explicitly.

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

Usage Guidelines2/5

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

There is no when-to-use or when-not guidance. With get_account_trades, get_token_trades, and get_liquidations in the sibling set, an agent gets no explicit rule for choosing market-level trades over those alternatives; the market scoping is only implicit in the wording.

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