Skip to main content
Glama
This connector has been deprecated

Replaced by echopai-mcp.

Duplicate listing; superseded by io.github.echopai/echopai-mcp (official MCP Registry entry).

trades

个股逐笔聚合与明细(A 股)。granularity 选 1m/5m(默认)/15m/30m/60m 走分钟聚合(主动买卖比、20 万大单统计、真 VWAP;中性单不进 buy_ratio 分母);选 tick(或传 after_seq/min_amount/side/from/to)走实验性逐笔明细(⚠️ EXPERIMENTAL,3 秒快照抓取非交易所逐笔,无 09:25 竞价)。详见 read_guide(guide="data")。

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": {
      "code": "<code>"
    },
    "name": "trades"
  }
}

Input Schema

NameRequiredDescriptionDefault
toNo仅 tick 模式:结束时刻 HH:MM(北京时间,含)
_jqNoJMESPath,对 data 求值(写 items[*].id)
codeYesCanonical code of one A-share security (e.g. SSE:600519)
dateNoTrading day YYYY-MM-DD (China time). Omit for the latest day that has data.
fromNo仅 tick 模式:起始时刻 HH:MM(北京时间,含)
sideNo仅 tick 模式:B=主动买,S=主动卖,M=中性
limitNo仅 tick 模式:每页条数(1-2000,默认 500)
_spillNotrue=全量落盘,只回摘要与取数地址
_fieldsNo逗号分隔的直接字段;有 items 时投影每行,否则投影 data;外层字段或嵌套结构用 _jq
_intentNo用户原问题一句话,仅分析用,可留空
after_seqNo仅 tick 模式:游标,取 seq 大于该值的记录(用上一页 next_after_seq)
_max_bytesNo响应字节上限,默认约 50 KB
min_amountNo仅 tick 模式:最小成交额过滤(元)
granularityNo粒度:1m/5m(默认)/15m/30m/60m 为分钟聚合,tick 为实验性逐笔明细
_max_bytes_modeNo正文超限处理,默认 truncate 保留前缀

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.8/5.0
Behavior4/5

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

Beyond the annotations (which only declare the generic non-read-only, non-destructive profile), the description discloses substantive behavior: tick mode is EXPERIMENTAL, sampled from 3-second snapshots rather than exchange prints, and excludes the 09:25 call auction. It also discloses aggregation semantics, notably that neutral orders are excluded from the buy_ratio denominator. Return shape and pagination behavior are left implicit, which keeps it off 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?

The scope is front-loaded in the first clause, then the two modes are separated by a clear 选.../选... parallel structure with the default marked. Dense but no filler sentences. The single-paragraph run-on with inline backticks makes it slightly harder to scan than it needs to be for a 15-parameter tool.

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?

Without an output schema, the description should describe what comes back, but it never explains the response shape for either mode — no field list, no mention of items/next_after_seq even though the cursor semantics depend on it. It offsets this partially by pointing at read_guide(guide="data") and by flagging the experimental caveat. Adequate for a routing decision, thin for actually interpreting results.

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 100%, so the schema already documents each parameter, and that sets the baseline at 3. The description does add one genuinely non-obvious rule the schema cannot express — that passing after_seq/min_amount/side/from/to implicitly selects tick mode — plus the neutral-order exclusion for buy_ratio. That is real value, but it is narrowly scoped relative to 15 parameters.

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 opening line names both the verb and the resource precisely — per-security tick-level aggregation and detail for A-shares — and immediately splits it into two concrete output modes (minute aggregation vs. tick detail). An agent can tell what data it produces. What it does not do is distinguish itself from adjacent siblings such as bars_batch or fundflow, so the boundary with those tools has to be inferred.

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

Usage Guidelines4/5

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

It gives explicit routing logic inside the tool: pick 1m/5m/15m/30m/60m for aggregates, pick tick (or supply after_seq/min_amount/side/from/to) for detail, and it steers the reader to read_guide(guide="data") for further detail. That is clear selection context. However, it never states when this tool should be preferred over other market-data siblings, and it gives no hard exclusions.

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