Skip to main content
Glama

Screen stocks by technical signals

screen_stocks

Screen about 1,350 US / Hong Kong / China A-share / Japan / Korea stocks (the members of the S&P 500, Nasdaq-100, Hang Seng Index, CSI 300, Nikkei 225 and KOSPI 200, plus any stock with a pickskill.ai/stocks page; optionally restricted to one or more of those indexes) by technical conditions, ANDed: a dimension's reading held for N days (type 'signal'), an indicator value such as rsi.rsi < 35 or kdj.j (type 'value'), or a MACD / MA5-MA20 golden or death cross or a signal flip within N days (type 'event'). Returns each match with evidence for every condition. RSI/KDJ 'bullish' means oversold. Requires a paid PickSkill plan (not available on Free). Costs 3 PickSkill API credits; failed calls are refunded.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "conditions": "<conditions>"
    },
    "name": "screen_stocks"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMaximum matches to return (default 15).
indicesNoRestrict to index members: 'sp500' S&P 500, 'ndx' Nasdaq-100, 'hsi' Hang Seng Index, 'csi300' CSI 300 (沪深300), 'nk225' Nikkei 225 (日经225), 'kospi200' KOSPI 200. Several = members of any. Omit for the whole universe.
marketsNoMarkets to screen: 'us' US stocks, 'hk' Hong Kong, 'cn' China A-shares (Shanghai/Shenzhen), 'jp' Japan (Tokyo), 'kr' Korea (KOSPI). Omit for all.
sort_byNoOrdering of matches (default bullish_count, highest first; rsi sorts lowest first).
conditionsYesAll conditions must match (AND).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changed
    • changedInput schema / properties / indices / description
      Previous value: -"Restrict to index members: 'sp500' S&P 500, 'ndx' Nasdaq-100, 'hsi' Hang Seng Index, 'csi300' CSI 300 (沪深300). Several = members of any. Omit for the whole universe."New value: +"Restrict to index members: 'sp500' S&P 500, 'ndx' Nasdaq-100, 'hsi' Hang Seng Index, 'csi300' CSI 300 (沪深300), 'nk225' Nikkei 225 (日经225), 'kospi200' KOSPI 200. Several = members of any. Omit for the whole universe."
    • changedInput schema / properties / indices / items / enum
      Previous value: -[
      -  "sp500",
      -  "ndx",
      -  "hsi",
      -  "csi300"
      -]New value: +[
      +  "sp500",
      +  "ndx",
      +  "hsi",
      +  "csi300",
      +  "nk225",
      +  "kospi200"
      +]
    • changedInput schema / properties / markets / description
      Previous value: -"Markets to screen: 'us' US stocks, 'hk' Hong Kong, 'cn' China A-shares (Shanghai/Shenzhen). Omit for all."New value: +"Markets to screen: 'us' US stocks, 'hk' Hong Kong, 'cn' China A-shares (Shanghai/Shenzhen), 'jp' Japan (Tokyo), 'kr' Korea (KOSPI). Omit for all."
    • changedInput schema / properties / markets / items / enum
      Previous value: -[
      -  "us",
      -  "hk",
      -  "cn"
      -]New value: +[
      +  "us",
      +  "hk",
      +  "cn",
      +  "jp",
      +  "kr"
      +]
  2. Changed1 schema field changed
    • addedInput schema / properties / indices
      Added value: +{
      +  "description": "Restrict to index members: 'sp500' S&P 500, 'ndx' Nasdaq-100, 'hsi' Hang Seng Index, 'csi300' CSI 300 (沪深300). Several = members of any. Omit for the whole universe.",
      +  "items": {
      +    "enum": [
      +      "sp500",
      +      "ndx",
      +      "hsi",
      +      "csi300"
      +    ],
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
  3. Added

TDQS

A4.1/5.0
Behavior4/5

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

No annotations exist, so the description carries the full load, and it discloses the high-value non-obvious facts: credit cost, refund behavior on failure, plan gating, AND semantics across conditions, and that each match comes with evidence per condition. It omits latency, rate limits, and how the universe is refreshed beyond the pickskill.ai page note, keeping it short of a 5.

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?

Front-loaded with universe and scope, then condition taxonomy, then return shape, then cost gating — a sensible order with no filler sentences. It is a dense single block, with the parenthetical universe enumeration and the 'plus any stock with a pickskill.ai/stocks page' aside slightly interrupting the scan path.

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?

For a 5-parameter nested-condition screener with no annotations and no output schema, the description covers universe, condition composition, cost, and the shape of results ('each match with evidence for every condition'). What remains thin is result ordering/pagination behavior and whether matches can be empty, but nothing critical to calling it correctly is missing.

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 schema already documents every parameter and the baseline is 3. The description does add real meaning on the condition object's intent (held-for-N-days vs numeric comparison vs cross events) and the counterintuitive note that RSI/KDJ 'bullish' means oversold, but it adds nothing about limit, sort_by, or indices beyond the schema text.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb ('Screen') plus an explicit resource and scope: ~1,350 stocks across six named indices and five markets, optionally restricted. It also names the three condition types by keyword ('signal', 'value', 'event'), so an agent can immediately tell this is a universe-wide screener rather than the per-stock sibling get_stock_signals.

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

Usage Guidelines4/5

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

Gives clear conditions for use: requires a paid PickSkill plan (explicitly not Free), costs 3 credits with refunds on failure, and shows example predicates ('rsi.rsi < 35', 'kdj.j'). It does not explicitly name an alternative tool or state when to prefer get_stock_signals over screening, leaving sibling routing to inference.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources