Skip to main content
Glama

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
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • 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)
  • 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(), )
  • Pydantic model for input schema validation of list_obs tool.
    class ListObsModel(JSONParsingModel): """ListObsModel""" pass
  • Mapping of list_obs function in util_func dictionary for execution.
    "list_obs": list_obs,
  • Mapping of list_obs tool in util_tools dictionary.
    "list_obs": list_obs_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