Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault

No arguments

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

This server publishes no instructions, or was last inspected before Glama recorded them.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": false
}
prompts
{
  "listChanged": false
}
resources
{
  "subscribe": false,
  "listChanged": false
}

Tools

Functions exposed to the LLM to take actions

NameDescription
load_dataA

Load spatial transcriptomics data with comprehensive metadata profile.

Args:
    data_path: Path to data file or directory
    data_type: 'visium', 'xenium', 'slide_seq', 'merfish', 'seqfish', or 'generic'
    name: Optional dataset name

Returns:
    SpatialDataset with cell/gene counts and metadata profiles
preprocess_dataA

Run QC, filtering, normalization, and highly variable gene selection.

This tool does not compute PCA, UMAP, clustering, or neighbor graphs. Run
compute_embeddings() afterward when downstream tools require those artifacts.

Args:
    data_id: Dataset ID
    params: Preprocessing parameters (all have sensible defaults)
compute_embeddingsB

Compute dimensionality reduction (PCA, UMAP), clustering, and neighbor graphs.

Args:
    data_id: Dataset ID
    params: Embedding parameters (PCA, UMAP, clustering, etc.)
visualize_dataB

Visualize spatial transcriptomics data. Set plot_type and subtype in params; see VisualizationParameters schema for all options.

Args:
    data_id: Dataset ID
    params: Visualization parameters (plot_type, subtype, genes, output_format, dpi, etc.)
annotate_cell_typesA

Annotate cell types in spatial transcriptomics data.

Args:
    data_id: Dataset ID
    params: Annotation parameters (method, reference_data_id, cell_type_key, etc.)

Note: Reference methods (tangram, scanvi) require reference_data_id to be preprocessed first.
Rule-based methods: marker_score labels the groups of cluster_label (e.g. spatial
domains) by mean log-normalized marker expression; threshold labels observations
by a cutoff on a numeric obs column (e.g. deconvolution_rctd_<cell type>).
Both write to output_key.
analyze_spatial_statisticsA

Analyze spatial statistics and autocorrelation patterns.

Args:
    data_id: Dataset ID
    params: Analysis parameters (analysis_type, cluster_key, genes). See SpatialStatisticsParameters for all types.

gene_selection='all' computes moran/geary for every gene; the full per-gene
table (rank, statistic, p, FDR) is stored at results_key, only top genes are returned.
find_markersC

Find differentially expressed genes between groups.

Args:
    data_id: Dataset ID
    params: Required - group_key and optional method, group1/group2, n_top_genes, etc.
compare_conditionsA

Compare experimental conditions using pseudobulk differential expression (DESeq2).

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

Analyze copy number variations (CNVs) in spatial transcriptomics data.

Args:
    data_id: Dataset identifier
    params: Required - reference_key, reference_categories, and optional method/thresholds.

Gene positions missing from adata.var are annotated from bundled Ensembl 110
tables (species: human GRCh38 or mouse GRCm39). exclude_gene_classes removes
immunoglobulin, ribosomal, mitochondrial or HLA genes from the CNV input;
query_categories restricts CNV clustering to those reference_key categories.
analyze_velocity_dataB

Analyze RNA velocity to understand cellular dynamics. Requires 'spliced' and 'unspliced' layers.

Args:
    data_id: Dataset ID
    params: Velocity parameters (method, scvelo_mode, etc.)
analyze_trajectory_dataC

Infer cellular trajectories and pseudotime ordering.

Args:
    data_id: Dataset ID
    params: Trajectory parameters (method, root_cell, spatial_weight, etc.)
integrate_samplesB

Integrate multiple spatial transcriptomics samples into a unified dataset.

Args:
    data_ids: List of dataset IDs to integrate
    params: Integration parameters (method, batch_key, n_pcs, etc.)

batch_correction=False pools the samples without correction (shared genes,
counts in layers['counts'], obs and coordinates kept), e.g. to pool sections
for analyze_cell_communication.
deconvolve_dataC

Deconvolve spatial spots to estimate cell type proportions.

Args:
    data_id: Dataset ID
    params: Required - method, cell_type_key, reference_data_id. See DeconvolutionParameters for all methods and options.
identify_spatial_domainsC

Identify spatial domains and tissue architecture.

Args:
    data_id: Dataset ID
    params: Spatial domain parameters (method, n_domains, resolution, etc.)
analyze_cell_communicationB

Analyze cell-cell communication and ligand-receptor interaction patterns.

Args:
    data_id: Dataset ID
    params: Required - species, cell_type_key, and method. For mouse with liana, set liana_resource='mouseconsensus'.

subset_key + subset_categories restrict the analysis to those observations
(e.g. tc_le_region in ['TC', 'LE']).
analyze_enrichmentC

Perform gene set enrichment analysis.

Args:
    data_id: Dataset ID
    params: Required - species must be specified. See EnrichmentParameters for methods and gene_set_database options.
find_spatial_genesC

Identify spatially variable genes.

Args:
    data_id: Dataset ID
    params: Spatial variable gene parameters (method, n_top_genes, etc.)
register_spatial_dataC

Register/align spatial transcriptomics data across sections

Args:
    source_id: Source dataset ID
    target_id: Target dataset ID to align to
    params: Registration parameters (method, alignment settings, etc.)

Returns:
    Registration result with method, dataset IDs, spot counts, and registered spatial key
export_dataA

Export dataset to disk for external script access.

Args:
    data_id: Dataset ID to export
    path: Custom path (default: ~/.chatspatial/active/{data_id}.h5ad)

Returns:
    Absolute path where data was exported
reload_dataA

Reload dataset from disk after external script modifications.

Args:
    data_id: Dataset ID to reload (must exist in MCP memory)
    path: Custom path (default: ~/.chatspatial/active/{data_id}.h5ad)

Returns:
    Summary of reloaded dataset

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

B3.4/5.0

Scored across 20 tools

Disambiguation4/5

Most tools target clearly distinct stages of spatial transcriptomics analysis, such as loading, preprocessing, embeddings, domain detection, deconvolution, and communication. A few pairs have overlapping scope—find_markers versus compare_conditions for differential expression, and analyze_spatial_statistics versus find_spatial_genes for spatial gene statistics—but descriptions and parameter differences help distinguish them.

Naming Consistency5/5

All tool names use snake_case and follow a verb_noun or verb_object convention (load_data, preprocess_data, find_markers, analyze_cnv, export_data). Verb choices vary appropriately by operation, with no inconsistent casing or mixed naming styles.

Tool Count4/5

The suite has 20 tools, slightly above the ideal 3-15 range, but this matches a comprehensive spatial transcriptomics workflow with many distinct analysis stages. Each tool earns its place, though the surface is somewhat heavy for an MCP server.

Completeness4/5

The tools cover the full analysis lifecycle: loading, preprocessing, embeddings, visualization, spatial statistics/domains/genes, deconvolution, annotation, cell communication, CNV, velocity, trajectory, and export/reload. Minor lifecycle gaps such as listing or deleting datasets prevent a perfect completeness score.

Maintenance

ActivityActive
ResponsivenessResponsive