Skip to main content
Glama
bethington

Ghidra MCP Server

by bethington

import_file

Import a binary file into a Ghidra project, open it in the CodeBrowser, and optionally start auto-analysis. Supports auto-detection for ELF, PE, Mach-O, and allows language specification for raw firmware.

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?

No annotations are provided, so the description carries the full burden. It discloses that the tool opens a CodeBrowser, optionally starts auto-analysis, and sends a log notification upon completion. This is sufficient behavioral context for a file import tool, though it does not mention error handling or conflicts with existing imports.

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?

The description is well-structured with a brief opening sentence followed by additional details and an Args section. It is appropriately sized for the tool's complexity, though the Args section could be slightly more concise.

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

Completeness3/5

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

Given the tool has 5 parameters, no annotations, and an output schema that is not referenced in the description, the description is fairly complete. However, it lacks details about return values or error conditions (e.g., what happens if the file is already imported or the path is invalid), which would be helpful for the agent.

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 description coverage is 0%, so the description must compensate. It explains all five parameters in the Args section, providing examples for language and compiler_spec. This adds significant value beyond the input 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 clearly states the tool imports a binary file into a Ghidra project, opens it in CodeBrowser, and optionally runs auto-analysis. It distinguishes itself from sibling tools like check_tools and search_tools which have unrelated purposes.

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 provides guidance on when to specify language/compiler_spec (for raw binaries) and notes that auto-detection works for common formats. It implicitly tells the agent not to specify language for standard formats, but does not explicitly mention when not to use this tool or alternatives.

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

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