list_var
Identify key columns in adata.var for single-cell RNA sequencing analysis to ensure accurate data input in 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
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/scmcp/tool/util.py:72-74 (handler)The handler function implementing the list_var tool logic: returns the list of column names from adata.var.def list_var(adata): return list(adata.var.columns)
- src/scmcp/schema/util.py:37-39 (schema)Pydantic input schema model for the list_var tool (empty, no parameters required).class ListVarModel(JSONParsingModel): """ListVarModel""" pass
- src/scmcp/tool/util.py:21-25 (registration)MCP Tool registration defining the name, description, and input schema for list_var.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(), )
- src/scmcp/tool/util.py:98-104 (registration)Registration of util tools dictionary including list_var_tool, likely used by the MCP server.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, }
- src/scmcp/tool/util.py:90-96 (helper)Internal mapping of tool names to handler functions, used by run_util_func dispatcher.util_func = { "mark_var": mark_var, "list_var": list_var, "list_obs": list_obs, "check_gene": check_gene, "merge_adata": merge_adata, }