Skip to main content
Glama

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

Missing value imputation / 缺失值填补(均值/中位数/KNN)

preprocess_impute
Read-only

Missing value imputation / 缺失值填补(均值/中位数/KNN) | USE WHEN: the user's expression matrix has missing values (null/NaN) that must be imputed before normalization or differential analysis | ALIASES: 缺失值, 填补, 插补, KNN, imputation, missing value, NA, NaN, mean, median | RETURNS: 填补后矩阵、n_missing、missing_pct、engine;完全没有缺失时 n_missing=0 并明说「未做填补」

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

Input Schema

NameRequiredDescriptionDefault
matrixYes表达矩阵:行 = 基因,列 = 样本。缺失值用 null 表示(不要填 0——那会静默改变分布)
methodNomean / median / knn,默认 mean
paramsNo附加参数:{「axis」: 「gene」|「sample」} 指定按行还是按列填补(默认 gene)

Schema Changelog

Changes observed during successful MCP inspections.

  1. 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, openWorldHint=false. The description adds genuinely new behavior: the return payload (imputed matrix, n_missing, missing_pct, engine) and the no-op case where n_missing=0 and it explicitly reports no imputation was performed — a meaningful trait for a read-only tool that may silently do nothing.

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 and front-loaded: purpose, then USE WHEN, then aliases, then returns. The ALIASES block is long but serves retrieval for bilingual queries; overall there is little wasted prose.

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?

No output schema exists, but the description enumerates the returned fields, which compensates. It does not address practical concerns such as KNN cost on large matrices or rows that are entirely missing, leaving modest gaps for a tool with a nested params object.

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?

With 100% schema description coverage, the schema already documents matrix, method (mean/median/knn, default mean), and the nested params axis. The description and title restate the method list but add no format or syntax detail beyond the schema, so 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?

States a specific verb+resource (impute missing values in an expression matrix) and enumerates the supported methods (mean/median/KNN). The USE WHEN clause placing it before normalization or differential analysis distinguishes it from the preprocess_normalize and preprocess_filter siblings.

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: matrix has missing values (null/NaN) that must be imputed before normalization or differential analysis' clause gives an explicit trigger condition and sequencing. It does not name a specific alternative tool or a when-not condition, so it falls short of full routing guidance.

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.