Skip to main content
Glama

Single-cell clustering / 单细胞分析

scrna_cluster
Read-only

Single-cell clustering / 单细胞分析 | USE WHEN: cluster and embed single-cell data (UMAP) | ALIASES: 单细胞, scRNA, 聚类降维, UMAP, Seurat, single cell | RETURNS: 聚类结果与 UMAP

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": {
      "data_json": "<data_json>"
    },
    "name": "scrna_cluster"
  }
}

Input Schema

NameRequiredDescriptionDefault
n_pcsNo主成分数
data_jsonYes单细胞表达矩阵,**JSON 字符串**(把下面这个对象序列化后作为字符串传;本层也直接接受对象)。对象结构:{细胞名: {基因名: 计数}} —— 外层必须是细胞。例:"{\"cell_1\": {\"CD3D\": 5, \"NKG7\": 12}, \"cell_2\": {\"CD3D\": 7}}"。不接受 {cells:[], genes:[], matrix:[[]]} 三段式——外层只有 3 个键,会被判成「不足 10 个细胞」并回 Need at least 10 cells。细胞数需 ≥10,且每个细胞通过 QC 的基因数需 ≥ min_genes。也可以改用 file_i
min_genesNo每个细胞至少检出多少个基因才保留该细胞,**默认 200**。小矩阵(如只有 6 个基因的演示数据)不传此参数会全部细胞被 QC 滤掉,报 Too few cells pass QC —— 此时把它设成 ≤ 每细胞基因数。
max_mito_pctNo线粒体比例上限

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • changedInput schema / properties / data_json / description
      Previous value: -"单细胞矩阵"New value: +"单细胞表达矩阵,**JSON 字符串**(把下面这个对象序列化后作为字符串传;本层也直接接受对象)。对象结构:{细胞名: {基因名: 计数}} —— 外层必须是细胞。例:\"{\\\"cell_1\\\": {\\\"CD3D\\\": 5, \\\"NKG7\\\": 12}, \\\"cell_2\\\": {\\\"CD3D\\\": 7}}\"。不接受 {cells:[], genes:[], matrix:[[]]} 三段式——外层只有 3 个键,会被判成「不足 10 个细胞」并回 Need at least 10 cells。细胞数需 ≥10,且每个细胞通过 QC 的基因数需 ≥ min_genes。也可以改用 file_i"
    • changedInput schema / properties / data_json / type
      Previous value: -"object"New value: +"string"
    • changedInput schema / properties / min_genes / description
      Previous value: -"最少基因数"New value: +"每个细胞至少检出多少个基因才保留该细胞,**默认 200**。小矩阵(如只有 6 个基因的演示数据)不传此参数会全部细胞被 QC 滤掉,报 Too few cells pass QC —— 此时把它设成 ≤ 每细胞基因数。"
  2. Added

TDQS

A3.8/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, openWorldHint=false and destructiveHint=false, so the safety profile is covered. The description adds only a returns line ('聚类结果与 UMAP'); it does not mention that cells failing QC are silently dropped, the ≥10-cell floor, or determinism, all of which live in the schema text rather than the description.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Pipe-delimited sections front-load purpose, then use-when, aliases, and returns, with zero filler. Every clause is scannable and none repeats another.

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, so the 'RETURNS: 聚类结果与 UMAP' line usefully covers the return side; the rich input schema covers data format and QC pitfalls. What is missing is description-level awareness that min_genes defaults to 200 and can filter small demo matrices entirely, a common failure an agent would want flagged up front.

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 the schema is unusually explicit, including worked JSON examples and the Too few cells pass QC failure mode for min_genes. The description adds no parameter meaning of its own, so the baseline 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?

The description names a specific verb pair and resource: 'cluster and embed single-cell data (UMAP)', which tells an agent exactly what the tool produces. It does not explicitly contrast with siblings like scrna_annotate or scrna_markers, but the ALIASES line (单细胞, scRNA, 聚类降维, UMAP, Seurat) sharpens retrieval matching.

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?

'USE WHEN: cluster and embed single-cell data (UMAP)' gives a clear triggering condition, better than most terse definitions. There are no when-not conditions or named alternatives (e.g., that annotation/marker tools belong downstream), so it stops short of the 5 tier.

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