get_method_full_name_by_id
Retrieve the fully qualified name of a method using its unique ID for code review and security analysis in Joern MCP Server.
Instructions
Retrieves the fully qualified name of a method by its ID
@param id: The unique identifier of the method, the id is a Long int string, like '111669149702L'
@return: The fully qualified name of the method (e.g., com.android.nfc.NfcService$6.onReceive:void(android.content.Context,android.content.Intent))
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| method_id | Yes |
Implementation Reference
- server_tools.py:98-106 (handler)The handler function for the 'get_method_full_name_by_id' MCP tool. It is decorated with @joern_mcp.tool(), which registers it with the MCP server. The function queries the Joern server remotely to retrieve the full method name by ID and extracts the value from the response.@joern_mcp.tool() def get_method_full_name_by_id(method_id:str) -> str: """Retrieves the fully qualified name of a method by its ID @param id: The unique identifier of the method, the id is a Long int string, like '111669149702L' @return: The fully qualified name of the method (e.g., com.android.nfc.NfcService$6.onReceive:void(android.content.Context,android.content.Intent)) """ response = joern_remote(f'get_method_full_name_by_id("{method_id}")') return extract_value(response)