Skip to main content
Glama
alpacahq

alpaca-mcp-server

Official
by alpacahq

get_calendar

Retrieve market calendar data for a specified date range. Provide start and end dates to get trading or settlement dates, avoiding oversized responses.

Instructions

Retrieves and formats market calendar for specified date range. WARNING: Always provide start and end dates (YYYY-MM-DD). Without date bounds the response contains the entire multi-year calendar and will be extremely large.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
endNoThe last date to retrieve data for (inclusive).
startNoThe first date to retrieve data for (inclusive).
date_typeNoIndicates what start and end mean. Default: TRADING. If TRADING is specified, returns a calendar whose trading date matches start, end. If SETTLEMENT is specified, returns the calendar whose settlement date matches start and end.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv2.3.2
    • removedInput schema / properties / end / x-go-type
      Removed value: -"legacyTime"
    • removedInput schema / properties / start / x-go-type
      Removed value: -"legacyTime"
  2. Addedv2.0.0

TDQS

A3.9/5.0
Behavior3/5

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

With no annotations, the description carries the burden of behavioral disclosure. It usefully reveals that unbounded requests return an extremely large multi-year response, but it leaves 'formats' vague and does not specify what the calendar entries represent beyond what the schema's date_type parameter already describes.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two focused sentences: the main action is stated first, and the critical warning follows immediately. There is no redundant or filler content.

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?

An output schema exists and all parameters are documented in the schema, so the description need not repeat return details. The warning covers the main invocation hazard. Still, a brief mention of what the calendar contains (e.g., trading holidays, non-trading days) would make it fully self-contained.

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?

The schema covers all parameters, so the baseline is 3. The description adds value by specifying the expected YYYY-MM-DD format and by warning that both bounds should always be supplied even though they are not required by the schema. It adds no new semantics for date_type, but the schema already documents that enum.

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 states a specific verb and resource ('Retrieves and formats market calendar') and limits scope to a date range. It does not explicitly differentiate from sibling tools, but the 'market calendar' resource is distinct enough among the listed siblings.

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?

The warning clearly instructs the caller to always provide start and end dates, explaining the consequence of omission. It does not mention alternatives or when-not-to-use, but there is no obvious sibling for calendar retrieval.

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