Skip to main content
Glama

get_enum

Retrieve detailed information about a specific enumeration by name from binary files for reverse-engineering analysis.

Instructions

Get details of a specific enum by name.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameYes

Implementation Reference

  • main.py:108-116 (handler)
    The handler function for the 'get_enum' MCP tool. It retrieves enum details by name from the loaded Ghidra context. The @mcp.tool() decorator registers the tool and infers the schema from the function signature and docstring.
    @mcp.tool()
    async def get_enum(name: str) -> dict:
        """Get details of a specific enum by name."""
        if not ctx_ready:
            return {"error": "Context not ready. Run `setup_context()` first."}
        for e in ctx.get("data_types", {}).get("enums", []):
            if e["name"] == name:
                return e
        return {"error": f"Enum '{name}' not found."}

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