Skip to main content
Glama
ibm-ecm

IBM Core Content Services MCP Server

Official
by ibm-ecm

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
NameRequiredDescriptionDefault

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()
  • The @mcp.tool decorator that registers the list_root_classes tool with the MCP server.
    @mcp.tool( name="list_root_classes", )
  • 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)
  • 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)

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/ibm-ecm/ibm-content-services-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server