Skip to main content
Glama
yfinance-agent-mcp

yfinance-agent-mcp

by n-kostadinov

Get live quotes

get_live_quotes
Read-only

Retrieve live Yahoo Finance quotes for up to 25 symbols via a streaming feed, with the latest tick and its age on repeat calls; quiet symbols appear in missing.

Instructions

The price right now from Yahoo's streaming feed, for up to 25 symbols.

The first call subscribes and waits for ticks; later calls answer at once with the latest tick and its age. Quiet symbols (market closed) are listed in missing.

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

Input Schema

NameRequiredDescriptionDefault
symbolsYesUp to 25 Yahoo Finance symbols, e.g. ['AAPL', 'SAP.DE', 'BTC-USD', '^GSPC', 'EURUSD=X'].
wait_secondsNoHow long to wait for symbols without a tick yet.
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.
ticksYes
sourceNoData source and the yfinance version.
missingYesSymbols without a tick yet: market closed, illiquid, or unknown symbol.
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

A4/5.0
Behavior5/5

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

Beyond the readOnlyHint and openWorldHint annotations, the description discloses the two-phase call lifecycle (first call subscribes and waits for ticks; subsequent calls answer immediately with the latest tick and its age). It also explains that quiet, market-closed symbols are surfaced in `missing`, which is exactly the kind of non-obvious runtime behavior an agent needs before calling.

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 with zero filler, front-loaded with the core 'what' before the call-lifecycle detail and the `missing` caveat. Every sentence carries information an agent would otherwise have to discover by trial.

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 present, return values need little explanation, and all three parameters are fully documented in the schema, so the description's job is behavioral context, which it covers well (subscription, tick age, missing symbols). The only gap is the absence of explicit routing guidance relative to sibling quote tools.

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 `symbols` (with examples and the 25-item cap), `wait_seconds`, and `response_format`. The description restates the 25-symbol limit but adds no syntax, format, or interaction detail for `wait_seconds` or the concise/detailed tradeoff, so the 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 and qualifier: "The price right now from Yahoo's streaming feed, for up to 25 symbols." The words "right now" and "streaming feed" clearly separate it from historical or snapshot siblings like get_price_history and get_quotes without naming them explicitly. It falls short of 5 only because the differentiation is implied rather than stated against a named alternative.

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 description establishes the live/streaming context, which implies when to use it, and explains that the first call blocks while later calls return instantly. However, it never explicitly says when to prefer this over get_quotes or get_price_history, nor does it state exclusions such as 'do not use for historical data'.

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