Skip to main content
Glama

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

Implementation Reference

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

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