Skip to main content
Glama

China Futures Clock

next_closure

Read-onlyIdempotent

Next published exchange holiday or half-day from the fixed MO static calendar list; weekends alone are not holiday events. No extrapolation beyond coverage. 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": "next_closure"
  }
}

Input Schema

NameRequiredDescriptionDefault
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. This tool matches MO holiday market IDs directly; a product slug does not resolve to its exchange.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • 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. This tool matches MO holiday market IDs directly; a product slug does not resolve to its exchange."
    • addedInput schema / properties / exchange / examples
      Added value: +[
      +  "SHFE",
      +  "shfe",
      +  "shfe-cu"
      +]
  2. First observed

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare read-only, idempotent and non-destructive behavior, so the description's job is to add operational context, which it does: data comes from a fixed static list, weekends are not treated as events, coverage is finite with no extrapolation, and official exchange notices override. That coverage-limitation caveat is the most valuable thing here and is not available from annotations.

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?

Three short, front-loaded sentences with no filler; the scope statement leads and caveats follow. The density is high and the abbreviation 'MO' is never expanded, which slightly reduces immediate clarity.

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 a single-parameter read tool with no output schema and full annotation coverage, the description supplies the essentials: what is returned, the source and its limits, and precedence rules. It does not describe the response shape or what happens when no holiday exists in coverage, which is a minor remaining gap.

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%, and the schema itself already explains exchange casing, FC product slugs and the fact that a slug does not resolve to its exchange. The tool description adds no additional meaning about the exchange parameter, so baseline 3 applies.

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 names a specific verb and resource combination: returns the next published exchange holiday or half-day from a static calendar. That is clearly distinct from siblings like trading_day and trading_hours. It stops short of explicitly naming those siblings as alternatives, 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?

Usage context is implied rather than stated: 'No extrapolation beyond coverage' and 'Official exchange notices take precedence' tell the agent how much to trust results, but there is no explicit guidance on when to pick this over trading_day or recent_notices. The agent must infer the boundary from the phrase 'published ... static calendar list'.

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