Skip to main content
Glama

get_market_data

Latest trade price for a selected market, plus aggregate market cap and 24h volume. Pass quote_token and market_data_venue together to honor a requested exchange. When omitted, selects a supported market and returns its quote and venue. Report the returned venue and quote; disclose price_as_of and price_stale. Use it when the user asks what an asset is doing now, or when a live price is needed to ground a recommendation. It is a spot reading from an external API and is rate limited, so call it once per asset and reuse the answer.

[Access: pay 0.005 USDC via x402 (PAYMENT-SIGNATURE header) OR authenticate with an API key. An x402-capable client will auto-pay; API-key clients pay nothing per call.]

Input Schema

NameRequiredDescriptionDefault
symbolYesAsset symbol, e.g. BTC or ETH.
providerNoOptional upstream override; omitted uses the existing server default.
quote_tokenNoQuote currency of the requested market.
market_data_venueNoExact venue of the requested market.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does substantial work: it discloses an external API dependency, rate limiting, a spot (non-streaming) read, and both auth paths including per-call x402 pricing. It also mandates surfacing price_as_of and price_stale, which is exactly the kind of output caveat an agent needs. Missing: failure behavior for unsupported symbols/markets and what 'aggregate' market cap actually spans.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loads what the tool returns, then the parameter rule, then the reporting obligation, then usage context. Sentences are dense and mostly earn their place; the access/payment block is verbose but carries non-obvious cost information. Slightly over-packed for a single read tool.

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?

No output schema, but the description enumerates the returned fields (price, market cap, 24h volume, quote, venue, price_as_of, price_stale) and covers cost/auth and rate limits. What remains thin is error/edge behavior and the meaning of the aggregate market cap across the selected venue.

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 coverage is 100%, so baseline is 3, but the description adds genuine semantics the schema does not: quote_token and market_data_venue must be passed together to honor a requested exchange, and omission triggers server-side market selection with the chosen quote/venue returned. That pairing constraint and default-resolution rule are only in the prose.

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?

States a specific verb and resource — 'Latest trade price for a selected market, plus aggregate market cap and 24h volume' — and frames it as 'a spot reading from an external API.' It doesn't name any sibling (get_ohlcv, get_asset, get_symbol_exchanges) to draw a boundary, so an agent must infer the split from 'latest/spot' on its own.

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?

Gives a concrete trigger: 'when the user asks what an asset is doing now, or when a live price is needed to ground a recommendation,' plus a reuse rule ('call it once per asset and reuse the answer'). There is no explicit when-not or named alternative for historical/time-series needs, which is the main gap.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.