Skip to main content
Glama
nawidodo

ghidra-mcp-aarch64

by nawidodo

import_file

Import a binary file into a Ghidra project and open it in CodeBrowser. Optionally start auto-analysis; specify language for raw firmware or rely on auto-detection for known formats.

Instructions

Import a binary file from disk into the current Ghidra project.

Imports the file, opens it in the CodeBrowser, and optionally starts auto-analysis. When analysis is enabled, sends a log notification when analysis completes.

For raw firmware binaries, specify language (e.g. "ARM:LE:32:Cortex") and optionally compiler_spec (e.g. "default"). Without language, Ghidra auto-detects the format (works for ELF, PE, Mach-O, etc.).

Args: file_path: Absolute path to the binary file on disk project_folder: Destination folder in the Ghidra project (default: "/") language: Language ID for raw binaries (e.g. "ARM:LE:32:Cortex", "x86:LE:64:default") compiler_spec: Compiler spec ID (e.g. "default", "gcc"). Uses language default if omitted. auto_analyze: Start auto-analysis after import (default: true)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
languageNo
file_pathYes
auto_analyzeNo
compiler_specNo
project_folderNo/

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior4/5

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

With no annotations, the description carries the full behavioral burden. It discloses that the tool imports the file, opens it in CodeBrowser, optionally runs auto-analysis, and sends a log notification when analysis finishes. This is good coverage, though it does not describe edge-case behaviors such as overwriting or import failures.

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 front-loaded with the primary purpose, then adds focused behavioral context and a compact Args list. Every sentence adds value, and the formatting makes it easy for an agent to scan.

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

Completeness5/5

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

Given the output schema covers return values and the description covers behavior, parameters, defaults, and analysis flow, nothing critical is missing for selecting and invoking this tool. The guidance on raw firmware versus auto-detected formats is especially valuable context.

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

Parameters5/5

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

The input schema has 0% description coverage, so the description must fully compensate. It explains every parameter, gives defaults, provides concrete language examples, and clarifies how compiler_spec relates to the language default. This goes well beyond the schema alone.

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 opens with a specific verb and resource: 'Import a binary file from disk into the current Ghidra project.' It clearly distinguishes this from the sibling tools, which manage instances and tool groups rather than importing files.

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?

The description gives clear conditional guidance for when to specify language and compiler_spec versus relying on auto-detection for known formats. It does not discuss alternatives because the sibling tools are unrelated, but the context for using the tool correctly is well stated.

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/nawidodo/ghidra-mcp-aarch64'

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