Skip to main content
Glama
Yahoo Finance MCP Server

Yahoo Finance MCP Server

get_analyst_recommendations

Read-onlyIdempotent

Retrieve Wall Street analyst ratings, price targets, consensus recommendations, and recent upgrades or downgrades for a stock to assess analyst sentiment.

Instructions

Wall Street analyst view on one stock: price targets (high/mean/low), consensus rating, the buy/hold/sell recommendation-trend breakdown, and recent upgrades/downgrades.

Use for "what do analysts think of X", ratings, or sentiment. For forward EPS/revenue/growth projections use get_analyst_estimates instead: this tool is ratings and targets, that one is the numeric estimates. Not for news-driven sentiment (use get_market_news). Small caps often have few or no covering analysts, so a thin consensus carries little weight.

Returns Markdown by default, or JSON when response_format='json'. A stock with no analyst coverage returns the available fields as N/A; errors return a short message.

Input Schema

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

Output Schema

NameRequiredDescriptionDefault
tickerNo
messageNoSet instead of data when there is nothing to return for this request (for example, no dividends on record).
consensusNo
priceTargetsNo
upgradesDowngradesNo
recommendationTrendNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.6.0

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already cover safety (readOnly, idempotent, non-destructive, openWorld), so the bar is lower, and the description still adds real behavior: default Markdown vs JSON output, N/A fields returned for uncovered stocks, and short error messages rather than exceptions. The only gap is freshness/recency of analyst data and any rate-limit or pagination behavior, which are not addressed.

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-loaded with purpose, then usage and exclusions, then output behavior – a logical progression that an agent can scan. Slightly redundant in re-announcing the Markdown default after the schema already declares it, but no wasted sentences of any consequence.

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-only lookup with an output schema, the description covers everything the agent needs: what comes back, the format switch, the no-coverage edge case, and the sibling boundaries. Even though an output schema exists, the N/A and error-message notes preempt the two failure modes an agent would otherwise misread.

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 description coverage is 100%, so both parameters are already documented in structured fields; the description's mention of "response_format='json'" merely restates the schema. No additional meaning is added for the ticker beyond the schema's format hints, so the baseline of 3 applies.

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?

"Wall Street analyst view on one stock" is a specific verb+resource, immediately followed by an enumeration of the payload (price targets high/mean/low, consensus rating, buy/hold/sell trend, recent upgrades/downgrades). It is unmistakably distinct from siblings like get_analyst_estimates or get_holders 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?

Gives an explicit trigger phrase ("what do analysts think of X", ratings, sentiment) and names two alternatives with the exact boundary conditions: get_analyst_estimates for forward EPS/revenue/growth numbers, get_market_news for news-driven sentiment. It even adds a data-quality caveat about thin small-cap coverage that tells the agent when to discount results.

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