Skip to main content
Glama
sbarbi-gh
by sbarbi-gh

execute_python

Execute Python code in an isolated container for bulk RNA-seq data analysis. Leverage pre-installed packages like pydeseq2 to compute aggregated results and save plots to /output.

Instructions

Execute Python code in the isolated analysis container. The Python namespace is PERSISTENT across calls.

OUTPUT RULES (same as execute_r):

  • Write to /output ONLY aggregated results (gene/pathway level).

  • Do NOT write per-sample matrices as CSV.

  • Plots saved with matplotlib/seaborn: plt.savefig("/output/.png").

  • If the server blocks a CSV, produce an aggregated equivalent instead.

Available packages: pydeseq2, pandas, numpy, matplotlib, seaborn, scipy, statsmodels.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
codeYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior4/5

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

Discloses persistent Python namespace across calls, isolated container, and output directory constraints. No annotations are provided, so the description carries the full burden; it does not cover error handling or resource limits but covers key behavioral traits.

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?

Information is front-loaded with the core action, followed by important details on namespace persistence and output rules. Some repetition from execute_r (same rules) is acceptable for completeness; not overly verbose.

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 tool's complexity (isolated container, persistent namespace, output constraints) and the presence of an output schema, the description covers essential aspects for correct usage, though it omits error handling or performance notes.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Only one parameter 'code' with 0% schema coverage, but the name is self-explanatory. The description adds context about what to include (import packages, ensure output rules) and the environment, compensating for the lack of schema detail.

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 'Execute Python code in the isolated analysis container,' specifying the verb (execute) and resource (Python code). It distinguishes from execute_r by noting persistent namespace and referencing common output rules.

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?

Provides detailed output rules (aggregated results only, avoid per-sample CSVs, plot saving convention) and lists available packages. However, it does not explicitly state when to prefer Python over R or when not to use the tool.

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/sbarbi-gh/brcna'

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