get_calls_in_method_by_method_full_name
Retrieve detailed call information within a specified method using its full name. Designed for code review and security analysis, this tool helps developers analyze method interactions efficiently.
Instructions
Get the calls info by the method full name which the call is in the method
@param method_full_name: The full name of the method
@return: The calls info of the method
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| method_full_name | Yes |
Implementation Reference
- server_tools.py:180-188 (handler)The main handler function for the 'get_calls_in_method_by_method_full_name' MCP tool. It executes the tool logic by sending a query to the Joern server via joern_remote and processes the response using extract_list.@joern_mcp.tool() def get_calls_in_method_by_method_full_name(method_full_name:str) -> list[str]: """Get the calls info by the method full name which the call is in the method @param method_full_name: The full name of the method @return: The calls info of the method """ response = joern_remote(f'get_calls_in_method_by_method_full_name("{method_full_name}")') return extract_list(response)
- server.py:95-106 (registration)Dynamic registration of tools from server_tools.py (including this tool) via exec of the generated tools file, using the @joern_mcp.tool() decorators.GENERATED_PY = os.path.join(SCRIPT_DIR, "server_tools.py") def generate(): """Generate and execute additional server tools from server_tools.py file. This function reads the content of server_tools.py and executes it to add more functionality to the server. """ with open(GENERATED_PY, "r") as f: code = f.read() exec(compile(code, GENERATED_PY, "exec")) generate()