Skip to main content
Glama

list_structures

Extract structure names from loaded binaries to analyze data layouts and memory organization during reverse engineering.

Instructions

List all structure names from the loaded binary.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • main.py:84-89 (handler)
    The handler function for the 'list_structures' tool. It is registered via the @mcp.tool() decorator and returns a list of structure names from the loaded Ghidra context JSON, checking if context is ready first.
    @mcp.tool() async def list_structures() -> list[str]: """List all structure names from the loaded binary.""" if not ctx_ready: return ["❌ Context not ready. Run `setup_context()` first."] return [s["name"] for s in ctx.get("data_types", {}).get("structures", [])]

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