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

market_calendar

按显式 market 查询交易日历,支持 CN(上交所日历)与 HK,US 预留。含完整交易日、半日市及休市日。最多 366 天,days 为含首尾日期的列表。calendar_known=false 或 is_open=null 表示未覆盖,不能按工作日推测。is_settlement_day=null 表示交收属性未知。CN 的 observed_at 为所查记录最近写入时间,HK 提供发布版本和最后成功检查时间。

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>",
      "start": "<start>",
      "end": "<end>"
    },
    "name": "market_calendar"
  }
}

Input Schema

NameRequiredDescriptionDefault
_jqNoJMESPath,对 data 求值(写 items[*].id)
endYes结束日期 YYYY-MM-DD,包含当日,最多 366 天
micNoCN 缺省 XSHG,HK 缺省 XHKG
startYes起始日期 YYYY-MM-DD,包含当日
_spillNotrue=全量落盘,只回摘要与取数地址
marketYes日历支持 CN、HK
_fieldsNo逗号分隔的直接字段;有 items 时投影每行,否则投影 data;外层字段或嵌套结构用 _jq
_intentNo用户原问题一句话,仅分析用,可留空
_max_bytesNo响应字节上限,默认约 50 KB
_max_bytes_modeNo正文超限处理,默认 truncate 保留前缀

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / market / description
      Previous value: -"必填市场范围:CN/HK/US。本组端点当前仅接入 HK;CN/US 不回退港股,返回 market_not_supported;原有 A 股端点保持兼容"New value: +"日历支持 CN、HK"
    • changedInput schema / properties / mic / description
      Previous value: -"ISO 10383 交易场所代码,HK 省略时取 XHKG;未来 US 按场所选择日历"New value: +"CN 缺省 XSHG,HK 缺省 XHKG"
  2. First observed

TDQS

A3.7/5.0
Behavior4/5

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

The description goes well beyond the annotations by disclosing null semantics (calendar_known=false, is_open=null, is_settlement_day=null), a warning against weekday inference, freshness semantics for CN's observed_at versus HK's publish version and last successful check, and the 366-day cap. The annotations only cover the safety profile (destructiveHint=false), so this added data-coverage context is genuinely valuable. One caveat: the annotations set readOnlyHint=false for what the description frames as a query, but since the description never asserts read-only behavior outright this is a mismatch rather than a clear contradiction.

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 description is dense but front-loaded: market scope first, then output content, then the 366-day/inclusive-range constraint, then null-handling caveats. Nearly every clause carries operational meaning, though the final sentence bundling CN observed_at with HK version metadata is slightly compressed relative to its importance.

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?

There is no output schema, so the description must carry return-value meaning, and it does by naming the key fields (days, is_open, calendar_known, is_settlement_day, observed_at, publish version). With 10 parameters where 6 are generic output-shaping wrappers already fully documented in the schema, the remaining gap is minor. Coverage of US being unsupported is stated, which is the main completeness risk for a caller.

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 description coverage is 100%, so the schema already documents market, mic defaults, start/end inclusive semantics, and the generic _jq/_fields/_spill/_max_bytes controls. The description largely restates the 366-day cap and inclusive range, and its note about 'days 为含首尾日期的列表' describes output rather than parameters. Baseline 3 is appropriate.

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 verb and resource ('按显式 market 查询交易日历') and scopes coverage to CN (SSE calendar) and HK, with US explicitly reserved. It clearly identifies what is returned (trading days, half-day sessions, closed days). It does not distinguish itself from calendar siblings such as calendar_upcoming or calendar_reports, which keeps it from 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?

It implies usage by requiring an explicit market and rules out US ('US 预留'), and it warns not to infer from weekdays when calendar_known=false or is_open=null. However, it never states when to prefer this tool over calendar_upcoming or calendar_reports, so routing between calendar siblings is left to inference.

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