Skip to main content
Glama

China Futures Clock

contract_expiry

Read-onlyIdempotent

Published FC last-trading/first-notice dates for a product and optional YYYYMM delivery month (default next published month). Never runs an expiry engine; unpublished months are unknown with a product-page link. 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": {
      "product": "<product>"
    },
    "name": "contract_expiry"
  }
}

Input Schema

NameRequiredDescriptionDefault
monthNoDelivery month as six digits YYYYMM with month 01-12, e.g. 202612; omitted = earliest published month at or after the current exchange-local month, falling back to the current month if none is published (unpublished dates remain unknown).
productYesFC product slug with two alphanumeric segments separated by one hyphen, at most 40 characters, e.g. shfe-cu or nymex-cl; case-insensitive and normalized to lowercase, with no default when required.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changed
    • addedInput schema / properties / month / description
      Added value: +"Delivery month as six digits YYYYMM with month 01-12, e.g. 202612; omitted = earliest published month at or after the current exchange-local month, falling back to the current month if none is published (unpublished dates remain unknown)."
    • addedInput schema / properties / month / examples
      Added value: +[
      +  "202612"
      +]
    • addedInput schema / properties / product / description
      Added value: +"FC product slug with two alphanumeric segments separated by one hyphen, at most 40 characters, e.g. shfe-cu or nymex-cl; case-insensitive and normalized to lowercase, with no default when required."
    • addedInput schema / properties / product / examples
      Added value: +[
      +  "shfe-cu",
      +  "nymex-cl"
      +]
  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, open-world behavior, so the description's job is to add context — and it does: it discloses that no expiry engine runs, that missing months are returned as unknown with a product-page link, and that official exchange notices override. That is meaningful caveat information not present in 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 sentences, front-loaded with what is returned, followed by the two behavioral caveats. Dense but every clause carries information; the unexplained 'FC' token is the only real friction.

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 no output schema, the description must convey return semantics, and it does name the returned date types and the unknown-month outcome with a fallback link. Combined with the precedence caveat, an agent has enough to call it and interpret the result, though the exact response shape remains unstated.

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 both the product slug format and the YYYYMM month format are already fully documented in the schema. The description restates the default-month rule but adds no new syntax or edge-case detail beyond what the parameters already carry, so the 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 the specific resource returned (published last-trading and first-notice dates) scoped to a product and optional delivery month, which is clearly distinct from siblings like trading_day or next_closure. The abbreviation 'FC' is never expanded, which slightly muddies the subject for an agent unfamiliar with the domain.

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 states the default month behavior (next published month) and that unpublished months are unknown, giving implied usage context. It never explicitly says when to choose this over next_closure or recent_notices, so the agent must infer the routing.

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