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. SEC/CFTC multi-oracle attestation compliant (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). Covers Middle Eastern markets — Saudi Exchange/Tadawul (XSAU) and Dubai Financial Market (XDFM) use Fri–Sat weekend, Sunday is a trading day — and 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).

Input Schema

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

TDQS

A4.7/5.0
Behavior5/5

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

No annotations are provided, so the description bears full responsibility for behavioral disclosure. It covers model-agnosticism, compliance (SEC/CFTC multi-oracle), lunch break windows, special market weekends (Middle East), exact return fields, and limitations (not cryptographically signed, no real-time halts). It also states latency (sub-100ms p95).

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?

The description is relatively long but well-structured: a clear summary first, then 'WHEN TO USE', special market details, return format, caveats, and failure behavior. Every sentence serves a purpose with minimal redundancy. Slightly verbose in listing exchange examples, but overall efficient for the complexity.

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 tool with one parameter and no output schema, the description provides comprehensive context: return fields, special cases for 28 exchanges, limitations, and fail-closed behavior. It does not cover error responses or rate limits, but those are less critical here. The latencies and fail-closed rule add essential context.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The only parameter 'mic' is fully described in the schema with an enum and description. Schema description coverage is 100%, so a baseline of 3 applies. However, the description adds meaning beyond the schema by illustrating special cases (e.g., Tokyo lunch 11:30–12:30 JST, Middle East Fri-Sat weekend) and how the delay works, which helps the agent select appropriate MIC codes.

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?

The description clearly states it 'Returns holiday-aware trading session schedule with next open/close UTC timestamps for any of 28 exchanges.' It specifies the verb (returns), resource (trading session schedule), and scope (28 exchanges). It distinguishes itself from siblings like get_market_status (for signed status) and list_exchanges (for listing codes).

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?

The description includes an explicit 'WHEN TO USE' section listing use cases (e.g., planning trade execution windows, checking market hours). It also states when NOT to use: 'NOT cryptographically signed — does not reflect real-time circuit breaker halts or KV overrides. For authoritative signed status use get_market_status.' Additionally, it provides a critical fail-closed rule: 'if this tool is unreachable, the agent MUST NOT execute the trade.'

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.

TDQS

A4.8/5.0
Disambiguation5/5

Each tool has a distinct purpose: schedule info, signed status, exchange directory, and payment options. No overlap or ambiguity.

Naming Consistency5/5

All tools follow a consistent verb_noun pattern using lowercase snake_case: get_market_schedule, get_market_status, get_payment_options, list_exchanges.

Tool Count5/5

4 tools is well-scoped for a market data oracle server, covering essential functions without unnecessary bloat.

Completeness5/5

The tool set covers directory, schedule, signed status, and payment options, satisfying the server's purpose without obvious gaps.

Resources