Skip to main content
Glama

r2_config_manager

Tune Radare2 analysis and display settings to fix truncated functions, missing references, or shallow disassembly. Get, set, or list eval variables for deeper binary inspection.

Instructions

[Binary/reverse-engineering tool. Use when: disassembly, radare2, r2, debugging, vulnerability research, ELF/PE/SO/DEX analysis.] 【r2ai逆向工具】⚙️ [配置管理] 管理 Radare2 的分析与显示配置 (eval variables)。 当分析结果不理想、函数截断或需要深度分析时使用。 关键配置参考:

  • 流量控制: 'anal.hasnext' (继续分析后续代码), 'anal.jmp.after' (无条件跳转后继续)

  • 混淆/大块: 'anal.bb.maxsize' (调整基本块 大小限制)

  • 引用/字符串: 'anal.strings' (开启字符串引用,默认关闭), 'anal.datarefs' (代码引用数据)

  • 边界范围 (anal.in): 'io.maps' (分析所有映射), 'dbg.stack' (分析栈), 'bin.section' (当前段)

  • 跳转表: 'anal.jmp.tbl' (开启实验性跳转表分析) 【触发场景】当用户询问二进制逆向分析、反汇编、漏洞 挖掘、radare2命令执行、调试相关问题时,必须优先调用此工具。 【使用规则】调用前必须确认用户提供了目标文件的绝对路径,禁止捏造不存在的文件路径或命令结果,session_id 不再使用时必须关闭。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
keyYes配置键名,例如 'anal.strings' 或 'anal.in'
valueNo要设置的新值 (仅 set 模式需要)。例如 'true', 'false', 'io.maps'
actionYes操作类型:get(读取当前值), set(修改值), list(搜索配置项)
session_idYes会话 ID

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.0.3

TDQS

B3.4/5.0
Behavior3/5

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

No annotations are provided, so the description carries the disclosure burden. It explains that the tool manages Radare2 eval variables, lists useful config keys, and includes operational rules such as not fabricating file paths or command results and closing the session_id when done. It does not disclose side effects of 'set' (e.g., persistence or impact on the session/analysis state) or what get/list return, leaving some behavioral gaps.

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

Conciseness3/5

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

The description is sectioned and the config-key reference is practical and useful. However, it is verbose and somewhat repetitive: the broad opening 'Use when' list overlaps with the later trigger scenario, and the 'must prioritize' sentence adds noise rather than selection value. It could be tightened without losing the valuable config guidance.

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 description provides substantial config-key context and usage rules, which is helpful for correct invocation. But with no output schema, it does not explain what get/list return, and it does not mention how session_id should be obtained (e.g., from r2_open_file) or whether a target file must already be loaded. These are meaningful gaps for a tool that depends on an active r2 session.

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?

The input schema already describes all parameters with 100% coverage, so the baseline is 3. The description adds real value by enumerating concrete config keys ('anal.strings', 'anal.bb.maxsize', 'anal.in' modes) and value examples, which helps an agent choose meaningful key/value pairs beyond the generic schema descriptions. Value format is only illustrated by example, not fully formalized.

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 specific resource (Radare2 analysis/display eval variables) and action (manage via get/set/list), and provides concrete triggers like poor analysis results or function truncation. This distinguishes it from sibling r2 tools. However, the opening 'Binary/reverse-engineering tool. Use when: disassembly, radare2, debugging...' is overly broad for a config manager and slightly dilutes the purpose.

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 gives concrete use cases: when analysis results are unsatisfactory, when functions are truncated, and for deep analysis/config tuning. It does not explicitly name sibling alternatives or state when not to use this tool. The instruction to 'must prioritize this tool' for any disassembly/reverse-engineering question overstates its role, since siblings like r2_disassemble or r2_analyze_target are more appropriate for those tasks.

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