Skip to main content
Glama

compare_conditions

Idempotent

Compare gene expression between experimental conditions, such as treatment versus control, using pseudobulk differential expression analysis with DESeq2 across multiple biological samples.

Instructions

Compare experimental conditions using pseudobulk differential expression (DESeq2).

Args:
    data_id: Dataset ID
    params: Required - condition_key, condition1, condition2, sample_key, etc.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
paramsYes
data_idYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
methodYes
data_idYes
comparisonYes
condition1Yes
condition2Yes
sample_keyYes
statisticsYes
results_keyYes
cell_type_keyNo
condition_keyYes
cell_type_resultsNo
global_n_significantNo
n_samples_condition1Yes
n_samples_condition2Yes
global_top_upregulatedNo
global_top_downregulatedNo
Behavior4/5

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

Annotations indicate idempotent and not read-only, which is consistent. The description mentions the DESeq2 method and pseudobulk aggregation, but does not detail potential side effects or prerequisites beyond what parameters imply. No contradictions.

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?

The description is very concise with a single sentence and a simple list of required args. No unnecessary words; it is well front-loaded.

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?

Given the complexity (many parameters, output schema exists, annotations present), the description plus schema object description are mostly complete. However, the main description could briefly mention the output (top DEGs) and the requirement for multiple samples, which is currently only in parameter defaults.

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 0%, but the schema itself includes parameter descriptions. The main description lists required params but adds little beyond the schema. The schema's object description provides some parameter context, but the tool description does not compensate for low coverage.

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 clearly states the tool compares experimental conditions using pseudobulk differential expression (DESeq2), with explicit differentiation from find_markers in the schema's ConditionComparisonParameters description, serving as a specific verb+resource+method combination.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The schema's object description explicitly contrasts with find_markers, explaining when to use this tool (conditions across samples) versus find_markers (cell types within a dataset), providing clear usage guidance.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/cafferychen777/ChatSpatial'

If you have feedback or need assistance with the MCP directory API, please join our Discord server