Skip to main content
Glama

list_enums

Extract all enumeration names from a loaded binary file for reverse-engineering analysis.

Instructions

List all enum names from the loaded binary.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • main.py:101-106 (handler)
    The core handler function for the 'list_enums' tool. It is decorated with @mcp.tool(), which registers it with the FastMCP server. The function returns a list of enum names from the loaded Ghidra context if available, otherwise an error message.
    @mcp.tool() async def list_enums() -> list[str]: """List all enum names from the loaded binary.""" if not ctx_ready: return ["❌ Context not ready. Run `setup_context()` first."] return [e["name"] for e in ctx.get("data_types", {}).get("enums", [])]

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