Skip to main content
Glama

list_function_definitions

Extract function names from binary files to analyze program structure and identify key routines during reverse engineering.

Instructions

List all function definition names from the loaded binary.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • main.py:118-123 (handler)
    Handler function for the 'list_function_definitions' MCP tool. Decorated with @mcp.tool() for automatic registration. Returns list of function definition names from the loaded Ghidra binary context.
    @mcp.tool() async def list_function_definitions() -> list[str]: """List all function definition names from the loaded binary.""" if not ctx_ready: return ["❌ Context not ready. Run `setup_context()` first."] return [f["name"] for f in ctx.get("data_types", {}).get("function_definitions", [])]

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/Bamimore-Tomi/ghidra_mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server