list_root_classes
Retrieve all root class types in IBM Content Manager to identify valid class names before listing all classes.
Instructions
List all available root class types in the repository.
This tool should be called first to get a list of valid root class names before using the list_all_classes tool.
:returns: A list of all available root class types (e.g., ["Document", "Folder", "Annotation", "CustomObject"])
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- The handler function that executes the tool logic. It simply returns the root class keys from the metadata cache.def list_root_classes_tool() -> List[str]: """ List all available root class types in the repository. This tool should be called first to get a list of valid root class names before using the list_all_classes tool. :returns: A list of all available root class types (e.g., ["Document", "Folder", "Annotation", "CustomObject"]) """ return metadata_cache.get_root_class_keys()
- src/cs_mcp_server/tools/classes.py:463-465 (registration)The @mcp.tool decorator that registers the list_root_classes tool with the MCP server.@mcp.tool( name="list_root_classes", )
- src/cs_mcp_server/mcp_server_main.py:222-222 (registration)Call to register_class_tools which defines and registers the class tools including list_root_classes for CORE server type.register_class_tools(mcp, graphql_client, metadata_cache)
- src/cs_mcp_server/mcp_server_main.py:238-238 (registration)Call to register_class_tools which defines and registers the class tools including list_root_classes for FULL server type.register_class_tools(mcp, graphql_client, metadata_cache)