Skip to main content
Glama
Yahoo Finance MCP Server

Yahoo Finance MCP Server

yfinance_get_earnings_dates

Read-only

Retrieve historical and upcoming earnings dates for a stock ticker, including EPS estimates, reported EPS, and surprise percentages; filter results to future dates only.

Instructions

Get earnings calendar information including historical and upcoming earnings dates with estimates.

Args: ticker: Stock ticker symbol (e.g., 'AAPL', 'MSFT', 'GOOGL') limit: Maximum number of earnings dates to return (default: 12) future_only: If True, return only upcoming earnings dates (default: False) response_format: Output format - 'json' or 'markdown' (default: 'markdown')

Returns: Formatted string containing earnings information including: - Earnings dates (historical and/or upcoming) - EPS estimates - Reported EPS (for historical dates) - Surprise percentage (actual vs estimate)

Example: yfinance_get_earnings_dates("AAPL", "json") yfinance_get_earnings_dates("AAPL", limit=4) # Last 4 quarters yfinance_get_earnings_dates("AAPL", future_only=True) # Only upcoming

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_earnings_dates"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNo
tickerYes
future_onlyNo
response_formatNomarkdown

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnlyHint and openWorldHint, so safety is covered; the description adds the substantive part by enumerating what the result contains (dates, EPS estimates, reported EPS, surprise percentage) and what future_only does. It does not discuss failure modes such as invalid tickers or empty calendars, but for a read-only lookup this is solid added context.

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?

The one-line summary is front-loaded, and the Args/Returns/Example structure is easy to scan. The Returns block restates information the output schema already provides, which is mild redundancy, but nothing is confusing or padded.

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 four-parameter, read-only retrieval tool with an output schema and safety annotations, the description covers purpose, all parameters, and expected content. Only minor items are missing — error behavior for unknown tickers and pagination or result-size limits when limit is large.

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?

Schema description coverage is 0%, so the description carries the full burden and largely meets it: ticker gets format examples, limit gets a default and a practical interpretation ('last 4 quarters'), future_only gets a clear behavioral meaning, and response_format gets both allowed values. The only gap is the absence of bounds or valid ranges for limit and guidance on when markdown versus json is preferable.

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+resource: 'Get earnings calendar information including historical and upcoming earnings dates with estimates.' It is unambiguous about what data is returned. It does not explicitly distinguish itself from siblings like yfinance_get_stock_info or yfinance_get_stock_financials, though the earnings-calendar framing makes the distinction reasonably obvious.

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 conveyed only through worked examples ('limit=4 # Last 4 quarters', 'future_only=True # Only upcoming'), which shows how to shape a query but not when to prefer this tool over an alternative. There are no explicit exclusions or preconditions, leaving selection guidance implied rather than stated.

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