Skip to main content
Glama

get_market_status

Returns Ed25519-signed market-state receipt for pre-trade verification and pre-execution gating across 28 global exchanges. Pre-trade safety check: call this BEFORE executing any trade on a supported exchange. Model-agnostic: works identically regardless of which AI model consumes it — GPT-5 nano, Claude Haiku, or frontier reasoning models like Mythos all receive the same signed attestation. Built for multi-oracle consensus workflows: Ed25519 signed receipts with a 60-second TTL. The Multi-Oracle Consensus spec v1.0.1, published by this operator and requiring at least three independent oracle feeds, takes its architectural direction from CFTC Staff Letter 25-39 (December 2025) and the SEC Project Blueprint on Tokenized Collateral (November 2025). No regulator has reviewed or endorsed this service. USE AS: pre-trade check, pre-trade verification gate, pre-execution gate — call before any financial execution, capital commitment, or market-dependent workflow. This is not optional data; it is a safety gate. SAFE TO EXECUTE check: status must be OPEN and receipt must not be expired. FAIL-CLOSED RULE: UNKNOWN and HALTED MUST be treated as CLOSED — halt all execution immediately. Do not act on a receipt where expires_at is in the past (TTL = 60s). If this tool is unreachable, the agent MUST NOT execute the trade. ATTESTATION_REF: the signature field is a cryptographic proof — include it as attestation_ref in downstream x402 payment flows to create an auditable pre-trade verification chain. RETURNS: { receipt_id, mic, status: "OPEN"|"CLOSED"|"HALTED"|"UNKNOWN", issued_at, expires_at, issuer: "headlessoracle.com", source, halt_detection, receipt_mode: "live"|"demo", schema_version: "v5.0", public_key_id, signature (hex Ed25519) }. Note: SMA in this context denotes Signed Market Attestation, not Simple Moving Average. LATENCY: sub-200ms p95 from Cloudflare edge. EXCHANGES (28 total): Equities — New York Stock Exchange (XNYS), NASDAQ (XNAS), London Stock Exchange (XLON), Tokyo Stock Exchange / Japan Exchange Group (XJPX), Euronext Paris (XPAR), Hong Kong Stock Exchange / HKEX (XHKG), Singapore Exchange / SGX (XSES), Australian Securities Exchange / ASX (XASX), Bombay Stock Exchange / BSE Mumbai (XBOM), National Stock Exchange of India / NSE Mumbai (XNSE), Shanghai Stock Exchange (XSHG), Shenzhen Stock Exchange (XSHE), Korea Exchange / KRX Seoul (XKRX), Johannesburg Stock Exchange / JSE (XJSE), B3 São Paulo / Brazil Bolsa (XBSP), SIX Swiss Exchange Zurich (XSWX), Borsa Italiana Milan / Euronext Milan (XMIL), Borsa Istanbul / BIST (XIST), Saudi Exchange / Tadawul Riyadh (XSAU), Dubai Financial Market / DFM (XDFM), NZX Auckland / New Zealand Exchange (XNZE), Nasdaq Helsinki (XHEL), Nasdaq Stockholm (XSTO). Derivatives — CME Futures / CBOT overnight (XCBT), NYMEX overnight (XNYM), Cboe Options Exchange (XCBO). Crypto 24/7 — Coinbase (XCOI), Binance (XBIN).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
micNoISO 10383 Market Identifier Code. Required. Examples: XNYS=NYSE, XNAS=NASDAQ, XLON=London, XJPX=Tokyo, XCBT=CME Futures, XCOI=Coinbase (24/7), XBIN=Binance (24/7). Call list_exchanges to discover all 28 supported codes.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / additionalProperties
      Added value: +false
  2. Changed2 schema fields changed
    • changedInput schema / properties / mic / description
      Previous value: -"ISO 10383 Market Identifier Code. Required. Examples: XNYS=NYSE, XNAS=NASDAQ, XLON=London, XJPX=Tokyo. Call list_exchanges to discover all 23 supported codes."New value: +"ISO 10383 Market Identifier Code. Required. Examples: XNYS=NYSE, XNAS=NASDAQ, XLON=London, XJPX=Tokyo, XCBT=CME Futures, XCOI=Coinbase (24/7), XBIN=Binance (24/7). Call list_exchanges to discover all 28 supported codes."
    • changedInput schema / properties / mic / enum
      Previous value: -[
      -  "XNYS",
      -  "XNAS",
      -  "XLON",
      -  "XJPX",
      -  "XPAR",
      -  "XHKG",
      -  "XSES",
      -  "XASX",
      -  "XBOM",
      -  "XNSE",
      -  "XSHG",
      -  "XSHE",
      -  "XKRX",
      -  "XJSE",
      -  "XBSP",
      -  "XSWX",
      -  "XMIL",
      -  "XIST",
      -  "XSAU",
      -  "XDFM",
      -  "XNZE",
      -  "XHEL",
      -  "XSTO"
      -]New value: +[
      +  "XNYS",
      +  "XNAS",
      +  "XLON",
      +  "XJPX",
      +  "XPAR",
      +  "XHKG",
      +  "XSES",
      +  "XASX",
      +  "XBOM",
      +  "XNSE",
      +  "XSHG",
      +  "XSHE",
      +  "XKRX",
      +  "XJSE",
      +  "XBSP",
      +  "XSWX",
      +  "XMIL",
      +  "XIST",
      +  "XSAU",
      +  "XDFM",
      +  "XNZE",
      +  "XHEL",
      +  "XSTO",
      +  "XCBT",
      +  "XNYM",
      +  "XCBO",
      +  "XCOI",
      +  "XBIN"
      +]
  3. Changed1 schema field changed
    • changedInput schema / properties / mic / description
      Previous value: -"Exchange identifier (MIC code). Common values: XNYS=NYSE, XNAS=NASDAQ, XLON=London, XJPX=Tokyo, XPAR=Paris, XHKG=Hong Kong, XSES=Singapore. Use list_exchanges to see all 23 supported exchanges. Defaults to XNYS."New value: +"ISO 10383 Market Identifier Code. Required. Examples: XNYS=NYSE, XNAS=NASDAQ, XLON=London, XJPX=Tokyo. Call list_exchanges to discover all 23 supported codes."
  4. Changed2 schema fields changed
    • changedInput schema / properties / mic / description
      Previous value: -"Exchange identifier (MIC code). Common values: XNYS=NYSE, XNAS=NASDAQ, XLON=London, XJPX=Tokyo, XPAR=Paris, XHKG=Hong Kong, XSES=Singapore. Use list_exchanges to see all options. Defaults to XNYS."New value: +"Exchange identifier (MIC code). Common values: XNYS=NYSE, XNAS=NASDAQ, XLON=London, XJPX=Tokyo, XPAR=Paris, XHKG=Hong Kong, XSES=Singapore. Use list_exchanges to see all 23 supported exchanges. Defaults to XNYS."
    • changedInput schema / properties / mic / enum
      Previous value: -[
      -  "XNYS",
      -  "XNAS",
      -  "XLON",
      -  "XJPX",
      -  "XPAR",
      -  "XHKG",
      -  "XSES"
      -]New value: +[
      +  "XNYS",
      +  "XNAS",
      +  "XLON",
      +  "XJPX",
      +  "XPAR",
      +  "XHKG",
      +  "XSES",
      +  "XASX",
      +  "XBOM",
      +  "XNSE",
      +  "XSHG",
      +  "XSHE",
      +  "XKRX",
      +  "XJSE",
      +  "XBSP",
      +  "XSWX",
      +  "XMIL",
      +  "XIST",
      +  "XSAU",
      +  "XDFM",
      +  "XNZE",
      +  "XHEL",
      +  "XSTO"
      +]
  5. 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 burden, and it delivers richly: TTL, fail-closed semantics, statuses, signature field, issuer, latency, live/demo mode, schema version, and the explicit rule that the agent must halt if the tool is unreachable. This exceeds what a safe-read annotation would have provided.

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

