Skip to main content
Glama
bartest5

Alpaca MCP Server

by bartest5

get_orders

Fetches and formats Alpaca orders with filters for status, side, symbols, timestamps, and asset classes to simplify order retrieval.

Instructions

Retrieves and formats orders with the specified filters.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
sideNoFilters down to orders that have a matching side field set.
afterNoThe response will include only ones submitted after this timestamp (exclusive.)
limitNoThe maximum number of orders in response. Defaults to 50 and max is 500.
untilNoThe response will include only ones submitted until this timestamp (exclusive.)
nestedNoIf true, the result will roll up multi-leg orders under the legs field of primary order.
statusNoOrder status to be queried. open, closed or all. Defaults to open.
symbolsNoA comma-separated list of symbols to filter by (ex. "AAPL,TSLA,MSFT"). A currency pair is required for crypto orders (ex. "BTCUSD,BCHUSD,LTCUSD,ETCUSD").
directionNoThe chronological order of response based on the submission time. asc or desc. Defaults to desc.
asset_classNoA comma-separated list of asset classes, the response will include only orders in the specified asset classes. By specifying `us_option` as the class, you can query option orders by underlying symbol using the symbols parameter.
after_order_idNoReturn orders submitted after the order with this ID (exclusive). Mutually exclusive with `before_order_id`. Do not combine with `after`/`until`.
before_order_idNoReturn orders submitted before the order with this ID (exclusive). Mutually exclusive with `after_order_id`. Do not combine with `after`/`until`.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior2/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 only states that it retrieves and formats orders, leaving out important behaviors such as default status (open), default limit (50), pagination, ordering (desc), and the effect of the 'nested' parameter. The schema captures these details, but the description adds no extra behavioral context beyond the name.

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 a single, front-loaded sentence with no filler words. It efficiently communicates the core action and resource, earning top marks for conciseness.

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

Completeness2/5

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

Despite having an output schema, the tool is complex with 11 parameters, but the description is too sparse. It does not mention that this is a list endpoint returning an array of orders, nor any high-level behaviors like default filtering or the distinction from single-order tools. The description leaves significant context unstated, making it incomplete for agent guidance.

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 input schema already documents all 11 parameters. The description merely mentions 'specified filters' without elaborating on any parameter meanings, adding no value beyond the schema. Per the calibration, a baseline of 3 is appropriate when the schema does the heavy lifting.

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 uses a specific verb ('Retrieves') and resource ('orders'), indicating a listing operation. The phrase 'with the specified filters' clarifies that it supports filtering, but it does not explicitly distinguish it from sibling order-related tools like get_order_by_id or get_order_by_client_id. The plural 'orders' and the presence of filter parameters make the purpose clear enough.

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

Usage Guidelines2/5

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

No guidance is provided on when to use this tool versus alternatives. It does not mention that get_order_by_id or get_order_by_client_id should be used for fetching individual orders, nor any exclusions for combining filters. The description implies a filtering use case but offers no explicit usage context.

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/bartest5/alpacahq_alpaca-mcp-server'

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