get_parent_classes_by_class_full_name
Retrieve parent class information for any Java class by providing its fully qualified name, enabling inheritance analysis and code review.
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 handler function for the 'get_parent_classes_by_class_full_name' tool. It is decorated with @joern_mcp.tool(), which registers the tool with the MCP server. The function sends a query to the Joern server via joern_remote and processes the response using extract_list to return a list of parent class information.@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)