Agnost AI
← Leaderboard

Alpaca

https://mcp.alpaca.markets/mcp

Query Alpaca market data for stocks, crypto, and options, plus asset info, calendars, clock, and corporate actions.

Finance & payments24 toolsv1.23.0Streamable HTTP
B+

82.0/100

#10 of 32 · #1 in Finance & payments

Reviewed 23h ago·Scan took 28.7s·Descriptions graded by Claude
Fix it

Fix it with your coding agent

Free. Paste this into Claude Code, Cursor or Codex inside your server's repo.

Fix prompt
Improve the MCP server at https://mcp.alpaca.markets/mcp so AI agents can use it better. It scored 82/100 (B+) on the Agnost MCP Leaderboard. Top fixes: 1. Move parameter docs from docstring 'Args:' blocks into the JSON schema: nearly every parameter (e.g., get_stock_bars' 13, get_corporate_actions' 8) lacks a schema description, formats, and enums for timeframe, feed, ca_types. 2. Add 'when to use' guidance distinguishing overlapping tools: historical bars/quotes/trades vs latest_* vs snapshot, and get_option_chain vs get_option_contracts vs get_option_snapshot. 3. Declare required lists and outputSchemas (get_all_assets, get_corporate_actions, all market-data tools) and drop filler like 'Retrieves and formats' in favor of stating returned fields. Per-tool fixes: - get_all_assets: List tradable assets filtered by status ('active'|'inactive'), asset_class ('us_equity'|'us_option'|'crypto'), exchange, or attributes (e.g. 'fractional_eh_enabled,has_options'). Always filter; unfiltered output is thousands of rows. Use get_asset for a single known symbol. 'attributes' param is unexplained (valid values unknown) No warning that unfiltered result is very large Status/class values not enumerated in schema 4 of 4 parameter(s) have no description No `required` list — agents must guess which params are mandatory - get_stock_trades: Describe returned fields (price, size, exchange, timestamp), the 20-minute default window, and point to get_stock_latest_trade for the latest print. No defaults stated (20-minute window) Return fields not described No guidance vs get_stock_latest_trade 12 of 12 parameter(s) have no description No outputSchema — agents can't tell what the tool returns - get_option_contracts: Explain expiration_expression with examples (e.g. 'next Friday'), dates as YYYY-MM-DD, strikes as numeric strings like '150', and note get_option_chain for pricing/greeks. expiration_expression 'Natural language' is unexplained strike prices typed as strings without format Date format not stated 11 of 11 parameter(s) have no description No outputSchema — agents can't tell what the tool returns - get_stock_latest_trade: Return last trade price, size, exchange and timestamp per symbol; default feed 'iex' (sip requires subscription). Feed default contradicts schema Return fields not described 3 of 3 parameter(s) have no description No outputSchema — agents can't tell what the tool returns - get_stock_quotes: State it returns tick-level bid/ask history (default last 20 minutes), that start/end override lookback, and to use get_stock_latest_quote for the current quote. Lookback precedence vs start/end unexplained Default limit stated 1000 but schema null Doesn't distinguish from get_stock_latest_quote 12 of 12 parameter(s) have no description No outputSchema — agents can't tell what the tool returns - get_crypto_trades: Describe returned fields (price, size, side, timestamp) and default 15-minute lookback. Return fields not described Default window not stated 10 of 10 parameter(s) have no description No outputSchema — agents can't tell what the tool returns - get_crypto_latest_orderbook: Describe bid/ask price levels with sizes returned and when depth is needed vs top-of-book. Doesn't describe depth/levels returned No contrast with latest quote 2 of 2 parameter(s) have no description No outputSchema — agents can't tell what the tool returns - get_stock_latest_bar: Return the most recent 1-minute OHLCV bar per symbol; default feed 'iex'. Use get_stock_snapshot for trade+quote+daily bars together. feed default says None but schema is iex Return fields not listed No guidance vs snapshot 3 of 3 parameter(s) have no description No outputSchema — agents can't tell what the tool returns - get_crypto_quotes: Note default 15-minute lookback and to use get_crypto_latest_quote for current bid/ask. Default 15-minute window not stated No contrast with latest quote tool 9 of 9 parameter(s) have no description No outputSchema — agents can't tell what the tool returns - get_crypto_latest_quote: State it returns top-of-book bid/ask price and size; use get_crypto_latest_orderbook for full depth. Return fields not listed No contrast with orderbook 2 of 2 parameter(s) have no description No outputSchema — agents can't tell what the tool returns - get_crypto_latest_trade: State returned fields: price, size, taker side, timestamp. Return fields not described 2 of 2 parameter(s) have no description No outputSchema — agents can't tell what the tool returns - get_crypto_bars: List timeframe values (e.g. '1Min','15Min','1Hour','1Day'), state default 1 day lookback, and that start/end override lookback. Timeframe formats vague compared to stock version Lookback vs start/end precedence unclear 10 of 10 parameter(s) have no description No outputSchema — agents can't tell what the tool returns - get_crypto_latest_bar: Say it returns the most recent 1-minute OHLCV bar and vwap per pair. Return fields not listed 2 of 2 parameter(s) have no description No outputSchema — agents can't tell what the tool returns - get_option_snapshot: Specify OCC symbols (e.g. 'AAPL250620C00150000') and note get_option_chain for all contracts of an underlying. Symbol format not specified No contrast with get_option_chain 2 of 2 parameter(s) have no description No outputSchema — agents can't tell what the tool returns - get_asset: Get metadata for one tradable asset by symbol (e.g. 'AAPL' or 'BTC/USD'): name, exchange, asset class, status, tradable/shortable/fractionable flags. Use get_all_assets to browse or filter many assets; this does not return prices. Doesn't say symbol format for crypto (e.g. 'BTC/USD') vs stocks No guidance vs get_all_assets 'Retrieves and formats' filler 1 of 1 parameter(s) have no description - get_stock_bars: Explain that start/end override the days/hours/minutes lookback, fix feed default to 'iex', and note to use get_stock_latest_bar or get_stock_snapshot for current prices. Interaction of days/hours/minutes vs start/end unclear feed default stated None but schema says iex Long arg list with little when-to-use guidance vs latest_bar/snapshot 13 of 13 parameter(s) have no description No outputSchema — agents can't tell what the tool returns - get_calendar: Return US market trading days between start_date and end_date (YYYY-MM-DD) with open/close times, including early closes; holidays are omitted. Use get_clock for current open/closed status. Doesn't say returns trading days with open/close times No mention vs get_clock Redundant 'payload about market calendar information' 2 of 2 parameter(s) have no description - get_corporate_actions: List the lowercase enum values ('cash_dividend','forward_split',...) and state start/end are YYYY-MM-DD, defaulting to today only, so pass a range for historical lookups. Enum listed as CorporateActionsType.X instead of the actual lowercase values Default date range of only today is easy to miss Date format not stated 8 of 8 parameter(s) have no description No `required` list — agents must guess which params are mandatory - get_stock_latest_quote: Add default feed 'iex' and note that get_stock_quotes is for historical bid/ask. Feed default not stated (iex) No contrast with get_stock_quotes 3 of 3 parameter(s) have no description No outputSchema — agents can't tell what the tool returns - get_stock_snapshot: Add: 'Prefer this for general current-price questions; default feed iex.' Feed default/subscription note missing Could say it's the best single call for 'current price' questions 3 of 3 parameter(s) have no description No outputSchema — agents can't tell what the tool returns - get_crypto_snapshot: Add 'Prefer this for a general current-state overview of a crypto pair.' No guidance that this is the preferred current-price call 2 of 2 parameter(s) have no description No outputSchema — agents can't tell what the tool returns - get_option_chain: Recommend setting expiration and strike filters to limit output size. Doesn't warn output can be large without filters contract_type values not in schema enum 10 of 10 parameter(s) have no description No outputSchema — agents can't tell what the tool returns - get_option_latest_quote: Add OCC format: ROOT+YYMMDD+C/P+8-digit strike*1000. OCC symbol format not explained beyond example Some verbosity 2 of 2 parameter(s) have no description No outputSchema — agents can't tell what the tool returns - get_clock: Add: 'US equity market only; use get_calendar for future/past session schedules.' Doesn't say it's US equity market only No contrast with get_calendar Keep tool names stable. Add readOnlyHint/destructiveHint annotations and outputSchema where missing.

