Skip to main content
Glama

r2_analyze_file

Run deep binary analysis with radare2 (aaa) on ELF/PE/SO/DEX files for disassembly, debugging, and vulnerability research. Automatically releases resources and supports session reuse.

Instructions

[Binary/reverse-engineering tool. Use when: disassembly, radare2, r2, debugging, vulnerability research, ELF/PE/SO/DEX analysis.] 【r2ai逆向工具】⚡ [深度分析] 一次性执行深度分析 (aaa) 并自动释放资源。支持复用现有 session_id 或根据文件路径查找会话。 【触发场景】当用户询问二进制逆向分析、反汇编、漏洞挖掘、radare2命令执行、调试相关问题时,必须优先调用此工具。 【使 用规则】调用前必须确认用户提供了目标文件的绝对路径,禁止捏造不存在的文件路径或命令结果,session_id 不再使用时必须关闭。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
file_pathYes二进制文件的完整路径
session_idNo可选:现有会话 ID

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.0.3

TDQS

A3.5/5.0
Behavior4/5

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

No annotations are provided, so the description carries the burden. It discloses that the tool runs aaa analysis, automatically releases resources, supports session_id reuse or lookup by file path, and instructs the agent to close unused sessions. The session lifecycle is slightly ambiguous but not contradictory.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness2/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The trigger information is repeated in the Use-when list and the trigger scene, and the text mixes emoji, bracket labels, Chinese, and English unnecessarily. It could be condensed to a few focused sentences without losing content.

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?

The tool is complex and has no output schema or annotations, yet the description omits what the analysis result looks like and how to choose between providing session_id and letting it resolve by file_path. It does cover path safety, session reuse, and cleanup, making it minimally adequate.

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 100%, so the baseline is 3, but the description adds useful semantics: file_path must be an absolute path, invented paths/results are forbidden, and session_id can be used to reuse an existing session or locate it by file path.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description identifies a concrete action: running a one-shot radare2 deep analysis (aaa) on a binary file and releasing resources. It also lists applicable domains, though the broad trigger list overlaps with sibling tools such as r2_disassemble and r2_decompile_function.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides explicit trigger scenes and a mandatory-priority rule for binary analysis requests. However, it gives no exclusions or alternatives, and its trigger list is broad enough that an agent cannot tell when to choose r2_disassemble or r2_decompile_function instead.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.