Skip to main content
Glama
Yahoo Finance MCP Server

Yahoo Finance MCP Server

get_earnings

Read-onlyIdempotent

Check a stock's next earnings date, consensus EPS and revenue range, prior EPS surprises, and ex-dividend date before opening or holding a position through earnings.

Instructions

Next earnings date for one stock (with days until it, consensus EPS and revenue range) plus its earnings history: each past report's EPS estimate, reported EPS and surprise %. Also returns the next ex-dividend date.

Use before opening or holding a position through earnings, to check the earnings track record (beats vs misses), or for "when does X report". For forward EPS/revenue estimates by period use get_analyst_estimates; for every company reporting in a date range use get_earnings_calendar; for full income statements use get_financial_statements. limit counts upcoming and past dates together, newest first.

Returns Markdown by default, or JSON when response_format='json'. A symbol with no earnings (an ETF, an index) returns a short message.

Input Schema

NameRequiredDescriptionDefault
limitNoHow many earnings dates to return, upcoming and past (1-40)
tickerYesStock ticker symbol (e.g., 'AAPL', 'MSFT', 'TSLA')
response_formatNoOutput format: 'markdown' for human-readable or 'json' for machine-readablemarkdown

Output Schema

NameRequiredDescriptionDefault
beatsNo
tickerNo
historyNo{date, epsEstimate, reportedEps, surprisePercent} per report.
messageNoSet instead of data when there is nothing to return for this request (for example, no dividends on record).
epsEstimateNo
exDividendDateNo
revenueEstimateNo
nextEarningsDateNo
daysUntilEarningsNo
nextEarningsWindowNo
reportsWithSurpriseNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.6.0

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-destructive, open-world), and the description adds genuinely new behavior: limit counts upcoming and past dates together with newest-first ordering, markdown is the default with JSON opt-in, and symbols without earnings (ETFs, indices) return a short message rather than erroring. It stops short of describing error behavior for invalid tickers or any rate/coverage limits, so it is strong but not exhaustive.

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 what is returned, then when to use it, then sibling routing, then a return-format note — a logical order with no filler sentences. Slightly dense parentheticals in the opening sentence cost a point, but every paragraph carries distinct information.

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?

With an output schema present, the description need not enumerate return fields, and it still flags the output format toggle and the empty-result case. For a three-parameter read tool, nothing an agent needs to call it correctly or interpret an unusual result is missing.

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 coverage is 100%, so the baseline is 3; the description earns an extra point by clarifying a real ambiguity the schema leaves open — that limit applies to upcoming and past dates combined, and results are ordered newest first. Ticker and response_format semantics are left to the schema, which is reasonable.

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?

States a specific resource and what it returns: next earnings date with days-until, consensus EPS and revenue range, historical EPS estimate/reported/surprise %, plus next ex-dividend date. The scope (one stock) and the boundary against siblings are clear enough that an agent can pick it without opening the 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 explicit situations to use it (before opening/holding through earnings, checking beat/miss track record, 'when does X report') and names three alternatives with the condition that selects each: get_analyst_estimates for forward estimates by period, get_earnings_calendar for a date-range sweep, get_financial_statements for full statements. No inference required.

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