Skip to main content
Glama
alpacahq

alpaca-mcp-server

Official
by alpacahq

Search Alpaca API Specs

search_alpaca_api_specs
Read-only

Find Alpaca API endpoints by topic, operation, path fragment, parameter, or schema when the method and path are unknown. Read-only; covers Trading, Market Data, and Authentication APIs.

Instructions

Search Alpaca API reference endpoints by topic, operation, path fragment, parameter, or schema term. Use when the exact method and path are unknown. Read-only; does not execute endpoints; searches Trading API, Market Data API, and Authentication API only; excludes Broker API. Use query; do not use pattern.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
queryYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv2.3.2

TDQS

A4.8/5.0
Behavior5/5

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

Beyond the readOnlyHint annotation, the description adds meaningful behavioral context: it does not execute endpoints, it searches only Trading/Market Data/Authentication APIs, and it excludes Broker API. The instruction 'Use `query`; do not use `pattern`' also clarifies an important operational constraint.

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?

Three sentences, no filler, with purpose front-loaded and usage/scope details following in logical order. Every sentence contributes actionable information.

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

Completeness5/5

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

For a single-parameter read-only search tool, the description covers what it searches, when to use it, what it does not do, and the parameter to use. Together with the existing output schema and annotations, nothing essential is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The schema provides only a bare 'query' string with 0% description coverage ROC, so the description carries the full burden. It compensates by defining what the query can match and explicitly instructing to use `query` rather than `pattern`, giving the agent enough semantics to call the tool correctly.

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 states a specific verb ('Search'), a clear resource ('Alpaca API reference endpoints'), and the dimensions of search ('topic, operation, path fragment, parameter, or schema term'). It also distinguishes itself from similar doc/endpoint tools by scoping to reference endpoints and excluding Broker API.

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?

It explicitly says 'Use when the exact method and path are unknown,' giving a clear trigger condition. However, it does not name alternative sibling tools like get_alpaca_endpoint_docs or fetch_alpaca_doc, nor does it state an explicit 'when not to use' rule.

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