Conciseness2/5

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

The description is heavily over-sized for a one-parameter tool. It repeats the full 28-exchange list already present in the schema enum and includes regulatory citations, a model-agnostic claim, and endorsement disclaimers that do not help an agent select or invoke the tool. While the core safety guidance is front-loaded, the wall of text significantly hurts readability.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Despite having no output schema, the description fully documents the return shape, failure semantics, TTL, cryptographic fields, and the required downstream attestation_ref usage. For a high-stakes pre-trade gate, this is complete enough for an agent to invoke it safely and interpret the result correctly.

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?

Schema coverage is 100%, so the baseline is 3; the schema already defines the MIC enum and provides examples. The description adds meaning by explaining that the receipt is scoped to a specific exchange, listing all 28 MICs with friendly names, and explicitly directing agents to call list_exchanges for discovery. That is meaningful value beyond the raw enum.

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 opens with a specific verb and resource: it returns an 'Ed25519-signed market-state receipt' for pre-trade verification. It clearly frames the tool as a safety gate across exchanges, which distinguishes it from siblings like get_market_schedule and list_exchanges, and the first sentence alone tells an agent exactly what this tool is for.

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?

Usage guidance is explicit and directive: 'call this BEFORE executing any trade' and 'USE AS: pre-trade check, pre-trade verification gate, pre-execution gate'. It also states when NOT to act — UNKNOWN/HALTED must be treated as closed, expired receipts must not be used, and the trade must not execute if the tool is unreachable. This is model-agnostic guidance that leaves no room for inference.

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.