Skip to main content
Glama
Financial Modeling Prep MCP Server

Financial Modeling Prep MCP Server

getHolidaysByExchange

Read-onlyIdempotent

Retrieve holiday closure dates for a specific stock exchange and optional date range, so you can plan trading around market closures.

Instructions

Access holiday schedules for specific stock exchanges using the Global Exchange Market Hours API. Find out the dates when global exchanges are closed for holidays and plan your trading activities accordingly.

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": "getHolidaysByExchange"
  }
}

Input Schema

NameRequiredDescriptionDefault
toNoEnd date for the holidays (YYYY-MM-DD format)
exchangeYesExchange code (e.g., NASDAQ, NYSE)
from_dateNoStart date for the holidays (YYYY-MM-DD format)

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. Changed2 schema fields changedv2.6.10
    • removedInput schema / properties / from
      Removed value: -{
      -  "description": "Start date for the holidays (YYYY-MM-DD format)",
      -  "type": "string"
      -}
    • addedInput schema / properties / from_date
      Added value: +{
      +  "description": "Start date for the holidays (YYYY-MM-DD format)",
      +  "type": "string"
      +}
  3. First observed

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint and openWorldHint, so the safety profile is covered structurally. The description adds the data source ('Global Exchange Market Hours API') and the consumer intent, but says nothing about what happens when from_date/to are omitted, whether results are a flat list of dates, or how far back schedules go.

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 short sentences with the resource stated first and the value proposition second. The closing clause about planning trading activities is somewhat promotional but still orients the agent quickly.

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 simple three-parameter lookup this is adequate, but with no output schema the description could state the shape of the return (a list of closure dates per exchange) and what happens with optional date parameters left empty. Those omissions are the main remaining gaps.

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 the exchange code and date-range semantics are already documented in the schema. The description adds no format hints or meaning beyond what the structured fields provide, which is the expected baseline here.

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?

The description names a specific resource (holiday schedules) and scope (specific stock exchanges) with a clear retrieval verb. It implicitly distinguishes itself from hour-related siblings like getExchangeMarketHours, though it never names them directly.

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 'plan your trading activities accordingly' implies the use case (checking market closures), but there is no explicit when-to-use guidance, no mention of the sibling market-hours tools, and no advice on whether dates are required or default.

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