Skip to main content
Glama

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
NameRequiredDescriptionDefault
class_full_nameYes

Implementation Reference

  • 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)

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/sfncat/mcp-joern'

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