Skip to main content
Glama
Yahoo Finance MCP Server

Yahoo Finance MCP Server

get_stock_quote

Read-onlyIdempotent

Retrieve a real-time quote snapshot for one stock ticker, including last price, day change, ranges, volume, market cap, P/E, EPS, dividend yield, and sector data.

Instructions

Real-time quote snapshot for ONE stock: last price, day change ($ and %), open, previous close, day range, 52-week range, volume and average volume, market cap, beta, trailing P/E, EPS, dividend yield, and sector/industry/website.

Use for "what's the price of X" or a quick single-stock snapshot. For several stocks side by side use compare_stocks; for the full company profile use get_company_info; for a past price series use get_historical_prices.

Returns Markdown by default, or structured JSON when response_format='json'. An unknown ticker or an upstream/rate-limit error returns a short error message rather than raising.

Input Schema

NameRequiredDescriptionDefault
tickerYesStock ticker symbol (e.g., 'AAPL' for Apple, 'MSFT' for Microsoft, 'TSLA' for Tesla)
response_formatNoOutput format: 'markdown' for human-readable or 'json' for machine-readablemarkdown

Output Schema

NameRequiredDescriptionDefault
betaNo
openNo
changeNo
dayLowNo
sectorNo
tickerNo
volumeNo
dayHighNo
messageNoSet instead of data when there is nothing to return for this request (for example, no dividends on record).
websiteNo
currencyNoISO currency of every price field, e.g. USD, JPY, GBp (pence).
exchangeNo
industryNo
longNameNo
marketCapNo
quoteTypeNo
trailingPENo
marketStateNoPRE, REGULAR, POST, CLOSED and similar.
trailingEpsNo
currentPriceNo
averageVolumeNo
changePercentNo
dividendYieldNoPercent, e.g. 0.41 means 0.41%.
previousCloseNo
fiftyTwoWeekLowNo
fiftyTwoWeekHighNo
regularMarketTimeNoISO 8601 time of the last regular-session price, in the exchange's timezone.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.6.0

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, openWorld and non-destructive, so safety is covered. The description adds genuinely non-derivable behavior: an unknown ticker or upstream/rate-limit failure returns a short error message instead of raising — important for agent error handling that no annotation conveys. It stops short of describing freshness/latency guarantees or pagination (not applicable here).

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 short blocks, front-loaded with what it returns, then sibling routing, then output/error behavior. There is no filler and no repeated phrasing; the enumerated field list is dense rather than padded.

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 two-parameter read tool with a full schema and an output schema, the description covers selection guidance, output format choice, and failure semantics. Nothing an agent needs to invoke it correctly is missing.

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

Parameters3/5

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

Schema coverage is 100%, with both ticker examples and the response_format enum fully documented, so the schema carries the load. The description only restates the output-format choice ('Markdown by default, or structured JSON when response_format=json'), adding little beyond the schema's own default and enum description.

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 first sentence names a specific verb and resource ('Real-time quote snapshot') and constrains scope to 'ONE stock', then enumerates the exact fields returned (price, day change, ranges, volume, market cap, beta, P/E, EPS, yield, sector). That field list lets an agent distinguish it from get_company_info or get_financial_statements without opening any schema.

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

Usage Guidelines5/5

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

It gives both a positive trigger ('what's the price of X' or a quick single-stock snapshot) and explicit routing to three named alternatives: compare_stocks for multiple stocks, get_company_info for the full profile, get_historical_prices for a past price series. The when-not-to-use conditions are stated rather than inferred.

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