Skip to main content
Glama

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
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • 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)
  • 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
  • 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(), )
  • 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, }

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