Skip to main content
Glama

EasyQuant Research

条件选股(某一天的完整名单)

screen

按用户给的条件与排序,在 A 股全市场(或 market=cn_etf 全部场内 ETF、us_equity 美股、hk_stock 港股、cn_future 期货品种)筛出某一天(默认最近一个交易日收盘)满足条件的股票:命中总数、完整名单、每只的条件取值(说明为什么命中)、行业与市值分布,以及可直接交给 backtest_portfolio 的参数。通常几秒内直接返回结果;返回 status=RUNNING 时按 retry_after_seconds 调 get_job。条件与排序写法同 backtest_portfolio。这是按用户条件计算的筛选结果,不是推荐:回答时不得对名单里的股票做评级、判断好坏或给买卖建议,只陈述条件与取值。

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

Input Schema

NameRequiredDescriptionDefault
dateNo筛选日期 YYYY-MM-DD,默认最近一个交易日;可以填历史日期看当时的名单
limitNo名单最多返回多少只,默认 100;命中总数始终返回
top_nNo只取排序前 N 只(需要 rank_by)
marketNo市场:cn_stock A 股(默认),cn_etf 场内 ETF,us_equity 美股,hk_stock 港股,cn_future 期货品种(后四者只能用价量字段,见 catalog)
rank_byNo排序表达式;不填按代码顺序列出全部命中
conditionNo选股条件表达式,结果非 0 即命中;写法同 backtest_portfolio
rank_orderNo排序方向,默认 desc

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior4/5

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

With no annotations at all, the description carries the full behavioral burden and does a lot: expected latency ('usually returns in seconds'), the RUNNING/retry_after_seconds/get_job fallback, the exact payload contents (hit count, full list, per-symbol condition values explaining why it matched, distributions, backtest parameters), and an output-use constraint forbidding ratings or buy/sell advice on the listed symbols. It stops short of failure modes such as invalid condition expressions or market/field restrictions beyond a passing 'chase catalog' reference.

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?

Purpose and scope come first, then the return payload, then the async fallback, then the output-use constraint — a sensible front-loaded order. It is dense and slightly list-heavy inside one long sentence, and a few schema-echoing details (default date, market enumeration) could be trimmed, but nothing is truly wasted.

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 7-parameter, zero-annotation, no-output-schema tool, the description supplies the return payload, latency, async recovery path, and cross-tool syntax reference, so an agent could invoke it correctly. The remaining gaps are edge behavior (invalid expressions, per-market field limits) that are delegated to catalog and backtest_portfolio rather than explained here.

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 including date defaulting, limit vs. top_n, rank_order, and the market enum is already documented in structured fields. The description restates the date default and market list, and its 'condition/rank_by follow backtest_portfolio syntax' note duplicates the same note already present in those schema fields. Added meaning beyond the schema is therefore minimal, which is the baseline-3 case.

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?

The description gives a specific verb and resource — screen a full market on one day for symbols matching user conditions, returning the total hit count, the complete list, per-symbol condition values, industry/market-cap distributions, and ready-made backtest_portfolio parameters. The covered markets (cn_stock/cn_etf/us_equity/hk_stock/cn_future) and the default 'most recent trading day close' scope set it apart from backtest_portfolio and factor_report without opening any schema.

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?

It tells the agent what to do with the async path: usually results come back in seconds, and when status=RUNNING the agent should call get_job using retry_after_seconds. It also points to backtest_portfolio as the reference for condition and rank_by syntax. What it lacks is an explicit inverse — when to choose backtest_portfolio or backtest_timing over screening — so the routing is clear in one direction only.

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.