Skip to main content
Glama

jean — Molecular Biology & Genomics

gene_set_enrichment

Read-only

Preranked gene set enrichment analysis (GSEA; Subramanian et al. 2005) with fgsea's multilevel p-values (Korotkevich et al.), as clusterProfiler's GSEA() runs it (enrichit 0.2.6): weighted running-sum enrichment score, normalized ES against size-matched permutations, multilevel Monte Carlo p-values down to eps, adjusted p and q-value, rank at maximum, leading-edge genes. Seeded: a seed reproduces upstream's p-values exactly, and every set is bit-identical to enrichit in R on pasilla's DESeq2 Wald statistics against every fly GO term.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
epsNofloor for multilevel p-values; 0 estimates them however small.
seedNoseeds the permutations; the same seed gives the same p-values as enrichit.
_filesNoThe project: record references shaped like _subject. Their records become library documents a tool names in sequences/parts/document; a trace or alignment is found by file name.
rankedYesthe ranked list: 'gene statistic' per line (tab, comma or space), e.g. a DE run's Wald statistic; sorted decreasing here if it is not.
_subjectNoThe record to act on: exactly one of sequence, accession (+source), sample (an id from list_samples) or file ({name, text} or {name, base64}); record_index picks one record of several.
exponentNoweight of each gene's statistic in the running sum: 0 is the unweighted Kolmogorov-Smirnov form, 1 classic GSEA.
geneSetsYesthe gene sets, as GMT text (MSigDB, GO or WikiPathways exports): one set per line, tab-separated ID, description, then member gene IDs. IDs must be the same kind as the genes'.
maxGSSizeNolargest set tested, counted among the ranked genes.
minGSSizeNosmallest set tested, counted among the ranked genes.
scoreTypeNostd: both tails; pos or neg: one-tailed, for a statistic with one meaningful sign.std
sampleSizeNomultilevel samples per level (made odd).
nPermSimpleNopermutations for the first, simple p-value estimate and the NES.
pvalueCutoffNoa set is significant when p and adjusted p are at most this.
pAdjustMethodNomultiple-testing adjustment across the tested sets (R `p.adjust`).BH

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
termsYesevery set in the size range, by |NES|: ES, NES, p, adjusted p, q-value, log2err, rank at maximum, leading-edge statistics and genes, and the ranks of the set's members
summaryYesranked genes, ties, whether the list was re-sorted, sets supplied and in range, significant sets, q-value route
enrichedYesthe sets passing the p and adjusted-p cutoff
runningScoreYesthe running enrichment score along the ranked list for the top set, with its hits

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnlyHint/openWorldHint=false/destructiveHint=false, so safety is covered; the description instead contributes reproducibility behavior — that a seed reproduces upstream p-values exactly and results are bit-identical to enrichit 0.2.6 — plus the statistical machinery (weighted running sum, size-matched permutations, eps floor). It does not mention performance cost or how large ranked lists are handled, so it falls short of a 5.

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

Conciseness3/5

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

The lead noun phrase is well front-loaded, but the first sentence is a single sprawling clause chain, and citations (Subramanian et al. 2005, Korotkevich et al., enrichit 0.2.6, pasilla's DESeq2 Wald statistics) consume significant space without helping an agent invoke the tool. The second sentence is pure validation prose; the valuable output enumeration is buried mid-sentence.

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 14 parameters, full schema coverage, an output schema and safety annotations, the description's burden is modest, and it does cover method provenance, outputs and determinism. What is missing is routing guidance relative to gene_set_overrepresentation and any note on cost/scale for large ranked lists, keeping it short of complete.

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 the schema already documents eps, seed, exponent, min/maxGSSize, scoreType, sampleSize, nPermSimple, pAdjustMethod and the two required inputs. The prose adds essentially no parameter meaning beyond the schema (it restates seeding/eps flooring), which is the baseline-3 case.

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 method and resource — preranked GSEA with fgsea multilevel p-values as clusterProfiler's GSEA() runs it — and enumerates the concrete outputs (enrichment score, NES, multilevel p, adjusted p/q, rank at max, leading-edge genes). The word 'preranked' plus the required ranked-statistic input cleanly separates it from the sibling gene_set_overrepresentation, which consumes a plain gene list rather than a ranked statistic vector.

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?

Usage is only implied: the required ranked list of statistics and the GMT gene-set input signal the scenario, but there is no explicit 'use this when you have a full ranked DE result' statement and no exclusions. The sibling gene_set_overrepresentation is never named, so the agent must infer the choice from method terminology alone.

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