Skip to main content
Glama

Market data: batch stock prices

stock_prices

Fetch prices and daily change for several tickers at once, with each value tagged by the provider that supplied it, so you can verify agreement across sources before acting.

Instructions

Prices for several instruments at once, from every provider that carries them.

Each ticker is resolved per provider and looked up natively: TradingView's scanner, Finviz's screener, Yahoo's chart API, StockAnalysis's quote API, Bloomberg's quote page and Investing.com's native search and verified quote page. The per-row data_provider says whether that particular ticker was answered by every provider asked for that ticker, by some of them, by one, or by none; envelope coverage is PARTIAL when any symbol missed an attempted provider, even when another row is ALL. agrees says whether the readings matched. Bloomberg is asked about at most TAPEBASIS_BLOOMBERG_BATCH_MAX tickers per call (default 4) because its page path is paced at 10 s per request; the rest are reported as skipped in warnings rather than silently missing.

Args: tickers: Comma-separated symbols, e.g. "AAPL,MSFT,XAUUSD".

Returns: Envelope whose data is a list of rows, each with symbol, price, change_percent, its own data_provider, and a fields map giving each value's provenance. price_source names the provider the row's values were taken from, and fields states it per field, because only price and change_percent are compared: a row can read ALL while previous_close was shaped by one provider. session names the window the row's price printed in, and price_field names the provider field it was read from, so a swap from a stale regular value to a live session print is auditable rather than implied. On an FX symbol the day change is reported but not compared, because spot FX has no single official previous close. Per-symbol misses and errors keep attempted empty results and original provider error codes visible, with the envelope aggregating those failures and the row-derived comparison verdicts.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "tickers": "<tickers>"
    },
    "name": "stock_prices"
  }
}

Input Schema

NameRequiredDescriptionDefault
tickersYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.1/5.0
Behavior5/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 so well: it discloses per-provider resolution, that partial coverage yields PARTIAL envelopes even when a row is ALL, that Bloomberg is capped at TAPEBASIS_BLOOMBERG_BATCH_MAX tickers per call because its page path is paced at 10 s per request, and that skipped tickers surface in warnings rather than vanishing. It also explains FX day-change non-comparison and that misses/errors preserve original provider codes — unusually rich degradation and rate-limit context.

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

Conciseness3/5

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

The purpose is front-loaded, but the description is dense and repetitive — the fields/provenance explanation restates the same point twice, and the long Returns block re-explains semantics that an output schema already carries. It is informative but not efficiently trimmed.

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?

Given an output schema exists, the return-value prose is optional, yet the description supplies the semantic meaning of data_provider, agrees, session, price_field, and warnings that a schema alone would not convey. The only notable gap is the absence of guidance on choosing this tool over its single-symbol or history siblings.

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?

Schema coverage is 0% for the single required parameter, so the description must compensate, and it does: it specifies comma-separated syntax with a concrete example including a non-equity symbol ('AAPL,MSFT,XAUUSD'). It also explains per-ticker downstream behavior (individual resolution, per-row provider verdicts), which is meaningful beyond the bare string type.

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 resource and scope: prices for several instruments at once, sourced from every provider that carries them. This is clearly distinguishable from a single-symbol quote tool by the batch framing, but the description never names a sibling or contrasts with one, so the differentiation is left implicit.

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

Usage Guidelines3/5

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

'Prices for several instruments at once' implies the batch use case, but there is no explicit when-to-use or when-not-to-use guidance and no pointer to alternatives such as a single-quote or price-history tool. An agent must infer selection from the batching phrase alone.

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