get_method_by_call_id
Retrieve method information associated with a specific call ID to analyze code structure and behavior in the Joern MCP Server.
Instructions
Get the method info by the call id which the call is in the method
@param id: The id of the call
@return: The method info of the call
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| call_id | Yes |
Implementation Reference
- server_tools.py:160-168 (handler)The core handler function for the 'get_method_by_call_id' tool, decorated with @joern_mcp.tool() for registration. It queries the Joern server remotely using the provided call_id and extracts the value from the response.@joern_mcp.tool() def get_method_by_call_id(call_id:str) -> str: """Get the method info by the call id which the call is in the method @param id: The id of the call @return: The method info of the call """ response = joern_remote(f'get_method_by_call_id("{call_id}")') return extract_value(response)