Skip to main content
Glama

Open binary in IDA

open_database

Load a binary, firmware image, or IDA .i64/.idb into IDA Pro and run auto-analysis so you can decompile, disassemble, and query it with execute_python.

Instructions

Open (load) a binary executable, shared library, firmware image, or an existing .i64/.idb IDA database in IDA Pro for reverse engineering. Runs IDA auto-analysis (functions, disassembly, cross references, strings) in a headless idalib worker, or attaches to the file already open in the IDA GUI. Call this first, then use execute_python to decompile, disassemble and query the binary. load_options apply only when a new headless worker is spawned; they do not change an already-open IDA GUI database or a reused worker.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathYesPath to a local executable or IDB. A GUI instance is used when available.
set_currentNoWhether this database should become the default target for execute_python().
load_optionsNoIDA import options for a newly spawned worker, such as loading a raw blob.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
hintYes
mcp_idYes
statusYesAttachment state: attached or current.
backendYesInstance backend: gui or idalib.
log_pathYes
recoveryYesCrash recovery performed while opening: none, repaired, or restored.
instance_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv20261008.0.1

TDQS

A4.3/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does well: it discloses that auto-analysis runs (functions, disassembly, xrefs, strings), that it may attach to an already-open GUI instance, and that load_options are ignored for GUI databases and reused workers. It omits analysis duration/cost and error behavior for an invalid path.

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

Conciseness4/5

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

Front-loaded with the core action and formats accepted, followed by operational behavior and the load_options caveat. Dense but every sentence carries information; the closing caveat is slightly long-winded but earns its place.

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

Completeness4/5

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

Output schema exists, so return values need not be explained. For a stateful load/attach tool with no annotations, the description covers the important behavioral surface a caller needs (modes, sequencing, option scope), falling just short on failure modes and cost.

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

Parameters4/5

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

Schema coverage is 100%, so the baseline is 3, but the description adds real semantic constraint beyond the schema: load_options only take effect on a newly spawned headless worker and do not alter an already-open GUI database or a reused worker. It also clarifies that path may resolve to an already-open GUI instance.

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?

States a concrete verb+resource (open/load a binary, shared library, firmware image, or .i64/.idb) and scopes it to IDA Pro for reverse engineering. It is immediately distinguishable from siblings like close_database, save_database, and list_databases.

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?

Gives an explicit sequencing rule ('Call this first, then use execute_python') and explains the headless-worker vs GUI-attach modes, which tells the agent what state it will be operating in. It does not state failure conditions or when to prefer close_database/re-open instead, but the core routing guidance is clear.

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