Skip to main content
Glama
alpacahq

alpaca-mcp-server

Official
by alpacahq

get_calendar

Retrieve and format market calendar data for specified trading or settlement date ranges to track market open/close schedules.

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
startNoThe first date to retrieve data for (inclusive).
endNoThe last 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

Behavior4/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure. It effectively warns about the risk of extremely large responses without date bounds, which is crucial for performance and data handling. It also implies the tool is read-only (retrieves) and safe, but does not detail rate limits, authentication needs, or error conditions, leaving some gaps.

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?

The description is front-loaded with the core purpose, followed by a critical warning, all in two efficient sentences. There is no wasted language, and every sentence serves a clear functional role in guiding tool usage.

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?

Given the tool's moderate complexity (3 parameters, no annotations, but with an output schema), the description is mostly complete. It covers purpose, key behavioral warnings, and usage context. However, it lacks details on authentication, error handling, or response format specifics, which could be relevant for full contextual understanding despite the output schema's existence.

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?

The input schema has 100% description coverage, providing clear details for all three parameters (start, end, date_type). The description adds value by emphasizing the importance of providing start and end dates and warning about response size, but does not elaborate on parameter meanings beyond what the schema already documents, aligning with the baseline for high schema coverage.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool's purpose with specific verbs ('retrieves and formats') and resource ('market calendar'), and distinguishes it from siblings by focusing on calendar data rather than assets, orders, positions, or other financial entities. It goes beyond a simple tautology by specifying the formatting aspect.

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 description provides clear context on when to use this tool (for market calendar data within a date range) and includes a strong warning about date bounds to prevent misuse. However, it does not explicitly mention when not to use it or name alternatives among the many sibling tools (e.g., get_clock for time-related data), which prevents a perfect score.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/alpacahq/alpaca-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server