get_class_full_name_by_id
Retrieve the fully qualified name of a class using its unique ID. This tool simplifies code review and security analysis by providing precise class identification in the Joern MCP Server environment.
Instructions
Retrieves the fully name of a class by its ID
@param id: The unique identifier of the class (typeDecl), the id is a Long int string, like '111669149702L'
@return: The fully name of the class (e.g., com.android.nfc.NfcService$6)
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| class_id | Yes |
Implementation Reference
- server_tools.py:57-65 (handler)The handler function for the 'get_class_full_name_by_id' tool, decorated with @joern_mcp.tool() which also serves as registration. It queries the Joern server remotely and extracts the class full name using helper functions.@joern_mcp.tool() def get_class_full_name_by_id(class_id:str) -> str: """Retrieves the fully name of a class by its ID @param id: The unique identifier of the class (typeDecl), the id is a Long int string, like '111669149702L' @return: The fully name of the class (e.g., com.android.nfc.NfcService$6) """ response = joern_remote(f'get_class_full_name_by_id("{class_id}")') return extract_value(response)
- server_tools.py:57-57 (registration)The @joern_mcp.tool() decorator registers the function as an MCP tool.@joern_mcp.tool()