get_parent_classes_by_class_full_name
Retrieve parent class details, including full name, name, and ID, by providing the fully qualified name of a class in code review and security analysis workflows.
Instructions
Get the parent classes of a class
@param class_full_name: The fully qualified name of the class
@return: The parent classes info of the class, including the full name, name and id
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| class_full_name | Yes |
Implementation Reference
- server_tools.py:150-158 (handler)The main handler function for the tool 'get_parent_classes_by_class_full_name'. It is registered via the @joern_mcp.tool() decorator and implements the logic by sending a query to the Joern server using joern_remote and parsing the response with extract_list.@joern_mcp.tool() def get_parent_classes_by_class_full_name(class_full_name:str) -> list[str]: """Get the parent classes of a class @param class_full_name: The fully qualified name of the class @return: The parent classes info of the class, including the full name, name and id """ response = joern_remote(f'get_parent_classes_by_class_full_name("{class_full_name}")') return extract_list(response)