Skip to main content
Glama

create_venn_diagram

Compare differentially expressed genes across 2 or 3 assays using Venn diagrams that visualize overlapping upregulated and downregulated genes.

Instructions

Create Venn diagrams comparing differentially expressed genes between 2 or 3 assays.

This function creates side-by-side Venn diagrams showing:

  • Left: Upregulated genes (log2fc > threshold) overlap

  • Right: Downregulated genes (log2fc < -threshold) overlap

If assay_id_3 is provided, creates 3-way Venn diagrams. If assay_id_3 is None, creates 2-way Venn diagrams.

Returns a link to the plot and summary statistics. FORMATTING INSTRUCTION: RENDER THE RESPONSE IN MARKDOWN FORMAT!

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
assay_id_1YesFirst assay identifier (e.g., 'OSD-511-53054e738e335bc645cb620c95916e5f')
assay_id_2YesSecond assay identifier (e.g., 'OSD-511-8974299195d78d74d7f3f085f2b48981')
assay_id_3NoThird assay identifier (optional, for 3-way Venn diagram)
log2fc_thresholdNoLog2 fold change threshold for filtering genes
figsize_widthNoFigure width in inches
figsize_heightNoFigure height in inches

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior4/5

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

The description details the output (side-by-side Venn diagrams for up and down regulated genes, link to plot, summary statistics) and includes a formatting instruction. No annotations are provided, so the description carries the burden, and it adequately covers behavior without contradictions.

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?

The description is well-structured with bullet points and clear sections, front-loading the purpose. The FORMATTING INSTRUCTION is somewhat extraneous but not overly verbose. It could be slightly more concise, but it remains efficient.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool has 6 parameters, no annotations, and an output schema, the description fully covers the behavior, expected input, and output. It explains the up/down regulation logic and return value, making it complete for an AI agent.

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 describes each parameter. The description adds context by explaining the effect of assay_id_3 and the threshold, but this is largely redundant with the schema. Baseline 3 is appropriate.

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 it creates Venn diagrams for comparing differentially expressed genes between 2 or 3 assays, specifying the up/down regulation distinction. This distinguishes it from siblings like create_volcano_plot and find_common_differentially_expressed_genes.

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 description explains when to use the tool (comparing DE genes) and how the number of assays affects the output (2-way vs 3-way). However, it does not explicitly state when not to use it or compare with alternatives like find_common_differentially_expressed_genes.

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/sbl-sdsc/mcp-genelab'

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