list_obs
Retrieve key column names from adata.obs to prepare for subsequent single-cell RNA sequencing analysis tasks on the SCMCP platform.
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 list_obs tool handler function that returns the list of column names in adata.obs.def list_obs(adata): return list(adata.obs.columns)
- src/scmcp/tool/util.py:28-32 (registration)Definition and registration of the list_obs tool instance.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/schema/util.py:41-43 (schema)Pydantic model for input schema validation of list_obs tool.class ListObsModel(JSONParsingModel): """ListObsModel""" pass
- src/scmcp/tool/util.py:93-93 (registration)Mapping of list_obs function in util_func dictionary for execution."list_obs": list_obs,
- src/scmcp/tool/util.py:101-101 (registration)Mapping of list_obs tool in util_tools dictionary."list_obs": list_obs_tool,