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).

margin

A 股融资融券与担保券(T+1,最新行通常为上一交易日)。传 code 查个股两融日序列(默认 include_collateral=true 一并附带担保券 collateral 块);省略 code 查全市场三所汇总与杠杆结构(含 avg_maintenance_ratio)。⚠️ financing_buy_cny 为毛买(含日内回转),判方向只看 financing_net_buy_cny;null 表示未公布非 0。

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "margin"
  }
}

Input Schema

NameRequiredDescriptionDefault
toNo结束日 YYYY-MM-DD(仅传 code 时有效,须与 from 成对)
_jqNoJMESPath,对 data 求值(写 items[*].id)
codeNo规范 A 股代码(如 SSE:600519);传入查个股两融,省略查全市场两融趋势
daysNo回看自然日(1-250,默认 60);传 from/to 时忽略
fromNo起始日 YYYY-MM-DD(仅传 code 时有效,须与 to 成对)
_spillNotrue=全量落盘,只回摘要与取数地址
_fieldsNo逗号分隔的直接字段;有 items 时投影每行,否则投影 data;外层字段或嵌套结构用 _jq
_intentNo用户原问题一句话,仅分析用,可留空
_max_bytesNo响应字节上限,默认约 50 KB
_max_bytes_modeNo正文超限处理,默认 truncate 保留前缀
include_collateralNo仅传 `code` 时有效,默认 true:并发附带个股担保券日序列(collateral)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.3/5.0
Behavior4/5

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

Adds substantial behavior beyond the annotations: T+1 lag with the latest row typically being the prior trading day, `null` meaning unpublished rather than zero, and the warning that `financing_buy_cny` is gross buy including intraday round-trips so direction must be read from `financing_net_buy_cny`. The non-read-only/idempotent annotations are consistent with the `_spill` to-disk behavior documented in the schema, so nothing is contradicted, though the description itself never explains the spill/response-size mechanics.

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?

Front-loaded with the resource and the two modes, then caveats as a short ⚠️ clause; nearly every sentence carries information an agent needs. It is dense with backtick markup and parenthetical qualifications, which costs a little readability but no sentence is 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?

For an 11-parameter tool with no output schema, the description supplies the key data semantics — series vs aggregate, the `collateral` block, `avg_maintenance_ratio`, gross-vs-net field traps, null meaning, and T+1 staleness. What is not covered is response size/pagination behavior (`_max_bytes`, `_spill`, `_jq`), which is left entirely to the schema.

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%, so the baseline is 3; the description still adds cross-parameter semantics the schema states only per-field — that `code` toggles the entire response mode, and that `include_collateral` (default true) and `from`/`to` are only meaningful when `code` is present. It does not touch the `_jq`/`_fields`/`_spill` control parameters, but those are already fully documented in the schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description names the exact resource (A-share 融资融券 and 担保券 daily series) and separates two concrete modes: passing `code` yields a per-stock series, omitting it yields market-wide aggregates across the three exchanges plus leverage structure (`avg_maintenance_ratio`). An agent knows precisely what data comes back in each mode without opening the schema.

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 conditional guidance: 传 `code` 查个股两融 (with default `include_collateral=true` adding the collateral block) versus 省略 `code` 查全市场三所汇总. That is clear when-to-use-each-mode instruction. It does not mention the sibling `margin_movers` or when to prefer movers over the raw series, so it falls short of a 5.

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