Skip to main content
Glama

Differential expression (limma-style) / 差异表达分析

differential_expression
Read-only

Differential expression (limma-style) / 差异表达分析 | USE WHEN: differential genes from an expression matrix (with volcano plot input) | ALIASES: 差异表达, 差异基因, DEG, differential expression, 火山图, 表达矩阵, limma | RETURNS: 差异基因清单(log2FC、t 统计量、p_value、BH-FDR 校正后的 padj、显著/上调/下调标记)

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": {
      "group_a": "<group_a>",
      "group_b": "<group_b>"
    },
    "name": "differential_expression"
  }
}

Input Schema

NameRequiredDescriptionDefault
group_aYesA 组样本表达矩阵:每个内层数组 = 一个样本的全部基因表达值(不是均值数组)。示例 [[12.3, 8.1, 5.6], [11.9, 8.4, 5.2]] 表示 A 组 2 个样本、每个样本 3 个基因。⚠️ 本动作按**线性表达量**计算 log2FC=log2(meanB/meanA):若数据已是 log2 尺度(GEO series matrix 默认就是),差异会被严重压缩、可能一个差异基因都检不出 —— 请先把每格换成 2**值,或改用 act_geo_pipeline(差值法)。
group_bYesB 组样本表达矩阵,结构与 group_a 一致(内层数组 = 一个样本的全部基因表达值)
gene_namesNo基因名列表,长度必须等于每个样本的基因数(与 group_a/group_b 内层数组等长);不传则自动命名 GENE_1..N
log2fc_thresholdNo|log2FC| 阈值,默认 1.0;用于判定显著差异

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / properties / group_a / items / items
      Added value: +{
      +  "type": "number"
      +}
    • addedInput schema / properties / group_b / items / items
      Added value: +{
      +  "type": "number"
      +}
  2. Changed1 schema field changed
    • changedInput schema / properties / group_a / description
      Previous value: -"A 组样本表达矩阵:每个内层数组 = 一个样本的全部基因表达值(不是均值数组)。示例 [[12.3, 8.1, 5.6], [11.9, 8.4, 5.2]] 表示 A 组 2 个样本、每个样本 3 个基因"New value: +"A 组样本表达矩阵:每个内层数组 = 一个样本的全部基因表达值(不是均值数组)。示例 [[12.3, 8.1, 5.6], [11.9, 8.4, 5.2]] 表示 A 组 2 个样本、每个样本 3 个基因。⚠️ 本动作按**线性表达量**计算 log2FC=log2(meanB/meanA):若数据已是 log2 尺度(GEO series matrix 默认就是),差异会被严重压缩、可能一个差异基因都检不出 —— 请先把每格换成 2**值,或改用 act_geo_pipeline(差值法)。"
  3. Changed10 schema fields changed
    • changedInput schema / properties / gene_names / description
      Previous value: -"基因名列表"New value: +"基因名列表,长度必须等于每个样本的基因数(与 group_a/group_b 内层数组等长);不传则自动命名 GENE_1..N"
    • changedInput schema / properties / group_a / description
      Previous value: -"A 组样本表达(CSV)"New value: +"A 组样本表达矩阵:每个内层数组 = 一个样本的全部基因表达值(不是均值数组)。示例 [[12.3, 8.1, 5.6], [11.9, 8.4, 5.2]] 表示 A 组 2 个样本、每个样本 3 个基因"
    • addedInput schema / properties / group_a / items
      Added value: +{
      +  "type": "array"
      +}
    • changedInput schema / properties / group_a / type
      Previous value: -"string"New value: +"array"
    • changedInput schema / properties / group_b / description
      Previous value: -"B 组样本表达(CSV)"New value: +"B 组样本表达矩阵,结构与 group_a 一致(内层数组 = 一个样本的全部基因表达值)"
    • addedInput schema / properties / group_b / items
      Added value: +{
      +  "type": "array"
      +}
    • changedInput schema / properties / group_b / type
      Previous value: -"string"New value: +"array"
    • changedInput schema / properties / log2fc_threshold / description
      Previous value: -"log2FC 阈值"New value: +"|log2FC| 阈值,默认 1.0;用于判定显著差异"
    • removedInput schema / properties / pval_threshold
      Removed value: -{
      -  "description": "P 阈值",
      -  "type": "number"
      -}
    • changedInput schema / required
      Previous value: -[]New value: +[
      +  "group_a",
      +  "group_b"
      +]
  4. Added

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare this is a read-only, non-destructive, closed-world computation, so the safety profile is covered. The 'RETURNS' line adds genuine value by enumerating output columns (log2FC, t statistic, p_value, padj, up/down flags) when no output schema exists. It omits, however, the single most important behavioral caveat: the tool computes log2FC on linear values, so log2-scale input yields near-zero findings — that warning lives only in the schema.

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) front-load the trigger and are easy to scan. The alias list, especially the mixed Chinese and English synonyms, is somewhat noisy but does aid matching on colloquial queries.

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 four-parameter statistical computation with no output schema, the definition gives the input trigger and the full return-field list, which is close to sufficient. The remaining gap is that the critical scale-semantics caveat is deferred entirely to the schema rather than surfaced in the description an agent reads first.

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% and each parameter (group_a, group_b, gene_names, log2fc_threshold) is documented in detail in the schema, including the nested-array shape and the linear-scale warning. The description adds no parameter meaning beyond that, so the baseline of 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?

Names a specific analysis ('differential expression, limma-style') and the exact input it consumes ('differential genes from an expression matrix (with volcano plot input)'). An agent can distinguish it from enrichment siblings like go_kegg_enrichment or gsea, though it does not name those alternatives.

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?

The 'USE WHEN' clause gives an explicit trigger condition, which is real guidance. However, it offers no when-not conditions and no routing to the obvious alternative for log2-scaled input (act_geo_pipeline, which is mentioned only inside the schema for group_a, not in the description).

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