Skip to main content
Glama

Market data: quote, fundamentals, and a snapshot

stock_quote

Retrieves a single instrument's quote and fundamentals from every capable provider, cross-checks overlapping fields, and labels each value with its source for provenance.

Instructions

Quote and fundamentals for one instrument, asked of every capable provider.

Each provider is asked independently and natively: TradingView's scanner, Finviz's quote page, Yahoo's chart API, StockAnalysis's quote API, Investing's native search and identity-verified quote page, and Bloomberg's quote page, in parallel. Nothing proxies another, so the cross-check is real. Price, change, previous close, the session's own open/high/low, the 52-week range, P/E, RSI, volume and the average analyst target are compared field by field; Finviz's deeper fundamentals, the 84-field snapshot, the revenue/segment breakdown, company profile, peers and after-hours print, ride along, each labelled with the provider that supplied it. A field that cannot be shown to describe the same observation is reported as not_comparable rather than as a conflict, and an FX day change is never compared because spot FX has no single official previous close. An empty response after a symbol resolves remains NO_DATA, not NOT_ATTEMPTED.

Bloomberg's prints can be structurally older than a live feed's (exchangeDelay is 15 Minutes on equities and indices). That is handled by the print-time guard, not by hiding the leg: when its print is too far from the others to be the same observation, the pair is reported as not comparable with that reason, and its delayed reading never wins the freshness tie-break. exchange_delay and print_time ride along so the delay is visible.

StockAnalysis covers US equities and ETFs only. Its quote surface is the same consolidated tape Yahoo serves, so agreement between those two is weak corroboration rather than two independent witnesses; that is stated in the docs and in the single-source notice. Indices, FX, crypto and foreign listings resolve to "not carried" for that leg, which is recorded as NOT_ATTEMPTED rather than as a failure. Investing accepts only exact, unambiguous equity or ETF identities verified between native search and the returned page. Its analyst counts and technical summaries remain named single-source extras, and ordinary stock lastClose is never promoted to a previous close. Its search or page failures are isolated provider errors.

Symbols are resolved dynamically per provider, so XAUUSD reaches TradingView as OANDA:XAUUSD, Yahoo as XAUUSD=X, Bloomberg as XAUUSD:CUR, and Finviz and StockAnalysis are told they do not carry spot gold; Investing likewise does not substitute its commodity listing.

Args: symbol: Anything the instrument is commonly called (AAPL, BRK.B, XAUUSD, SPX, BTCUSD, OANDA:XAUUSD).

Returns: Envelope whose data_provider is ALL when every provider asked answered, PARTIAL when multiple providers answered but another asked provider failed, one provider name when only that provider answered, or NONE when no provider did. resolutions records how each provider's ticker was derived. analyst_targets retains each provider's own target, analyst-count scope, rating distribution and, for Finviz, the visible rating actions used to derive its distinct firm count. Name-free data summaries return TradingView's three-month analyst total and Finviz's visible-action total with every supplied rating class and exact final-label count, never one combined cross-provider total. Finviz row transitions and same-SSR implied upside are retained. A failed forecast page adds a capability-tagged error without changing the primary quote's coverage. session names the window the served price printed in (pre_market, regular, post_market or overnight), and it is taken from the winning provider's own print rather than from another leg's label, so a delayed feed cannot describe a print it did not supply.

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": {
      "symbol": "<symbol>"
    },
    "name": "stock_quote"
  }
}

Input Schema

NameRequiredDescriptionDefault
symbolYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.9/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 extensively: it distinguishes NOT_ATTEMPTED from NO_DATA, explains not_comparable versus conflict, discloses StockAnalysis's weak corroboration against Yahoo, documents Investing's exact-identity requirement and error isolation, and describes the print-time guard for Bloomberg's 15-minute delayed equities. It even names which asset classes each leg does not carry, which is the kind of failure-mode detail agents normally only learn by trial.

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 opening sentence is well front-loaded, but the body sprawls into dense provider-by-provider internals with mid-sentence line breaks and doubled backticks. Several ideas are restated (not_comparable is explained twice, provider independence twice), and the 'Returns' block duplicates the existing output schema.

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 fan-out tool hitting six providers, the definition covers failure taxonomy, provider coverage limits, delay handling and envelope semantics, so an agent can call it and interpret the response without surprises. The main omission is any note on latency or cost of querying six providers in parallel, and there is no guidance on when this is overkill versus a single-source sibling.

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%, so the description must compensate and it does: the symbol arg is defined as 'anything the instrument is commonly called' with concrete examples spanning equity, class-share, FX, index and crypto (AAPL, BRK.B, XAUUSD, SPX, BTCUSD, OANDA:XAUUSD). It further explains that symbols are resolved per provider (XAUUSD to OANDA:XAUUSD, XAUUSD=X, XAUUSD:CUR), which tells the agent it need not pre-normalize tickers.

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?

Opens with a specific verb and resource: 'Quote and fundamentals for one instrument, asked of every capable provider,' which tells an agent this is the multi-provider cross-check quote tool rather than a single-source one. It never names a sibling to route away from, so differentiation from bloomberg_quote, investing_quote or market_snapshot is only inferable from the provider list.

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?

The text is entirely about internal mechanics; it never states when to pick this over bloomberg_quote, investing_quote, stock_fundamentals or stock_prices. The only guidance-shaped statement is the symbol argument's accepted forms, which is parameter semantics, not usage. An agent must infer the selection rule from the word 'every capable provider.'

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