Skip to main content
Glama
eminsk

yfinance-ta-patterns

by eminsk

Scan Watchlist Patterns & Confluence Ranking

ta_scan_watchlist
Read-only

Batch scan up to 25 ticker symbols for candlestick patterns and rank all watchlist setups by AI Confluence Score descending.

Instructions

Scan multiple ticker symbols in batch (up to 25 symbols) and rank all detected candlestick pattern setups across the watchlist by AI Confluence Score descending.

Input Schema

NameRequiredDescriptionDefault
periodNoHistorical lookback period (auto-clamped for intraday intervals)6mo
compactNoIf true (default), returns streamlined trade setups to minimize token usage and stay well below LLM context limits; if false, returns full indicator dumps.
symbolsYesList of ticker symbols (max 25, e.g. ['AAPL', 'NVDA', 'MSFT', 'BTC-USD'])
timeframeNoTimeframe interval (default: '1d')1d
max_resultsNoMaximum number of ranked setups to return (default: 25, max: 50)
lookback_barsNoNumber of recent bars per symbol to evaluate (default: 2)
min_confidenceNoMinimum AI Confluence score in [0.0, 1.0]

Output Schema

NameRequiredDescriptionDefault
engineNo
errorsNo
periodNo
compactNo
timeframeNo
truncated_toNo
opportunitiesNo
symbols_scannedNo
symbols_requestedNo
total_opportunitiesNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.60

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and openWorldHint=true, so the safety profile is covered. The description adds the descending AI-Confluence ranking behavior and the 25-symbol cap, but the cap duplicates the schema's maxItems and nothing is said about cost/rate behavior of scanning many symbols; the schema's 'compact' note covers token usage instead.

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?

A single front-loaded sentence that names the operation, the batch constraint, and the sort order with no filler. Every clause earns its place.

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 a full input schema, an output schema, and read-only annotations, the description covers the essentials an agent needs to invoke the tool. The remaining gap is usage routing versus ta_scan_symbol, which is the one thing structured fields cannot supply.

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% across all seven parameters, so the schema already carries the semantics. The description restates only the 25-symbol limit and adds no new detail on period, timeframe, min_confidence, lookback_bars, or how ranking interacts with max_results.

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 verb (scan), a specific resource (multiple ticker symbols in batch), a scope cap (up to 25 symbols), and the output ordering (ranked by AI Confluence Score descending). The 'multiple ... in batch' phrasing implicitly separates it from ta_scan_symbol, but the sibling is never named, so the differentiation rests on inference.

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?

Usage is only implied: the batch/watchlist framing suggests this is the tool for scanning a list of symbols at once. There is no explicit when-to-use, no when-not-to-use, and no routing to ta_scan_symbol for single-symbol scans, so an agent must infer the boundary itself.

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