Skip to main content
Glama
31Benzi

IDA Pro MCP Server

by 31Benzi

execute_idapython

Run IDAPython scripts directly in IDA Pro to extract binary analysis data, retrieve addresses, or automate reverse engineering tasks by setting the 'result' variable.

Instructions

Execute arbitrary IDAPython code inside the IDA session. Set 'result' or 'output' variable in your script to return data. Example: 'import idc; result = idc.get_screen_ea()'

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
codeYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior2/5

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

With no annotations provided, the description carries full burden for behavioral disclosure. It fails to mention potential dangers (e.g., crashing IDA, security risks, side effects of arbitrary code execution) or how errors are handled. The note about setting 'result' or 'output' for return data is helpful but insufficient.

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?

The description is two sentences plus an example. It is front-loaded with the purpose, and every sentence adds essential information. No waste.

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?

Given the tool's power (arbitrary code execution) and the large set of siblings, the description is incomplete. It omits warnings, preconditions, error behavior, and when to prefer this over other code-execution tools. The existence of an output schema slightly reduces the burden, but the safety-critical nature demands more.

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

Parameters3/5

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

The schema provides no description for the 'code' parameter (0% coverage). The description adds the crucial context that valid code should set 'result' or 'output' to return data, and provides an example. This compensates somewhat, but lacks constraints (e.g., Python version, timeout limits, or syntax expectations).

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

Purpose5/5

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

The description clearly states the tool executes arbitrary IDAPython code inside an IDA session. It distinguishes itself from siblings like run_idc_script (which runs IDC, not Python) and run_ida_action (predefined actions), making the purpose specific and unambiguous.

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

Usage Guidelines2/5

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

No guidance is provided on when to use this tool versus alternatives (e.g., run_idc_script, run_ida_action) or when not to use it. The context of arbitrary code execution suggests caution, but the description omits any such advisory.

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

Install Server

Other 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/31Benzi/IDA-PRO-MCP'

If you have feedback or need assistance with the MCP directory API, please join our Discord server