Skip to main content
Glama

echopai-mcp

market_calendar

按显式 market 查询交易日历,当前仅接入 HK,CN/US 预留且不回退。含完整交易日、半日市及休市日。最多 366 天,days 为含首尾日期的列表。calendar_known=false 或 is_open=null 表示未覆盖,不能按工作日推测。is_settlement_day=null 表示交收属性未知。source 返回发布版本与最后成功检查时间。

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 天
micNoISO 10383 交易场所代码,HK 省略时取 XHKG;未来 US 按场所选择日历
startYes起始日期 YYYY-MM-DD,包含当日
_spillNotrue=全量落盘,只回摘要与取数地址
marketYes必填市场范围:CN/HK/US。本组端点当前仅接入 HK;CN/US 不回退港股,返回 market_not_supported;原有 A 股端点保持兼容
_fieldsNo逗号分隔的直接字段;有 items 时投影每行,否则投影 data;外层字段或嵌套结构用 _jq
_intentNo用户原问题一句话,仅分析用,可留空
_max_bytesNo响应字节上限,默认约 50 KB
_max_bytes_modeNo正文超限处理,默认 truncate 保留前缀

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior4/5

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

No annotations exist, so the description carries the burden and does so well: it discloses the HK-only coverage, the no-fallback rule, the 366-day cap, and the meaning of sentinel values (calendar_known=false, is_open=null, is_settlement_day=null) including the warning not to infer from weekdays. Remaining gaps are minor: nothing about read-only semantics, rate limits, or how half-day sessions are represented as a field.

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 most decision-relevant fact (HK-only, no fallback) and tightly packed with no filler sentences. It is comma-spliced and dense to the point of reading like a spec sheet, but every clause carries information.

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?

With ten parameters and no output schema, the description does the important work of explaining the key return-field semantics (calendar_known, is_open, is_settlement_day, source, days) so the agent can interpret responses without a schema. It stops short of enumerating the full response shape, e.g. the field that flags a half-day session.

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 baseline is 3. The description restates what the schema already documents for market (CN/HK/US, HK-only) and the 366-day inclusive range, and only adds genuinely new meaning with the note that 'days' is a list inclusive of both endpoints. The _jq/_spill/_fields paging and projection parameters are left entirely to 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?

States a concrete verb+resource (query trading calendar) plus the scope that matters: an explicit market, currently only HK, with CN/US reserved and explicitly no fallback. An agent can tell this apart from calendar_reports/calendar_upcoming and knows the market coverage boundary before reading 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?

Gives clear conditions: query by explicit market, only HK is wired today, CN/US returns market_not_supported rather than silently falling back, and mentions the legacy A-share endpoints remain compatible. It does not name a specific sibling to use for CN/US or for forward-looking calendar needs, so routing is implied rather than spelled out.

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.