Skip to main content
Glama

decompile

Converts a function at a given address or symbol name into C-style pseudocode, returning code or an error.

Instructions

反编译函数为伪代码(C 风格)。输入地址或符号名。返回 addr,code。失败返回 error。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
addrYes函数地址或名称。支持: 0x401000、401000、sub_401000、start、main。
instance_idYes必须提供的 instance_id(或 client_id),用于将请求精确路由到特定的 IDA 实例。请先调用 instance_list 查看并选择合适的客户端 ID。
include_addressesNoAppend /*0xNNNN*/ markers per line (default: true). Set false to save tokens.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.1.0

TDQS

B3.2/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 full burden. It usefully discloses return fields (addr, code) and the failure mode (error), which goes beyond a bare decompile claim. However it says nothing about permissions, cost, or whether it is a safe read-only operation, leaving gaps given zero annotation coverage.

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?

Three short sentences, front-loaded with the operation, followed by input and output expectations. No filler, though the terseness leaves little room for context.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With no output schema, the description helpfully states the return shape (addr, code) and error behavior, and the schema richly documents the instance_id routing requirement including a pointer to instance_list. Complete enough for an agent to call it correctly, though usage-vs-sibling context is absent.

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%, so all three parameters (addr, instance_id, include_addresses) are already fully documented in the schema, including accepted address formats. The description adds no parameter detail beyond what the schema supplies, so the baseline 3 applies.

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?

States a specific verb+resource ('反编译函数为伪代码', decompile a function to C-style pseudocode) and names the output format, which distinguishes it from the assembly-producing sibling disasm. It does not name siblings directly, but the C-style pseudocode deliverable gives an agent enough to tell it apart.

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

Usage Guidelines2/5

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

There is no when-to-use guidance, no mention of when to prefer decompile over disasm or analyze_function, and no preconditions stated. The accepted input forms (address or symbol) are given, but that is input format, not usage guidance.

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