Skip to main content
Glama
bethington

Ghidra MCP Server

by bethington

connect_instance

Connect to a different Ghidra instance using its project name. List available instances with list_instances before connecting.

Instructions

Switch the MCP bridge to a different Ghidra instance by project name.

IMPORTANT: Before calling this function only the static bridge tools are exposed (list_instances, connect_instance, tool-group management, debugger proxy). After a successful connect the bridge fetches the instance's /mcp/schema and registers Ghidra analysis tools dynamically. By default all tool groups are loaded on connect. When started with --lazy, only the default groups are loaded initially and clients may need to call load_tool_group() for additional categories. Clients that cache the initial tools/list and don't honor tools/list_changed must re-list tools after this call.

Use list_instances() first to see available instances.

Args: project: Project name (or substring) to connect to

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
projectYes

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 fully carries the burden. It discloses important behavioral traits: that only static bridge tools are exposed before the call, that after a successful connect the bridge fetches the schema and registers tools dynamically, and that clients must honor tools/list_changed. It could mention error handling or connection persistence, but overall discloses key side effects.

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 front-loaded with the main purpose and uses an 'IMPORTANT' section for critical context. It is structured with an 'Args' list. While thorough, it could be slightly more concise without losing valuable information.

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?

Given the tool's complexity, low schema coverage, and existence of an output schema, the description covers pre-conditions, parameter semantics, post-conditions (tool registration), and lazy loading behavior. It does not explain the output, but the presence of an output schema mitigates that need. The description is sufficient for an agent to use the tool correctly.

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 0%, so the description must compensate. It adds meaning by stating the parameter is a 'Project name (or substring)' and can be used to match instances. This clarifies the parameter's role beyond the schema's type-only definition.

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's action: 'Switch the MCP bridge to a different Ghidra instance by project name.' It distinguishes from siblings by explaining that before this call only static bridge tools are exposed, and after connect, dynamic tools are registered, which sets it apart from list_instances and load_tool_group.

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?

Provides explicit pre-requisite 'Use list_instances() first' and explains the context of when to use (to connect to a different instance). It also notes the --lazy startup behavior and the need to re-list tools after the call. Minor omission of explicit 'do not use if...' scenarios.

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