Skip to main content
Glama

ida_lua_bindings

Recover luaL_Reg tables from IDA Pro binaries to list every native function registered into the Lua VM as name, address, and function rows, mapping Lua dump names to their C++ implementations.

Instructions

Recover luaL_Reg tables — every native function registered into the Lua VM, as {name, address, function} rows. Use it to go from a Lua dump name straight to the C++ implementation.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "ida_lua_bindings"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNo
max_bytesNo
min_entriesNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.4/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations, the description carries the full disclosure burden; it does reveal the return structure and that the tool scans the Lua VM's registration tables (implying a read-only recovery operation). It omits the cost/scope of the scan, which the undocumented max_bytes default of 64MB strongly suggests involves walking large regions of the binary, and says nothing about failure when no Lua runtime is present.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two short sentences, front-loaded with what is recovered and the output shape, followed by the use case. Nothing extraneous.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

No output schema, no annotations, and three non-trivial tuning parameters with zero documentation. The description compensates partially by describing the row format, but an agent cannot safely choose limit/max_bytes/min_entries or predict scan cost from this definition.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 0%, so all three parameters (limit, max_bytes, min_entries) are undocumented anywhere. The description's phrase 'every native function registered' gives only faint context for what min_entries filters and none for the scan cap or result limit, leaving the agent to guess at defaults and trade-offs.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description names a specific verb and resource ('Recover luaL_Reg tables') and even states the row shape {name, address, function}, so an agent knows exactly what comes back. It also implicitly distinguishes itself from generic listing tools like ida_functions/ida_names by tying Lua registration names to native C++ implementations, though it never names those siblings explicitly.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

"Use it to go from a Lua dump name straight to the C++ implementation" gives a concrete triggering scenario, which is more than most descriptions offer. It stops short of stating when not to use it or which sibling (e.g. ida_functions, ida_search_text) to prefer when the Lua angle is irrelevant.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.