Skip to main content
Glama

三域医研 · 科研算法引擎 (SanYu Research Engine)

Low-variance gene filtering / 低变异基因筛选(CV / 方差 / 最小表达量)

preprocess_filter
Read-only

Low-variance gene filtering / 低变异基因筛选(CV / 方差 / 最小表达量) | USE WHEN: the user wants to drop near-constant genes before dimensionality reduction or clustering | ALIASES: 基因筛选, 低变异, 变异系数, 方差, 过滤, gene filtering, low variance, CV, feature selection, drop genes | RETURNS: 保留的基因、n_kept/n_removed、每个基因的 mean/sd/cv/max 统计、筛选规则原文

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": {
      "matrix": "<matrix>"
    },
    "name": "preprocess_filter"
  }
}

Input Schema

NameRequiredDescriptionDefault
matrixYes表达矩阵(二维数值数组,**行 = 基因、列 = 样本**)。含缺失值会 400;按行内变异系数(CV)筛掉低变异基因。
methodNocv(变异系数 SD/mean)/ variance / mean,默认 cv
paramsNo筛选参数对象 {"threshold": 0.3}(CV 阈值,默认 0.3)。阈值越大筛得越狠;传成字符串会 422。

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / matrix / description
      Previous value: -"表达矩阵:行 = 基因,列 = 样本;含缺失值会 400"New value: +"表达矩阵(二维数值数组,**行 = 基因、列 = 样本**)。含缺失值会 400;按行内变异系数(CV)筛掉低变异基因。"
    • changedInput schema / properties / params / description
      Previous value: -"{「threshold」: 0.3} 筛选阈值(cv 默认 0.3)"New value: +"筛选参数对象 {\"threshold\": 0.3}(CV 阈值,默认 0.3)。阈值越大筛得越狠;传成字符串会 422。"
  2. Added

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false and openWorldHint=false, so safety is covered, but the description adds genuine value by disclosing what comes back: kept genes, n_kept/n_removed, per-gene mean/sd/cv/max, and the original filter rule text. It does not explicitly state that the input matrix is left unmodified, but the read-only annotation plus a returns-oriented framing makes the non-mutating behavior clear.

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?

Pipe-delimited sections (USE WHEN, ALIASES, RETURNS) are front-loaded and scannable, with no filler sentences. The only waste is the bilingual title repeated verbatim from the title field at the start, and a long alias list whose marginal retrieval value is modest.

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 no output schema, the description correctly compensates by enumerating return contents, and required-parameter expectations are fully covered by the schema. Minor gaps remain: it does not say whether the filtered matrix itself is returned or only statistics, and the imputation prerequisite (missing values cause 400) lives only in the schema rather than in the description.

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 matrix (rows = genes, columns = samples), method (cv/variance/mean), and params.threshold are already documented at the parameter level. The description's parenthetical '(CV / 方差 / 最小表达量)' hints at method options but adds no threshold-tuning or nesting guidance beyond the schema; baseline 3 applies.

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 names a specific operation on a specific resource: dropping near-constant genes ahead of dimensionality reduction or clustering, with the three statistical bases (CV / variance / minimum expression) spelled out. It is readily separable from pipeline siblings such as preprocess_normalize or preprocess_zscore, which operate on samples rather than gene variance.

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?

The 'USE WHEN: the user wants to drop near-constant genes before dimensionality reduction or clustering' clause gives a concrete triggering context, and the alias list ('gene filtering', '低变异', 'feature selection') helps the agent match loose user phrasing. It stops short of exclusions or of naming the alternative sibling to use when the goal is normalization or imputation instead.

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.