Skip to main content
Glama

list_var

Lists key column names in adata.var for single-cell RNA sequencing analysis, enabling users to identify required inputs for other SCMCP tools.

Instructions

list key columns in adata.var. it should be called for checking when other tools need var key column names input

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The core handler function for the 'list_var' tool. It takes an AnnData object and returns the list of column names in adata.var.
    def list_var(adata): return list(adata.var.columns)
  • Pydantic model used as the input schema for the 'list_var' tool. Being empty (pass), it indicates no input parameters are required.
    class ListVarModel(JSONParsingModel): """ListVarModel""" pass
  • Definition and registration of the MCP Tool object named 'list_var', linking the handler via schema.
    list_var_tool = types.Tool( name="list_var", description="list key columns in adata.var. it should be called for checking when other tools need var key column names input", inputSchema=ListVarModel.model_json_schema(), )
  • 'list_var_tool' is registered in the util_tools dictionary, which is exposed to the MCP server for listing and calling.
    util_tools = { "mark_var": mark_var_tool, "list_var": list_var_tool, "list_obs": list_obs_tool, "check_gene": check_gene_tool, "merge_adata": merge_adata_tool, }
  • Dispatch logic in the MCP server's call_tool handler that routes 'list_var' calls to run_util_func when name is in util_tools.
    elif name in util_tools.keys(): res = run_util_func(ads, name, arguments)

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/huang-sh/scmcp'

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