Skip to main content
Glama
alpacahq

alpaca-mcp-server

Official
by alpacahq

get_crypto_latest_trade

Get the last executed trade for one or more crypto symbols. Provide a comma-separated symbol list and set loc to 'us' to return current market data.

Instructions

Returns the latest trade for one or more crypto symbols. The loc parameter is required — always set loc to "us".

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
locYesCrypto location from where the latest market data is retrieved.
symbolsYesA comma-separated list of crypto symbols.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv2.3.2
    • removedInput schema / properties / loc / x-go-name
      Removed value: -"TypeLatestLoc"
  2. Addedv2.0.0

TDQS

A3.8/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 adds a useful operating constraint ('always set loc to "us"') and implies a read-only operation, but it does not mention authentication expectations, data-locality implications, or the meaning of 'latest' in terms of market data freshness. The output schema covers return values, so that is not a gap.

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 short sentences with no filler: the first gives the tool's purpose, and the second gives the critical call constraint. Every part earns its place.

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?

For a low-complexity read tool with fully documented parameters and an output schema, the description covers what is needed to call it correctly: what it returns, the required loc value, and the symbols input. It is slightly incomplete only in not explaining when this endpoint should be selected over the related crypto quote, snapshot, or trades endpoints.

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?

Schema description coverage is 100%, so the schema already documents both parameters. The description adds meaningful guidance by instructing the agent to always pick 'us' from the loc enum, which is exactly the kind of selection help an agent needs. It also reinforces that the tool handles one or more symbols.

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?

States a concrete action—'Returns the latest trade'—on a specific resource ('crypto symbols'). The use of 'trade' and 'crypto' clearly distinguishes it from sibling tools like get_crypto_latest_quote or get_crypto_latest_bar, even without explicitly naming them.

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 given for when to prefer this tool over get_crypto_trades, get_crypto_latest_quote, or get_crypto_snapshot. The only operational note is loc='us', which is parameter-level instruction, not a use-case or alternative-selection guideline.

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