Skip to main content
Glama

Market data: stock screener

stock_screener

Screen U.S. stocks by market cap, dividend yield, price, or change, then cross-check ranked rows against Finviz to verify matching instruments and filter agreement.

Instructions

Run the US stock screener on both providers and cross-check the rows.

TradingView ranks the entire market server-side (sort_by ∈ market_cap, dividend_yield, change, price); Finviz can be narrowed with its own filter language (finviz_filters, e.g. cap_smallover,sec_technology or t=AAPL,MSFT).

The cross-check is only meaningful if both providers describe the same instruments. Finviz is therefore asked about the tickers TradingView ranked, not for an independent ranking of its own: comparing a market-cap ranking against a day-%-change ranking yielded zero overlapping rows on every call, so the "multi-source" screener was silently single-source.

Args: country: TradingView market (america, turkey, …). sort_by: TradingView sort key. limit: Rows to request from TradingView (≤200 on Finviz). finviz_filters: Optional Finviz filter expression.

Returns: Envelope with rows (TradingView ranking) and a per-row finviz_match showing whether Finviz agreed. Filters narrow that same universe rather than requesting a separate Finviz ranking.

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

Input Schema

NameRequiredDescriptionDefault
limitNo
countryNoamerica
sort_byNomarket_cap
finviz_filtersNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.7/5.0
Behavior4/5

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

With no annotations, the description carries the load and does it well: it explains the cross-check semantics, that Finviz is queried about TradingView's tickers rather than producing its own ranking, and flags the ≤200 Finviz row ceiling. Missing: auth/credit requirements, rate limits, and how failures on one provider are surfaced, which matters for a two-provider call.

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

Conciseness3/5

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

The corrective anecdote about zero overlapping rows and a 'silently single-source' screener is useful rationale but is long relative to the operational content, and it sits between the core description and the Args block. The Args/Returns skeleton is well organized and the purpose is front-loaded, but a sentence or two could be trimmed.

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?

An output schema exists, yet the Returns note still adds value by naming the rows/finviz_match envelope shape and clarifying that filters narrow rather than re-rank. Combined with full parameter coverage, an agent has enough to call this correctly; only provider-failure and cost behavior are unaddressed.

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

Parameters4/5

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

Schema coverage is 0%, so the prose must compensate, and it largely does: it enumerates valid sort_by values (absent from the schema enums), gives country examples, and supplies two concrete finviz_filters syntax examples plus the filter vocabulary source. The limit description conflates TradingView row count with a Finviz cap, leaving its exact meaning slightly ambiguous.

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 first sentence gives a concrete verb and resource: run the US stock screener across two named providers and cross-check rows. It clearly differs from siblings that only fetch filters or single quotes. Minor inconsistency: it says 'US' screener while the country parameter lists 'america, turkey', so scope is slightly muddled.

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?

It implicitly says when to reach for this tool (multi-source screen with per-row agreement) and when to use finviz_filters (to narrow the same universe). But there is no explicit guidance on choosing this over stock_screener_filters or stock_chart, and no stated prerequisites or exclusions.

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