Skip to main content
Glama

Headless Oracle

get_market_schedule

Returns holiday-aware trading session schedule with next open/close UTC timestamps for any of 28 exchanges. Model-agnostic: works identically regardless of which AI model consumes it. Pairs with get_market_status signed receipts. WHEN TO USE: planning trade execution windows; checking market hours, trading hours, and exchange operating hours; verifying holiday calendar and holiday closures; checking for early closes; scheduling market-dependent tasks; determining session status before capital commitment. Includes lunch break windows (session status): Tokyo Stock Exchange XJPX (11:30–12:30 JST), Hong Kong Stock Exchange XHKG (12:00–13:00 HKT), Shanghai Stock Exchange XSHG and Shenzhen Stock Exchange XSHE (11:30–13:00 CST), Singapore Exchange XSES (12:00–13:00 SGT). Covers Middle Eastern markets: Saudi Exchange/Tadawul (XSAU) uses a Friday and Saturday weekend, with Sunday a trading day; Dubai Financial Market (XDFM) trades Monday to Friday, 10:00 to 14:45 GST. Also covers 24/7 crypto (Coinbase XCOI, Binance XBIN: always open). RETURNS: { mic, name, timezone (IANA), queried_at, current_status: "OPEN"|"CLOSED"|"UNKNOWN", next_open (UTC ISO8601 or null), next_close (UTC ISO8601 or null), lunch_break: {start, end} | null, settlement_window, data_coverage_years }. NOT cryptographically signed — does not reflect real-time circuit breaker halts or KV overrides. For authoritative signed status use get_market_status. Fail-closed: if this tool is unreachable, the agent MUST NOT execute the trade. LATENCY: sub-100ms p95 (pure schedule computation, no signing).

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "get_market_schedule"
  }
}

Input Schema

NameRequiredDescriptionDefault
micNoISO 10383 Market Identifier Code. Defaults to XNYS (NYSE). Call list_exchanges to see all 28 supported codes.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

With no annotations supplied, the description carries the full disclosure burden and does so: it states the data is NOT cryptographically signed, excludes circuit-breaker halts and KV overrides, defines fail-closed behavior if the tool is unreachable, and gives a latency figure (sub-100ms p95, no signing). It also discloses that the response does not reflect real-time state, which is the key behavioral risk for a trading agent.

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

Conciseness5/5

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

Front-loads purpose and the unsigned/signed distinction, then usage, then returns, then caveats — a clean and well-ordered structure. The only filler is the "Model-agnostic: works identically regardless of which AI model consumes it" sentence, which earns no place; the long lunch-break and regional enumerations do carry information not otherwise available since there is no output schema.

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?

No output schema exists, so the RETURNS block is doing necessary work by naming every field including current_status enum values, nullability of next_open/next_close, lunch_break, settlement_window, and data_coverage_years. Combined with the fail-closed and latency notes, an agent has enough to call and interpret this correctly; only minor redundancy remains.

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% and the single optional enum parameter already documents ISO 10383 codes, the XNYS default, and the list_exchanges pointer. The description's mention of 28 exchanges and the regional examples (XSAU weekend, XDFM hours) corroborate the enum but add no invocation-level detail beyond it, so the baseline 3 applies.

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 and resource — "Returns holiday-aware trading session schedule with next open/close UTC timestamps" — plus scope (28 exchanges) and explicitly distinguishes itself from the signed variant get_market_status. An agent can identify this tool without opening any schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Provides an explicit WHEN TO USE list covering trade-execution planning, holiday/early-close checks, and task scheduling, and routes the agent to the correct alternative twice: get_market_status for authoritative signed status and the enum note pointing to list_exchanges for codes. When-not guidance is present via the unsigned/no-real-time-halts caveat.

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