Skip to main content
Glama
Financial Modeling Prep MCP Server

Financial Modeling Prep MCP Server

getExchangeMarketHours

Read-onlyIdempotent

Retrieve opening and closing times for a specified stock exchange to plan trading strategies around market sessions.

Instructions

Retrieve trading hours for specific stock exchanges using the Global Exchange Market Hours API. Find out the opening and closing times of global exchanges to plan your trading strategies effectively.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "exchange": "<exchange>"
    },
    "name": "getExchangeMarketHours"
  }
}

Input Schema

NameRequiredDescriptionDefault
exchangeYesExchange code (e.g., NASDAQ, NYSE)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv2.9.0
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
    • removedInput schema / additionalProperties
      Removed value: -false
  2. First observed

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare this a read-only, idempotent, open-world lookup, so the safety profile is covered. The description adds nothing beyond that -- no note on time zones, whether holiday schedules are included, or the shape of the returned times -- but it does not contradict the annotations either.

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?

Two compact sentences with the core purpose front-loaded. The trailing 'to plan your trading strategies effectively' is mild marketing filler that does not help an agent decide or invoke.

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

Completeness3/5

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

For a one-parameter lookup with no output schema, the definition covers what the tool returns at a high level (opening and closing times). It omits timezone semantics and the boundary with the all-exchanges and holidays siblings, which an agent would need to call it confidently.

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 description coverage is 100% and the exchange parameter names the resource it identifies, with examples (NASDAQ, NYSE) in the schema. The description reinforces that the parameter scopes to a single exchange, though it adds little beyond the schema, so it sits just above the baseline.

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?

States a specific verb and resource: retrieve trading hours for specific stock exchanges, including opening and closing times. It does not distinguish itself from the closely named sibling getAllExchangeMarketHours or from getHolidaysByExchange, so an agent must infer the 'specific exchange' vs 'all exchanges' split.

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

Usage Guidelines3/5

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

The phrase 'for specific stock exchanges' implicitly contrasts with the plural get-all sibling, but the description never says when to prefer this over getAllExchangeMarketHours or getHolidaysByExchange. Usage is implied rather than stated.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools