Skip to main content
Glama
yfinance-agent-mcp

yfinance-agent-mcp

by n-kostadinov

Get analyst view

get_analyst_view
Read-only

Retrieve analyst expectations for a stock symbol, including price targets, buy/hold/sell counts, rating changes, EPS and revenue estimates, and growth trends.

Instructions

What analysts expect for one symbol: price targets, buy/hold/sell counts, recent rating changes, EPS and revenue estimates, estimate trends and revisions, growth.

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": "get_analyst_view"
  }
}

Input Schema

NameRequiredDescriptionDefault
symbolYesOne Yahoo Finance symbol, e.g. AAPL.
rating_changesNoHow many recent upgrades/downgrades to show.
response_formatNo'concise' (default; up to 20,000 characters) or 'detailed' (up to 80,000).concise

Output Schema

NameRequiredDescriptionDefault
as_ofYesWhen this data was fetched from Yahoo Finance, in UTC.
sourceNoData source and the yfinance version.
symbolYes
warningsNoCaveats such as delayed quotes, symbols that failed, or trimmed results.
eps_trendYesHow the EPS estimate moved over the last 90 days.
truncatedNoTrue when rows were left out to keep the response small.
next_offsetNoPass as `offset` to fetch the next rows, when the result is truncated.
eps_revisionsYes
price_targetsYesCurrent price and the analysts' high, low, mean and median targets.
rating_changesYesMost recent upgrades and downgrades first.
recommendationsYesStrong buy to strong sell counts; period 0m is this month, -1m last month.
growth_estimatesYes
revenue_estimateYes
earnings_estimateYesEPS estimates; period 0q this quarter, +1q next, 0y this year, +1y next.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and openWorldHint=true, so the safety profile is known without the description. The description adds content scope but says nothing about data freshness, whether estimates are delayed or stale, or coverage gaps for thinly covered tickers — context that matters for an open-world read tool.

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?

A single front-loaded sentence with the scope ('one symbol') stated before the enumerated payload; no filler words. The trailing list is dense but every item is informative, so nothing is wasted.

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?

With a full output schema the description need not explain return values, and annotations cover safety, so the description's remaining job is scope — which it does well. The only gap is a brief note on data recency/coverage, which would round out an open-world securities tool.

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%, with all three parameters documented including the enum for response_format and the bounds on rating_changes, so the baseline is 3. The description only reinforces the single-symbol constraint and adds no meaning beyond the schema (e.g., when to raise rating_changes or pick detailed output).

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?

The definition names a specific resource — analyst expectations for exactly one symbol — and enumerates its contents (price targets, buy/hold/sell counts, rating changes, EPS/revenue estimates, revisions, growth). An agent can distinguish this from data-domain siblings like get_news or get_price_history, though it never explicitly contrasts with the potentially overlapping get_fundamentals.

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?

Usage is only implied: the phrase 'for one symbol' signals a single-symbol lookup, so the agent infers it should be called with one ticker when analyst consensus is wanted. There is no explicit when-to-use, when-not-to-use, or named alternative such as get_fundamentals.

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