Skip to main content
Glama
yfinance-agent-mcp

yfinance-agent-mcp

by n-kostadinov

Search symbols

search_symbols
Read-only

Find Yahoo Finance symbols by company name, ticker, or keyword, then use the exact identifier for quotes, history, and other market-data tools.

Instructions

Find Yahoo Finance symbols for a company name, ticker or keyword.

Use it first when you only know a name: the other tools need exact Yahoo symbols such as AAPL, SAP.DE, BTC-USD or ^GSPC.

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": {
      "query": "<query>"
    },
    "name": "search_symbols"
  }
}

Input Schema

NameRequiredDescriptionDefault
kindNoNarrow to one kind of security; 'any' searches all.any
limitNoMaximum matches.
queryYesCompany name, ticker or keyword, e.g. 'nvidia', 'SAP' or 'gold'.
response_formatNo'concise' (default; up to 20,000 characters) or 'detailed' (up to 80,000).concise

Output Schema

NameRequiredDescriptionDefault
kindYesThe kind of security searched for.
as_ofYesWhen this data was fetched from Yahoo Finance, in UTC.
queryYesThe search text as given.
sourceNoData source and the yfinance version.
matchesYesBest matches first.
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
Behavior3/5

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

readOnlyHint=true and openWorldHint=true already tell the agent this is a safe, externally-backed read, and an output schema covers the return shape. Beyond that, the description adds workflow context but says nothing about ambiguity (multiple matches for one name), the cap of 10 matches, or rate limits on the external Yahoo service.

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?

Two short sentences with the action first and the sequencing rationale second, and no filler. Every clause contributes either purpose or routing guidance.

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 full schema descriptions, an output schema and read-only annotations, the remaining job is telling the agent when this tool applies, which it does. The only shortfall is that result ambiguity and the practical 10-result ceiling are never hinted at, which matters for a name-based lookup.

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%, with enum values and defaults documented for kind and response_format, so the schema carries the parameter burden and the baseline is 3. The symbol examples (AAPL, SAP.DE, BTC-USD, ^GSPC) clarify the expected output vocabulary more than the input parameters themselves.

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?

The description gives a specific verb and resource ("Find Yahoo Finance symbols") plus the accepted input forms (company name, ticker, keyword). It also implicitly separates the tool from the rest of the catalog by noting that other tools require exact Yahoo symbols, so an agent can tell where this one belongs in a workflow.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

"Use it first when you only know a name" is an explicit ordering rule, and the second clause explains why: downstream tools need exact symbols like AAPL or ^GSPC. It stops short of naming a specific sibling such as get_quotes or screen_securities, so the routing is clear in principle but left to the agent to map onto concrete tools.

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