Get the full detailed report

Every tool's score, what broke, and a suggested fix for each one, sent to your inbox.

Score breakdown

Weighted by what breaks agents in 100M+ real MCP calls.

Error quality

3 bad-input tests · 3 clear errors

83/100 · 20 pts

↳ Clear errors that name the fix get ~3× more successful retries

Task success across agents

opus-5-5: 3/3 · haiku-5-5: 3/3 · gpt-5.5: 3/3 · first-call success 100% · 1.0 calls/task

100/100 · 15 pts

↳ The same tool can fail 0% of the time in one client and 13% in another

Tool count & token cost

24 tools · ~19,024 tokens · 3 overlapping pairs

57/100 · 15 pts

↳ The top 3 tools usually get >99% of calls; the rest just cost context

Schema & docs accuracy

Descriptions 67/100 · output matched schema 4/4

76/100 · 15 pts

↳ Declared output schemas that don't match real output break calls

Response size

median ~141 tokens · p95 ~938 · has limit params

100/100 · 10 pts

↳ Big responses overflow the agent's context; ~30% of search responses exceed 25k tokens

Latency & long calls

median 255ms · p95 581ms · 0 timeouts

100/100 · 10 pts

↳ After a client cancels a long call, ~39% of sessions end

Connection & login

handshake 524ms · Streamable HTTP

