list_obs
Retrieve key column names from single-cell RNA sequencing data for use in downstream analysis tasks.
Instructions
List key columns in adata.obs. It should be called before other tools need obs key column names input
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/scmcp/tool/util.py:76-77 (handler)The core handler function for the 'list_obs' tool, which returns the list of observation (obs) column names from the AnnData object.def list_obs(adata): return list(adata.obs.columns)
- src/scmcp/schema/util.py:41-43 (schema)Pydantic input schema model for the 'list_obs' tool. It is an empty model, indicating no input parameters are required.class ListObsModel(JSONParsingModel): """ListObsModel""" pass
- src/scmcp/tool/util.py:28-32 (registration)MCP tool registration defining the 'list_obs' tool with its name, description, and input schema reference.list_obs_tool = types.Tool( name="list_obs", description="List key columns in adata.obs. It should be called before other tools need obs key column names input", inputSchema=ListObsModel.model_json_schema(), )
- src/scmcp/tool/util.py:98-104 (registration)Dictionary collecting all utility tools including 'list_obs_tool', which is exposed via tool/__init__.py to the 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, }