Skip to main content
Glama
narumiruna

Yahoo Finance MCP Server

yfinance_screen

Read-onlyIdempotent

Screen stocks or funds using predefined Yahoo Finance screener keys or custom query trees. Retrieve filtered results with sorting and pagination.

Instructions

Run a Yahoo Finance screener query.

Supports predefined Yahoo screener keys and custom equity or fund query trees.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
queryYesScreener query. For query_type='predefined': string key like 'day_gainers'. For query_type='equity' or 'fund': query tree object with {operator, operands} nodes.
query_typeNoQuery mode: 'predefined', 'equity', or 'fund'.predefined
offsetNoResult offset.
sizeNoRows to return for custom queries. Yahoo maximum is 250.
countNoRows to return for predefined queries. Yahoo maximum is 250.
sort_fieldNoSort field, for example 'percentchange'.
sort_ascNoSort ascending if true, descending if false.
user_idNoOptional Yahoo user id.
user_id_typeNoOptional Yahoo user id type, commonly 'guid'.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior3/5

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

Annotations already declare readOnlyHint=true and destructiveHint=false, so the description does not need to reiterate safety. The description adds that it supports different query types, but does not disclose any behavioral traits like rate limits or result structure beyond what annotations provide. No contradiction.

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 two sentences, front-loaded with the main action, and contains no unnecessary words. Every part is relevant.

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?

Given the tool's complexity (9 parameters, output schema exists), the description is minimal. It outlines the two main query modes but omits details on the structure of custom query trees (operators, operands), which is documented in the schema. The output schema compensates for missing return value details.

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 coverage is 100%, so the baseline is 3. The description adds a brief note about query modes, but the schema already describes the query parameter's types and the enum for query_type. No additional semantic value 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 clearly states that the tool runs a Yahoo Finance screener query and supports predefined keys and custom query trees. This distinguishes it from the sibling tool 'yfinance_screen_gappers', but does not explicitly name the difference. The verb 'Run' and resource 'Yahoo Finance screener query' are specific.

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

Usage Guidelines2/5

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

No guidance is provided on when to use this tool compared to alternatives like yfinance_search or yfinance_screen_gappers. There is no mention of prerequisites, when to use predefined vs custom queries, or when to avoid using this tool.

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/narumiruna/yfinance-mcp'

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