Skip to main content
Glama

list_function_definitions

Extract and list all function definition names from a loaded binary using Ghidra MCP Server for efficient reverse-engineering analysis.

Instructions

List all function definition names from the loaded binary.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • main.py:118-123 (handler)
    The handler function for the 'list_function_definitions' tool. It checks if context is ready and returns a list of function definition names from the Ghidra-exported context data.
    @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", [])]

Other Tools

Related Tools

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