analyze_function

MCP tool from GhidrAssistMCP by symgraph

Get detailed function information (signature, variables, etc.)

How to use it

Project documentation lists analyze_function for the GhidrAssistMCP MCP server. Add the server to your MCP client (Claude Desktop, Cursor, Windsurf and others), then check which tools your installed version makes available. Tool availability can depend on configuration and credentials. A server handshake does not verify this tool’s behavior. See the full listing for setup details.

FULL GHIDRASSISTMCP LISTING

Other tools in GhidrAssistMCP (41)

analysis_control

Query Auto Analysis status or request cancellation of queued analysis tasks

analysis_options

List/set/reset Auto Analysis options and save/apply/list/delete option presets for the current program

analyze_program

Run Auto Analysis on the current program or all open programs; supports full re-analysis, pending-changes analysis, address ranges, and option overrides

assemble_code

Assemble instruction text at an address and optionally patch it into program memory

batch_rename

Batch Symbol Renaming Tool

classes

Class Operations Tool

close_program

Close an open CodeBrowser program; changed programs require save=true or ignorechanges=true

create_data_var

Define data variables at addresses

create_function

Create/define a function at an address, optionally clearing existing data/code first

disassemble_at

Disassemble code at an address, optionally clearing existing data/code in the range first

export_program

Export the current program to disk (binary or originalfile) (disabled by default)

get_basic_blocks

Get basic block information for a function

get_binary_info

Get basic program information (name, architecture, compiler, etc.)

get_code

Code Retrieval Tool

get_current_address

Get current cursor address

get_current_function

Get function at current cursor position

get_data_at

Get hexdump/data at a specific address

get_data_vars

List data definitions in the program

get_entry_points

List all binary entry points

get_exports

List exported functions/symbols

get_function_stack_layout

Get stack frame layout with variable offsets

get_function_statistics

Comprehensive statistics for all functions

get_functions

List functions with optional pattern filtering and pagination

get_imports

List imported functions/symbols

get_info

Get detailed class information (methods, fields, vtables, virtual functions)

get_namespaces

List namespaces in the program

get_relocations

List relocation entries

get_segments

List memory segments

get_strings

List string references with optional filtering

import_file

Import a host file into the current Ghidra project and optionally open it (disabled by default)

list

List classes with optional pattern filtering and pagination

list_binaries

List all open programs across all CodeBrowser windows, including Project Path values for unambiguous programname targeting

open_program

List/open project programs in CodeBrowser, with optional analysis prompt suppression and analysis-after-open task submission

patch_bytes

Patch raw bytes in program memory at a given address

project_files

List or delete files/folders in the active Ghidra project; deletion requires confirm=true

rename_symbol

Symbol Renaming Tool

scripts

List/read/create/delete/run Ghidra scripts (disabled by default)

search_functions_by_name

Find functions by name pattern

search_strings

Search strings by pattern

struct

Structure Operations Tool

xrefs

Cross-Reference Tool