Skip to main content
Glama

fetch_market_data

Retrieve real-time financial data including current prices, trends, moving averages, and historical performance for stocks, ETFs, cryptocurrencies, and commodities from Yahoo Finance.

Instructions

Fetch real financial/stock/ETF data from Yahoo Finance.

Returns current price, trend, moving averages, 52-week range, and % change.

Args: symbols: Comma-separated ticker symbols (e.g. "AAPL,MSFT,SPY" or "XIU.TO,XRE.TO" for Canadian ETFs) period: Time period — "1mo", "3mo", "6mo", "1y", "2y", "5y" (default: 1y)

Common symbols: US: SPY (S&P 500), QQQ (Nasdaq), DIA (Dow), VTI (total market) Canada: XIU.TO (TSX 60), XRE.TO (REIT), XIC.TO (composite) Crypto: BTC-USD, ETH-USD Commodities: GC=F (gold), CL=F (oil)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
symbolsYes
periodNo1y

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior4/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure and does so effectively. It describes the return format (current price, trend, moving averages, etc.), source (Yahoo Finance), and includes practical examples of symbols across asset classes. It doesn't mention rate limits, authentication needs, or error handling, but provides substantial operational context beyond basic functionality.

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?

The description is appropriately sized and front-loaded: the first sentence states the core purpose, followed by return data, then parameter details with examples, and finally common symbol references. Every sentence adds value without redundancy, making it efficient and well-structured for quick comprehension.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool's moderate complexity (2 parameters), no annotations, and the presence of an output schema (which handles return values), the description is complete enough. It covers purpose, usage, parameters with examples, and behavioral context like data sources and symbol formats, leaving no significant gaps for effective tool invocation.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

With 0% schema description coverage, the description fully compensates by providing detailed parameter semantics. It explains 'symbols' as comma-separated ticker symbols with examples across markets (US, Canada, Crypto, Commodities) and 'period' as time periods with allowed values and default. This adds crucial meaning beyond the bare schema.

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 clearly states the tool's purpose with specific verb ('Fetch') and resource ('real financial/stock/ETF data from Yahoo Finance'), distinguishing it from siblings like 'analyze', 'chart', or 'compare' that likely process rather than retrieve data. It explicitly mentions what data is returned (price, trend, moving averages, etc.), making the purpose unambiguous.

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?

The description provides clear context for when to use this tool by specifying it fetches raw market data from Yahoo Finance, implying it's for data retrieval rather than analysis or visualization. However, it doesn't explicitly state when not to use it or name alternatives among siblings (e.g., 'chart' for visualization, 'analyze' for processing), leaving some ambiguity in tool selection.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/chriswu727/sibyl'

If you have feedback or need assistance with the MCP directory API, please join our Discord server