Skip to main content
Glama

rehub_exec

Executes a single atomic reverse-engineering step across Ghidra, JADX, Frida, adb, and other backends, tracking task state, failure recovery, and confirmation for side-effecting steps.

Instructions

执行一步逆向操作(原子步骤)。backend=rea|jadx|apktool|ghidra|adb|frida|uia|x64dbg|pe-sieve|craft-anything,op 见各后端(craft-anything 支持 version/doctor/capability/tools/commands/tool/raw;capability 是推荐入口,commands 只回紧凑索引、不打印全表)。传 taskId+stepId 时记录步骤状态(pending/running/succeeded/failed/blocked/skipped)、失败恢复类别与任务预算;有副作用的步骤(launch/attach/dump/install/extract)需要 confirm:true。返回结构化 data + 输出裁剪 + recovery。

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "rehub_exec"
  }
}

Input Schema

NameRequiredDescriptionDefault
opNo操作名(传 taskId+stepId 时可省略)
argsNo操作参数:path/target/procedure/className/methodName/out/args 等
retryNo瞬时错误是否按 maxRetries 重试(默认 true;副作用步骤不自动重试)
stepIdNo步骤 id(如 step-1)
taskIdNo任务 id(来自 rehub_plan)
backendNo后端 id(传 taskId+stepId 时可省略)
confirmNo确认执行有副作用的步骤
timeoutMsNo覆盖默认超时

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.2.0

TDQS

A3.9/5.0
Behavior4/5

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

With no annotations at all, the description must carry the whole behavioral burden and does much of it: it discloses that step status is recorded across pending/running/succeeded/failed/blocked/skipped, that a failure recovery category and task budget are tracked, that side-effecting operations gate on confirm:true, that transient errors retry except for side-effect steps, and that output is trimmed before returning. Gaps remain — nothing on required permissions, whether operations mutate target artifacts irreversibly, or rate/timeout behavior beyond 'override default timeout' in the schema.

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

Conciseness4/5

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

The text is front-loaded with purpose, then backends, then craft-anything op notes, then state/side-effect semantics, then return shape — a sensible priority order with little filler. The nested parenthetical about craft-anything's ops is dense and slightly slows scanning, but every clause carries operational 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?

For an 8-parameter dispatcher with no annotations and no output schema, the description covers side effects, retry, status tracking, and roughly what comes back, which is substantial. The decisive gap is that valid op values for every backend other than craft-anything are deferred to '见各后端', leaving the agent unable to construct a correct call without extra discovery, and error/response detail is only gestured at as 'structured data + recovery'.

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 baseline is 3, but the description adds meaning the schema lacks: since backend is a bare string with no enum, the enumerated backend id list is genuinely new information, and naming the side-effecting operation families (launch/attach/dump/install/extract) operationalizes the otherwise vague 'confirm' parameter. It also clarifies that op and backend may be omitted when taskId+stepId drive execution, and explains the capability-vs-commands distinction for craft-anything.

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 states a specific verb and resource ('执行一步逆向操作(原子步骤)') and immediately enumerates the dispatch surface (backend=rea|jadx|apktool|ghidra|adb|frida|uia|x64dbg|pe-sieve|craft-anything), making it clear this is the atomic executor in a pipeline whose taskId comes from rehub_plan. What it does not do is explicitly contrast itself with siblings such as rehub_verify or rehub_route, so the agent must infer the boundary from 'atomic step' alone.

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?

It gives concrete conditions: supply taskId+stepId to have step state, recovery category, and task budget tracked; side-effecting steps (launch/attach/dump/install/extract) require confirm:true; and for craft-anything, capability is flagged as the recommended entry while commands returns only a compact index. That is real routing guidance, but it says nothing about when to call rehub_plan or rehub_verify first, nor any prerequisites such as backend installation.

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