Skip to main content
Glama
yfinance-ta-patterns

yfinance-ta-patterns

by eminsk

Scan Watchlist Patterns & Confluence Ranking

ta_scan_watchlist
Read-only

Scans a watchlist or preset market basket in batch, detects candlestick pattern setups, and ranks them by AI Confluence Score so traders can prioritize actionable opportunities.

Instructions

Scan multiple ticker symbols in batch (up to 60 symbols) or institutional presets (e.g. 'all_forex', 'euro_pairs', 'majors', 'crypto') and rank all detected candlestick pattern setups across the watchlist by AI Confluence Score descending.

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": "ta_scan_watchlist"
  }
}

Input Schema

NameRequiredDescriptionDefault
periodNoHistorical lookback period (auto-clamped for intraday intervals)6mo
presetNoPre-configured institutional market basket to scan. Ideal before the European session: 'euro_pairs' (7 EUR crosses) or 'all_forex' (all 56 currency pairs). Overrides 'symbols' if provided.
compactNoIf true (default), returns streamlined trade setups to minimize token usage and stay well below LLM context limits; if false, returns full indicator dumps.
symbolsNoList of ticker symbols (up to 60, e.g. ['EURUSD=X', 'AAPL', 'BTC-USD']). If omitted or set to ['ALL'] / ['FOREX'], automatically scans all 56 Forex currency pairs (matches CLI behavior). Supports aliases: 'EURO', 'FOREX', 'MAJORS', 'CRYPTO'.
timeframeNoTimeframe interval (default: '1d')1d
max_resultsNoMaximum number of ranked setups to return (default: 25, max: 60)
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. Changed7 schema fields changedv0.3.75
    • changedInput schema / properties / max_results / description
      Previous value: -"Maximum number of ranked setups to return (default: 25, max: 50)"New value: +"Maximum number of ranked setups to return (default: 25, max: 60)"
    • changedInput schema / properties / max_results / maximum
      Previous value: -50New value: +60
    • addedInput schema / properties / preset
      Added value: +{
      +  "description": "Pre-configured institutional market basket to scan. Ideal before the European session: 'euro_pairs' (7 EUR crosses) or 'all_forex' (all 56 currency pairs). Overrides 'symbols' if provided.",
      +  "enum": [
      +    "all_forex",
      +    "euro_pairs",
      +    "majors",
      +    "crypto",
      +    "eu_equities"
      +  ],
      +  "type": "string"
      +}
    • changedInput schema / properties / symbols / description
      Previous value: -"List of ticker symbols (max 25, e.g. ['AAPL', 'NVDA', 'MSFT', 'BTC-USD'])"New value: +"List of ticker symbols (up to 60, e.g. ['EURUSD=X', 'AAPL', 'BTC-USD']). If omitted or set to ['ALL'] / ['FOREX'], automatically scans all 56 Forex currency pairs (matches CLI behavior). Supports aliases: 'EURO', 'FOREX', 'MAJORS', 'CRYPTO'."
    • changedInput schema / properties / symbols / maxItems
      Previous value: -25New value: +60
    • removedInput schema / properties / symbols / minItems
      Removed value: -1
    • changedInput schema / required
      Previous value: -[
      -  "symbols"
      -]New value: +[]
  2. First observedv0.3.60

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already establish readOnlyHint=true and openWorldHint=true, so the safety profile is covered. The description usefully adds that results are returned sorted by AI Confluence Score descending, which is real behavior not present in annotations or schema. It says nothing about cost, latency, or partial-failure handling when fanning out across up to 60 symbols or 56 pairs, which is the main behavioral risk here.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

A single sentence, front-loaded with the verb and resource, with the ranking clause placed at the end where it belongs. It is reasonably tight, though the parenthetical preset list partly duplicates the enum in the schema and could be dropped.

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 eight all-optional parameters, full schema documentation, and an output schema, the description covers enough for an agent to invoke this correctly. What is missing is guidance on choosing between the two mutually exclusive input modes (symbols vs preset) and any hint about the expense of wide scans, but neither blocks a correct call.

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%, so every parameter (period, preset, compact, symbols, timeframe, max_results, lookback_bars, min_confidence) is already documented with defaults and bounds. The description restates the 60-symbol cap and mirrors the preset enum examples rather than adding new semantics, so baseline 3 applies.

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 gives a specific verb ('Scan') and resource ('multiple ticker symbols in batch ... or institutional presets') and adds the ranking behavior ('rank all detected candlestick pattern setups ... by AI Confluence Score descending'). The batch/plural framing implicitly distinguishes it from the singular ta_scan_symbol sibling, though it never names that sibling explicitly.

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 agent can infer this is the many-symbols variant versus ta_scan_symbol, but nothing states when to prefer presets over an explicit symbol list, or when to use this instead of ta_backtest_patterns. The preset examples ('euro_pairs' before the European session) are the only situational hint, and that context actually lives in the schema, not the description.

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