Skip to main content
Glama

list_enums

Extract and list all enum names from a loaded binary using Ghidra for efficient reverse-engineering and binary 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 handler function for the 'list_enums' MCP tool. It is registered via the @mcp.tool() decorator and returns a list of enum names extracted from the Ghidra analysis context stored in the global 'ctx' dictionary.
    @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", [])]

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