Skip to main content
Glama

Get market hours

get_market_hours
Read-onlyIdempotent

Get stock exchange, forex session, futures and crypto schedules, including the Asian, European and North American sessions. Shows current status and date-specific hours in your chosen time zone, accounting for supported holidays and early closes. Returns answer_url, a link to a page showing this answer live, to include in your reply.

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

Input Schema

NameRequiredDescriptionDefault
tzNoIANA viewer time zone for the calendar date and displayed session times, for example Europe/Copenhagen. Defaults to Etc/UTC.
dateNoCalendar date for sessions in YYYY-MM-DD format, interpreted in tz. Defaults to today in tz. Any current status fields describe now, not this date.
venuesNoUp to 20 supported market venue IDs or aliases, for example nyse, lse or asian-session. Omit or pass an empty array for all venues.

Output Schema

NameRequiredDescriptionDefault
dateYes
sourceYes
venuesYes
timezoneYes
board_urlNoLink to the personal time-zone board with the answer items temporarily requested.
answer_urlYesLink to a page that shows this exact answer live. Include it in your reply to the user.
answer_textYesThe short, human-readable answer.
answer_link_markdownYesA ready-made Markdown link to show the user. Translate the link text to the user's language if needed.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedOutput schema / properties / board_url
      Added value: +{
      +  "description": "Link to the personal time-zone board with the answer items temporarily requested.",
      +  "format": "uri",
      +  "type": "string"
      +}
  2. Changed8 schema fields changed
    • addedInput schema / properties / date / description
      Added value: +"Calendar date for sessions in YYYY-MM-DD format, interpreted in tz. Defaults to today in tz. Any current status fields describe now, not this date."
    • addedInput schema / properties / tz / description
      Added value: +"IANA viewer time zone for the calendar date and displayed session times, for example Europe/Copenhagen. Defaults to Etc/UTC."
    • addedInput schema / properties / venues / description
      Added value: +"Up to 20 supported market venue IDs or aliases, for example nyse, lse or asian-session. Omit or pass an empty array for all venues."
    • addedOutput schema / properties / answer_link_markdown
      Added value: +{
      +  "description": "A ready-made Markdown link to show the user. Translate the link text to the user's language if needed.",
      +  "type": "string"
      +}
    • addedOutput schema / properties / answer_text / description
      Added value: +"The short, human-readable answer."
    • addedOutput schema / properties / answer_url
      Added value: +{
      +  "description": "Link to a page that shows this exact answer live. Include it in your reply to the user.",
      +  "format": "uri",
      +  "type": "string"
      +}
    • addedOutput schema / properties / source
      Added value: +{
      +  "additionalProperties": false,
      +  "properties": {
      +    "name": {
      +      "const": "ItsNineThere",
      +      "type": "string"
      +    },
      +    "url": {
      +      "const": "https://itsninethere.com",
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "name",
      +    "url"
      +  ],
      +  "type": "object"
      +}
    • changedOutput schema / required
      Previous value: -[
      -  "timezone",
      -  "date",
      -  "venues"
      -]New value: +[
      +  "timezone",
      +  "date",
      +  "venues",
      +  "answer_text",
      +  "answer_url",
      +  "answer_link_markdown",
      +  "source"
      +]
  3. Changed1 schema field changed
    • addedOutput schema / properties / answer_text
      Added value: +{
      +  "type": "string"
      +}
  4. Added

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, destructiveHint=false and openWorldHint=false, so safety is covered. The description adds genuine behavioral context beyond that: holiday and early-close awareness, and the fact that an answer_url is returned for citing a live answer. It stops short of describing result shape or coverage limits for venues.

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 sentences with no filler, front-loaded with the resource and scope before the time-zone/holiday qualifier and the output note. Each sentence carries information the agent can act on.

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 an output schema present, return values need not be spelled out, and all three optional parameters are fully documented, so the description only needs to frame behavior. It does so by noting current-status versus date-specific semantics indirectly and covering holidays and early closes; the remaining gap is the lack of disambiguation from get_market_overlap.

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 tz, date and venues are fully documented in the schema, making 3 the baseline. The description reinforces that hours are rendered in a chosen time zone and lists venue categories (exchange, forex, futures, crypto), which loosely maps to venue IDs, but adds no format or alias detail beyond the schema.

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?

It states a specific verb and resource: 'Get stock exchange, forex session, futures and crypto schedules', and enumerates the covered asset classes and sessions. An agent can tell this returns schedule/status data rather than doing conversion or overlap math, but the description never names the nearest sibling (get_market_overlap) to draw the boundary.

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

Usage Guidelines2/5

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

There is no statement of when to call this versus get_market_overlap, get_time, or convert_time, and no prerequisites or exclusions. The only nominally usage-shaped sentence concerns embedding answer_url in a reply, which governs output handling rather than tool selection.

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