Skip to main content
Glama
yfinance-agent-mcp

yfinance-agent-mcp

by n-kostadinov

Get events

get_events
Read-only

Retrieve upcoming earnings, IPO, economic, and split events for a date range, or pull per-symbol earnings dates, estimates, dividend dates, and past surprises.

Instructions

Upcoming events that move prices: earnings, IPOs, economic releases and splits.

Without symbols it lists market-wide events in the date range (at most 92 days). With symbols it returns each one's earnings calendar and recent earnings surprises.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "get_events"
  }
}

Input Schema

NameRequiredDescriptionDefault
endNoLast day (YYYY-MM-DD); default start + 7 days.
kindNoCalendar: earnings, ipo, economic or splits.earnings
limitNoMaximum calendar rows.
startNoFirst day (YYYY-MM-DD); default today.
symbolsNoEarnings calendars of up to 10 symbols instead of the market-wide list: next earnings date, EPS/revenue estimates, dividend dates, past surprises.
response_formatNo'concise' (default; up to 20,000 characters) or 'detailed' (up to 80,000).concise

Output Schema

NameRequiredDescriptionDefault
endYesLast day covered (YYYY-MM-DD).
kindYes
as_ofYesWhen this data was fetched from Yahoo Finance, in UTC.
startYesFirst day covered (YYYY-MM-DD).
errorsNo
eventsNoMarket-wide calendar rows, when no symbols are given.
sourceNoData source and the yfinance version.
symbolsNoPer-symbol earnings calendars, when symbols are given.
warningsNoCaveats such as delayed quotes, symbols that failed, or trimmed results.
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.

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 and openWorldHint, so safety is covered. The description adds real behavioral context beyond them: a 92-day maximum window for market-wide lists and the fact that supplying symbols changes the returned payload entirely. It says nothing about data freshness, timezone handling, or rate limits.

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?

Two short paragraphs with the core purpose front-loaded and the mode distinction immediately after. Minor redundancy between 'earnings' in the opening list and the earnings-focused second paragraph, but nothing wasteful.

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 an output schema, complete parameter descriptions, and safety annotations, the description only needs to frame the tool's two modes and its window cap, which it does. A note on date inclusivity or data recency would close the remaining gap but is not essential.

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 coverage is 100%, so all six parameters are already documented, including the start/end defaults and the symbols semantics. The description restates the symbols behavior (earnings dates, estimates, dividend dates, surprises) but adds no new syntax, format, or constraint detail beyond the schema. Baseline 3 is appropriate.

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 resource ('upcoming events') and enumerates the categories it covers (earnings, IPOs, economic releases, splits), which is enough to separate it from siblings like get_news or get_fundamentals. It stops short of explicitly naming which sibling to use for non-event data.

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?

The two modes ('without symbols' lists market-wide; 'with symbols' returns per-ticker earnings calendars) implicitly tell the agent how to choose between behaviors, which is useful. However, there is no explicit when-to-use/when-not guidance and no reference to alternative tools for related needs.

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