Skip to main content
Glama

Moneda

get_market_status

Read-only

Is a stock market open, and when does it change? Defaults to the US. Pass exchange (an EODHD code: XETRA, F, LSE, PA, AS, BR, LS, MI, MC, SW, CO, ST, HE, OL, VI, IR, SN) or a symbol with that suffix (SAP.XETRA) for a European or the Santiago exchange. Returns the current session (pre_market, open, after_hours or closed; exchanges outside the US have only open and closed), whether today is a trading day, any holiday or early close, the trading day's windows as ISO instants, and the next session change. Render the instants in the user's own timezone.

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_status"
  }
}

Input Schema

NameRequiredDescriptionDefault
symbolNoA ticker; its suffix picks the exchange (SAP.XETRA). Ignored when exchange is set.
exchangeNoEODHD exchange code, e.g. XETRA or LSE. Default US.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Annotations only declare readOnlyHint=true; the description adds substantial context beyond that: the full session enum, the US-only pre_market/after_hours nuance, holiday and early-close reporting, ISO-instant windows, and a rendering instruction to convert instants to the user's timezone. Missing only operational details like rate limits or caching, which are minor for a status read.

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?

Front-loaded with the core question and default, then parameter routing, then return shape — a sensible order with no filler sentences. The long exchange-code list is dense but earns its place by preventing invalid codes; the paragraph is long but every clause carries information.

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?

There is no output schema, and the description fully compensates by describing every returned field, including the session enum and the timezone-rendering expectation. With two optional parameters, a default, and an override rule all documented, an agent has everything needed to call and interpret the result.

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, but the description goes further by enumerating the accepted exchange codes (XETRA, F, LSE, PA, AS, BR, LS, MI, MC, SW, CO, ST, HE, OL, VI, IR, SN) that the schema only gestures at with 'e.g. XETRA or LSE'. It also restates the symbol-suffix precedence and the exchange-over-symbol override, which the schema already covers.

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 question the tool answers ('Is a stock market open, and when does it change?') and then enumerates exactly what comes back: current session, trading-day flag, holidays/early closes, session windows, and next change. No sibling tool covers market calendars, so an agent can identify this immediately without opening the schema.

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

Usage Guidelines4/5

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

It states the default (US) and gives two concrete selection paths: an exchange code or a symbol whose suffix picks the exchange. It also flags the behavioral difference that non-US exchanges only report open/closed. It stops short of explicit when-not-to-use guidance, but for a status query there is little ambiguity to resolve.

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