MCP server that provides binary analysis and reverse engineering capabilities through Radare2
The Radare2 MCP server defines 20 tools with varying quality. Tool names follow verb_noun conventions (open_file, list_functions, get_disassembly) which is good. However, most tool descriptions are extremely brief (10-30 characters), well below the 194-char baseline for production tools. Parameter descriptions exist but are minimal. Critically, while JSON Schema input definitions are visible in src/tools.c with proper type declarations, output schemas are NOT documented, the code shows RJson returns but no formal output structure specification. This violates pattern:tool-description (document output schema) and creates ambiguity for LLMs about what fields to expect in responses. Error handling is largely absent from visible code, no recovery guidance, no categorization of errors (retryable vs fatal), no actionable error messages. The tools_c file shows validation helpers but no documented error paths. Risk classification (READ_ONLY vs WRITE) is declared but not reflected in tool annotations (destructiveHint, readOnlyHint) per spec. Pagination support exists in parameters (cursor, page_size) for list operations, which is good, but total counts and next_cursor logic are not visible or documented.
Perform binary analysis
Close the currently open file
Delete a breakpoint
Get decompiled code for a function
Get disassembled code at specified address
Get information about function at specified address
Get hex dump of memory at specified address
Get general binary information
Output schemas not documented. No formal specification of return types or response fields visible in code or documentation. LLMs cannot plan downstream tool usage or extract nested data without knowing field names and types.
Tool descriptions are critically short (10-35 chars vs 194-char baseline). Many descriptions lack context on WHEN to use the tool, WHAT problem it solves, or WHEN to call it vs similar tools. Examples: 'Close the currently open file' (31 chars), 'Get general binary information' (30 chars), 'List all breakpoints' (20 chars).
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-22 | D | 55 | 2025-06-18+ | v2 |
Get cross-references for an address
List all breakpoints
List all exported symbols
List all functions in the binary
List all imported symbols/libraries
List all sections in the binary
List all strings found in the binary
List variables in a function
Open a file for analysis
Execute a radare2 command (requires -r flag)
Search for patterns in the binary
Set a breakpoint at an address
No tool annotations (destructiveHint, readOnlyHint, idempotentHint) in visible code despite explicit risk classification in metadata. WRITE tools (run_command, set_breakpoint, delete_breakpoint) and READ_ONLY tools are not annotated per spec. This prevents the client from understanding operation safety.
No visible error handling or recovery guidance in src/tools.c. No indication of how tools fail, whether errors are retryable, or what the LLM should do next. No error categorization (user-fixable, retryable, fatal). Per pattern:recovery-guide, error responses must guide the LLM's next step.
Parameter descriptions are minimal and lack actionable constraints. 'Regex filter' (12 chars) does not explain valid regex syntax, escape rules, or what happens on invalid input. 'Analysis depth level' does not enumerate valid levels. Address parameters lack format specification (hex vs decimal, with/without 0x prefix).
Pagination support exists (cursor, page_size) but behavior is not documented. No clarity on whether cursor is opaque, whether page_size has bounds, what happens if cursor is invalid, or how to detect end-of-list. LLMs cannot reliably paginate without explicit guidance.
No confirmation or dry-run support for destructive operations. run_command, set_breakpoint, and delete_breakpoint are WRITE tools but lack confirmation steps. Agents can irreversibly delete breakpoints or execute unintended commands without safeguards.
Address parameters (in get_disassembly, get_hex_dump, get_function_at, get_xrefs, set_breakpoint, delete_breakpoint) lack format specification. Unclear if hex addresses must include '0x' prefix, whether they're case-sensitive, or how to represent invalid addresses. Code shows rjson_get_baddr_param() helper but no visible validation of address format in tool descriptions.