Skip to main content
Glama
yfinance-agent-mcp

yfinance-agent-mcp

by n-kostadinov

Get quotes

get_quotes
Read-only

Retrieve latest prices, daily changes, day ranges, volume, and 52-week ranges for up to 25 Yahoo Finance symbols, with per-symbol errors and market time/delay details.

Instructions

Latest price, daily change, day range, volume and 52-week range for up to 25 symbols.

Symbols without data are listed in errors instead of failing the whole call. Check market_time and delay_min before acting on a price.

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": {
      "symbols": "<symbols>"
    },
    "name": "get_quotes"
  }
}

Input Schema

NameRequiredDescriptionDefault
symbolsYesUp to 25 Yahoo Finance symbols, e.g. ['AAPL', 'SAP.DE', 'BTC-USD', '^GSPC', 'EURUSD=X'].
include_detailsNoAdd market cap, P/E, dividend yield, bid/ask, Yahoo's market state, quote source and delay (one more Yahoo request per symbol).
response_formatNo'concise' (default; up to 20,000 characters) or 'detailed' (up to 80,000).concise

Output Schema

NameRequiredDescriptionDefault
as_ofYesWhen this data was fetched from Yahoo Finance, in UTC.
errorsYesSymbols without data, and why.
quotesYesOne entry per symbol that has data.
sourceNoData source and the yfinance version.
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.8/5.0
Behavior4/5

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

Annotations only declare readOnlyHint and openWorldHint; the description adds two behaviors the agent could not otherwise know, namely that unresolvable symbols are surfaced in `errors` rather than failing the whole batch, and that quotes can be delayed and must be time-checked before use. It stops short of stating the delay magnitude or refresh cadence, so not a 5.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three short lines: payload contents first, then failure semantics, then the stale-price caveat. Nothing is padded and the cautions are placed where an agent will read them before calling.

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?

An output schema exists so return values need no explanation, and the definition covers batch limits, partial failure, and data freshness. The remaining gap is disambiguation from the sibling quote tool, which matters for a market-data tool where live versus delayed pricing changes the decision.

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% and each parameter already has a detailed description, so the baseline is 3. The description reinforces the 25-symbol cap and links `symbols` to the `errors` output, but adds no syntax or format detail beyond the schema.

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?

The description names the exact resource and enumerates the returned fields (latest price, daily change, day range, volume, 52-week range) plus the batch limit of 25 symbols, so an agent knows precisely what comes back. It does not differentiate itself from the sibling get_live_quotes, leaving the delayed-vs-live distinction implicit.

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?

There is no explicit statement of when to pick this over get_live_quotes or get_price_history; guidance is limited to the operational caution to check `market_time` and `delay_min` before acting. That is a useful precondition but not alternative-selection guidance.

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