Skip to main content
Glama
Yahoo Finance MCP Server

Yahoo Finance MCP Server

yfinance_get_stock_news

Read-only

Retrieve recent news articles for a stock ticker, with configurable result limits and JSON or Markdown output for stock research.

Instructions

Get recent news articles related to a stock.

Args: ticker: Stock ticker symbol (e.g., 'AAPL', 'MSFT', 'GOOGL') limit: Maximum number of news items to return (default: 10, max: 50) response_format: Output format - 'json' or 'markdown' (default: 'markdown')

Returns: Formatted string containing recent news articles with: - Article title - Article description/summary - Publisher name - Publication date and time - Article link - Content type - Thumbnail image URL

Example: yfinance_get_stock_news("TSLA", 5, "markdown")

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": {
      "ticker": "<ticker>"
    },
    "name": "yfinance_get_stock_news"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNo
tickerYes
response_formatNomarkdown

Output Schema

NameRequiredDescriptionDefault
resultYes

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?

readOnlyHint=true and openWorldHint=true already tell the agent that this is a safe, external-fetching read, so the description is not the main place safety context comes from. The description contributes the 50-item cap on `limit` (the schema shows only the default of 10) and lists the fields that come back, but says nothing about error behavior, empty results, or the time window that 'recent' covers. That is adequate but not rich.

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?

Docstring structure: Args and Returns sections, with the one-line purpose stated first. It is front-loaded, and each section has a purpose. The Returns list repeats information the output schema already provides and, together with the example, adds some length, but the text is never padded.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

The output schema already exists, so the description does not need to enumerate return fields, yet it spends much of its length doing so. It also omits what an agent actually needs to know: how recent 'recent' is, whether results are sorted, and what it gets back for an unknown ticker. For a simple three-parameter read tool this is workable but leaves real gaps.

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

Parameters4/5

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

The schema has 0% description coverage, so the description has to carry all the parameter meaning, and it does: ticker with concrete examples, limit with default and maximum, and response_format with both allowed values and the default. Its only shortfall is that the ticker format is conveyed only by example and does not give exchange suffixes or validation rules.

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 verb and resource: 'Get recent news articles related to a stock.' That cleanly separates it from the other yfinance resource tools (financials, history, info, recommendations, options chain). It stops short of an explicit sibling comparison, so a 4 rather than a 5.

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: fetch news when you need news for a ticker. There is no when-to-use/when-not guidance, no mention of alternatives such as search_stocks for finding a ticker first, and no notes on unusual cases like an invalid symbol or an empty feed. The example implies the normal call shape but adds no selection guidance.

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