Skip to main content
Glama
yfinance-agent-mcp

yfinance-agent-mcp

by n-kostadinov

Get ticker dataset

get_ticker_dataset
Read-only

Retrieve Yahoo Finance datasets for a single symbol, including holders, dividends, splits, ESG, SEC filings, earnings history, and fund holdings, with paging and column filters.

Instructions

Any other yfinance data for one symbol, from an allowlist of datasets.

Tables come back as paged rows (time-indexed ones newest first); text, dict and list datasets come back as data.

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>",
      "dataset": "<dataset>"
    },
    "name": "get_ticker_dataset"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoRows per page.
offsetNoFirst row; use `next_offset`.
symbolYesOne Yahoo Finance symbol, e.g. AAPL.
columnsNoKeep only these columns (see `columns` in a first answer).
datasetYesHolders and insiders, dividends/splits/actions, ISIN, ESG, SEC filings, earnings history, chart metadata, the raw quote summary ('info'), or an ETF/fund's overview, holdings and weightings (fund_*).
response_formatNo'concise' (default; up to 20,000 characters) or 'detailed' (up to 80,000).concise

Output Schema

NameRequiredDescriptionDefault
dataNoThe value, when the dataset is not a table.
rowsNoTable rows; time-indexed tables are newest first.
as_ofYesWhen this data was fetched from Yahoo Finance, in UTC.
sourceNoData source and the yfinance version.
symbolYes
columnsNoAll columns of a table dataset, for `columns`.
datasetYes
warningsNoCaveats such as delayed quotes, symbols that failed, or trimmed results.
truncatedNoTrue when rows were left out to keep the response small.
total_rowsNoRows in the whole dataset.
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

B3.3/5.0
Behavior4/5

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

Annotations only cover readOnlyHint and openWorldHint, so the description earns credit for disclosing the return contract: tabular datasets arrive as paged `rows` with time-indexed ones newest-first, while text/dict/list datasets arrive as `data`. That ordering and shape distinction is real behavioral context an agent needs for parsing, though it stops short of noting failure modes or per-dataset caveats.

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 sentences with the return-shape detail front-loaded after the scope statement; no filler. The opening 'Any other yfinance data' is slightly imprecise phrasing but costs little.

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?

An output schema exists, so return values need not be spelled out, and the description still usefully covers the rows-vs-data split. Against a 25-value dataset enum and 6 parameters, however, it gives no guidance on which dataset to pick for which need, leaving a meaningful gap for a broad 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%, so the schema already documents limit, offset, columns, and the dataset enum in detail. The description only indirectly gestures at paging via 'paged `rows`' and adds no syntax or format meaning beyond the structured fields, so the baseline 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description scopes the tool to a single symbol and to an allowlist of datasets, but the core purpose is stated as 'Any other yfinance data', a residual/catch-all framing rather than a specific verb+resource. An agent knows it is the miscellaneous dataset fetcher, but not concretely what 'other' excludes without cross-referencing the enum and siblings.

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?

'Any other' implies a fallback role after the dedicated sibling tools, which is usable implied guidance. However, no sibling is named and there is no explicit when-not or 'use X instead for Y' statement, so the agent must infer the routing boundary itself.

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