Skip to main content
Glama
ibm-ecm

IBM Core Content Services MCP Server

Official
by ibm-ecm

get_class_property_descriptions

Retrieve property descriptions for IBM Content Manager classes to understand metadata structure and requirements.

Instructions

Retrieves properties of a class.

:param class_symbolic_name: The symbolic name of the class to retrieve properties for

:returns: A list of CachePropertyDescription objects for each property

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
class_symbolic_nameYes

Implementation Reference

  • The main handler function for the 'get_class_property_descriptions' tool. It fetches class metadata using get_class_metadata_tool and returns the property_descriptions list or a ToolError.
    def get_class_property_descriptions(
        class_symbolic_name: str,
    ) -> Union[List[CachePropertyDescription], ToolError]:
        """
        Retrieves properties of a class.
    
        :param class_symbolic_name: The symbolic name of the class to retrieve properties for
    
        :returns: A list of CachePropertyDescription objects for each property
        """
        class_metadata = get_class_metadata_tool(
            graphql_client=graphql_client,
            class_symbolic_name=class_symbolic_name,
            metadata_cache=metadata_cache,
        )
    
        # If there was an error retrieving the class metadata, return it
        if isinstance(class_metadata, ToolError):
            return class_metadata
        else:
            return class_metadata.property_descriptions
  • The @mcp.tool decorator registration for the 'get_class_property_descriptions' tool within the register_class_tools function.
    @mcp.tool(
        name="get_class_property_descriptions",
    )
  • Call to register_class_tools in the FULL server type, which registers the class tools including get_class_property_descriptions.
    register_class_tools(mcp, graphql_client, metadata_cache)
  • Call to register_class_tools in the CORE server type, which registers the class tools including get_class_property_descriptions.
    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