Skip to main content
Glama

get_market_holidays

Retrieve stock market holiday dates or check whether a specific date is a market holiday using Upstox data.

Instructions

Get list of market holidays, or only the given date (path segment /v2/market/holidays/{date}).

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

Input Schema

NameRequiredDescriptionDefault
dateNoYYYY-MM-DD (optional)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.3/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden. 'Get' implies a read operation, but the description says nothing about the market/exchange scope of the returned holidays, whether authentication is required, or what happens for a date with no holiday. For an unannotated endpoint this is a meaningful gap.

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?

One front-loaded sentence stating both behaviors. The parenthetical path segment is minor but useful for disambiguating the two response shapes; no filler content.

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 single-optional-parameter read tool with no output schema, the description covers the core behavior adequately. It omits the exchange/market scope of the holiday calendar, which an agent would need to interpret results 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?

With only one optional parameter and full schema coverage, the baseline is 3; the description earns above that by explaining the semantic effect of 'date' — it switches the response from a list to a single day's entry rather than merely filtering. The schema already documents the YYYY-MM-DD format, so no further parameter detail is needed.

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 verb and resource (get market holidays) and immediately discloses the two modes: a full list, or a single date. It is distinguishable from siblings like get_market_timings, but it never explicitly contrasts with them, so it stops short of a 5.

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?

Usage is only implied: supplying a date returns just that date, omitting it returns the list. There is no explicit when-to-use guidance, no statement of which market/exchange the holidays apply to, and no mention of alternatives.

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