Screen securities
screen_securitiesScreen securities using predefined Yahoo screens or custom queries to find matching stocks, ETFs, or funds, with key price, volume, and market-cap data returned for review.
Instructions
Find candidates: run a predefined Yahoo screen or a custom query.
Each row has symbol, name, price, change %, volume, 3-month average volume, market cap
and exchange. total is how many securities match in all.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "screen_securities"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| count | No | Rows to return. | |
| query | No | A custom screen instead of a preset: {"operator": "and", "operands": [{"operator": "gt", "operands": ["percentchange", 3]}, {"operator": "eq", "operands": ["region", "us"]}]}. Operators: and, or, eq, gt, lt, gte, lte, btwn, is-in. | |
| preset | No | A predefined Yahoo screen, e.g. 'day_gainers' or 'most_actives'. | |
| ascending | No | ||
| sort_field | No | Yahoo field to sort by, e.g. 'percentchange'. | |
| security_type | No | What a custom query screens. | equity |
| response_format | No | 'concise' (default; up to 20,000 characters) or 'detailed' (up to 80,000). | concise |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rows | Yes | ||
| as_of | Yes | When this data was fetched from Yahoo Finance, in UTC. | |
| title | No | ||
| total | No | How many securities match in total. | |
| screen | Yes | Predefined screen name, or 'custom'. | |
| source | No | Data source and the yfinance version. | |
| warnings | No | Caveats such as delayed quotes, symbols that failed, or trimmed results. | |
| truncated | No | True when rows were left out to keep the response small. | |
| next_offset | No | Pass as `offset` to fetch the next rows, when the result is truncated. |