Skip to main content
Glama

simulate_execution

Simulate binary code execution in an ESIL sandbox to calculate return values, decrypt strings, or analyze register changes without running the target application.

Instructions

[Binary/reverse-engineering tool. Use when: disassembly, radare2, r2, debugging, vulnerability research, ELF/PE/SO/DEX analysis.] 【r2ai逆向工具】🧪[模拟执行]在 ESIL 沙箱中模拟执行代码。用于在 不运行 App 的情况下计算函数返回值、解密字符串或分析寄存器变化。 【触发场景】当用户询问二进制逆向分析、反汇编、漏洞挖掘、radare2命令执行、调试相关 问题时,必须优先调用此工具。 【使用规则】调用前必须确认用户提供了目标文件的绝对路径,禁止捏造不存在的文件路径或命令结果,session_id 不再使用时必须关闭。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
stepsYes执行的指令步数 (建议 10-100),防止死循环。
addressNo开始模拟的地址 (例如 '0x1234')。留空默认当前位置。
init_regsNo可选:初始化寄存器状态 (例如 'x0=0x1, x1=0x2000')
session_idYes会话 ID

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.0.3

TDQS

A3.9/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 behavioral disclosure burden. It discloses that execution happens in a sandbox without running the app, requires a real absolute path, forbids fabricating results, and mandates closing the session_id when done. This is valuable behavioral context beyond the schema, though it omits output format and 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.

Conciseness3/5

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

The description is organized into labeled sections and front-loads the core purpose, but it repeats trigger scenarios (bracket list and 触发场景) and includes decorative tags/emojis. Some sentences are redundant, so not every word earns its place.

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 gives solid usage context, sandbox behavior, truthfulness rules, and session cleanup guidance. But it does not explain where session_id comes from (e.g., r2_open_file), what the return output looks like, or how address defaults relate to the current position. These gaps matter for an agent invoking the tool correctly.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, and the schema already explains steps, address, init_regs, and session_id with examples. The tool description adds no parameter-specific detail beyond what the schema provides; the mention of absolute path refers to session context rather than a declared parameter. Baseline 3 is appropriate.

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 uses a specific verb and resource: '在 ESIL 沙箱中模拟执行代码' (simulate execution in ESIL sandbox), and lists concrete use cases such as computing return values, decrypting strings, and analyzing register changes without running the app. This clearly differentiates it from sibling disassembly, analysis, and command-execution tools.

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?

The description provides explicit trigger scenarios ('二进制逆向分析、反汇编、漏洞挖掘、radare2命令执行、调试相关') and a clear context of use: when you want to simulate without executing the app. However, it does not name specific alternative tools or give when-not-to-use conditions, and the blanket instruction 'must prioritize this tool' is somewhat overbroad.

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