Skip to main content
Glama

China Futures Clock

trading_day

Read-onlyIdempotent

Exchange-local trading date and civil/incoming night attribution. Mainland China and the 24 MO scopes; SGX is equity/FX/rates, HKEX is cash equities. Outside published coverage is unknown. Official exchange notices take precedence.

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": {
      "exchange": "<exchange>"
    },
    "name": "trading_day"
  }
}

Input Schema

NameRequiredDescriptionDefault
dateNoValid calendar date in YYYY-MM-DD form, e.g. 2026-11-06, interpreted as the exchange-local trading date rather than UTC; omitted = today in the exchange/product time zone (UTC fallback if the zone is unavailable).
exchangeYesExchange code: SHFE, INE, DCE, CZCE, GFEX, CFFEX, SGE, SSE, SZSE, BSE, HKEX, NB, SB, TWSE, KRX, JPX, SGX, BMD, LME, ICE, COMEX, CBOT, CME, NYSE, NYMEX, EUREX or OSE; case-insensitive (shfe becomes SHFE), or an FC product slug such as shfe-cu (lowercased), at most 40 characters; required unless marked optional, with results limited to published coverage.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changed
    • addedInput schema / properties / date / description
      Added value: +"Valid calendar date in YYYY-MM-DD form, e.g. 2026-11-06, interpreted as the exchange-local trading date rather than UTC; omitted = today in the exchange/product time zone (UTC fallback if the zone is unavailable)."
    • addedInput schema / properties / date / examples
      Added value: +[
      +  "2026-11-06"
      +]
    • addedInput schema / properties / exchange / description
      Added value: +"Exchange code: SHFE, INE, DCE, CZCE, GFEX, CFFEX, SGE, SSE, SZSE, BSE, HKEX, NB, SB, TWSE, KRX, JPX, SGX, BMD, LME, ICE, COMEX, CBOT, CME, NYSE, NYMEX, EUREX or OSE; case-insensitive (shfe becomes SHFE), or an FC product slug such as shfe-cu (lowercased), at most 40 characters; required unless marked optional, with results limited to published coverage."
    • addedInput schema / properties / exchange / examples
      Added value: +[
      +  "SHFE",
      +  "shfe",
      +  "shfe-cu"
      +]
  2. First observed

TDQS

B3/5.0
Behavior4/5

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

Annotations already declare read-only, idempotent and open-world behavior, so the description's job is to add context — and it does, by disclosing coverage boundaries (Mainland China plus the 24 MO scopes, SGX limited to equity/FX/rates, HKEX to cash equities), stating that results outside published coverage are unknown, and giving a precedence rule for official exchange notices. These are real behavioral constraints beyond the annotations, though the '24 MO' phrasing is opaque enough to blunt the value slightly.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

It is short, but density comes at the cost of comprehension: 'civil/incoming night attribution' and '24 MO scopes' are compressed to the point of ambiguity, and the scope/precedence caveats are packed into one line. The core purpose is not front-loaded as a clear verb statement.

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?

With no output schema, the description must convey what comes back, and it only obliquely hints at return content via 'trading date and civil/incoming night attribution' without explaining fields, non-trading-day handling, or response shape. Coverage limits and notice precedence are covered well, but the return semantics are left to guesswork for an open-world lookup tool.

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 both the exchange code (with case-insensitivity, FC product slugs, length limit) and the date field (exchange-local interpretation, today-fallback behavior). The description adds no parameter meaning beyond that, so the baseline of 3 applies.

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

Purpose3/5

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

The description names the resource ('Exchange-local trading date') but uses a noun phrase with no verb and adds cryptic jargon ('civil/incoming night attribution', '24 MO scopes') that an agent cannot decode. It does not distinguish this tool from siblings like trading_hours or next_closure, so the agent must infer that this resolves whether/which date is a trading day.

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 guidance and no routing to alternatives such as trading_hours or next_closure. The closing lines ('Outside published coverage is unknown', 'Official exchange notices take precedence') are caveats about data authority, not instructions about when to select this tool over a sibling.

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