100/100 · 10 pts

↳ After a login or permission error, ~1 in 5 sessions end

Metadata & discoverability

metadata 20/100 · Listed in the official MCP Registry ✕ · mcp.json manifest ✕ · Setup page in the browser ✕

10/100 · 5 pts

↳ The basics. Necessary, but not what makes agents succeed

Error quality

What your errors look like to an agent

We sent deliberately bad inputs. Errors that name the bad field and the valid values get ~3× more successful retries in real agent traffic.

90

Left out a required field · get_asset.symbol

Model sees it · "Error executing tool get_asset: 1 validation error for get_assetArguments symbol Field required [type=missing, input_value={}, input_type=dict] For furthe"

90

Sent the wrong type · get_asset.symbol

Model sees it · "Error executing tool get_asset: 1 validation error for get_assetArguments symbol Input should be a valid string [type=string_type, input_value=12345, input_ty"

70

Called a tool that doesn't exist · —

Model sees it · "Unknown tool: __agnost_nonexistent_tool__"

AI agent test

We let a real AI agent use it

3 AI models got realistic tasks and the full tool list. We checked if the first call was right, how many calls it took, and if it finished the job. It used ~32,033 tokens per task on average.

✓

opus-5-5Is the US stock market open right now, and when does it next close?

Right tool first try · 5.1s · get_clock

✓

opus-5-5Get the latest bid and ask quote for AAPL and MSFT.

Right tool first try · 5.1s · get_stock_latest_quote

✓

opus-5-5Show daily price bars for TSLA over the past 30 days.

Right tool first try · 12.5s · get_stock_bars

✓

haiku-5-5Is the US stock market open right now, and when does it next close?

Right tool first try · 2.5s · get_clock

✓

haiku-5-5Get the latest bid and ask quote for AAPL and MSFT.

Right tool first try · 3.0s · get_stock_latest_quote

✓

haiku-5-5Show daily price bars for TSLA over the past 30 days.

Right tool first try · 4.9s · get_stock_bars

✓

gpt-5.5Is the US stock market open right now, and when does it next close?

Right tool first try · 3.4s · get_clock

✓

gpt-5.5Get the latest bid and ask quote for AAPL and MSFT.

Right tool first try · 3.9s · get_stock_latest_quote

✓

gpt-5.5Show daily price bars for TSLA over the past 30 days.

Right tool first try · 8.8s · get_stock_bars

Top 3 fixes

  1. 1

    Move parameter docs from docstring 'Args:' blocks into the JSON schema: nearly every parameter (e.g., get_stock_bars' 13, get_corporate_actions' 8) lacks a schema description, formats, and enums for timeframe, feed, ca_types.

  2. 2

    Add 'when to use' guidance distinguishing overlapping tools: historical bars/quotes/trades vs latest_* vs snapshot, and get_option_chain vs get_option_contracts vs get_option_snapshot.

  3. 3

    Declare required lists and outputSchemas (get_all_assets, get_corporate_actions, all market-data tools) and drop filler like 'Retrieves and formats' in favor of stating returned fields.

Tool-by-tool report

description · schema, weakest first

Get the full detailed report

Enter your email and we'll send you the full report: every tool's score, what broke, and a suggested fix for each one. It also unlocks here.