Skip to main content
Glama

Decompile function to pseudocode

decompile
Read-only

Convert functions at specified addresses into pseudocode and per-item errors, enabling reverse engineering of compiled binaries via IDA.

Instructions

Decompile function(s) at address(es); returns pseudocode and per-item errors.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
addrYesFunction address or name to decompile
instance_idNoOptional database instance id. If omitted, use the current target.
include_addressesNoAppend /*0xNNNN*/ markers per line (default: true). Set false to save tokens.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
addrYes
codeYes
refsNo
errorNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv20261008.0.1

TDQS

A3.5/5.0
Behavior4/5

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

With only readOnlyHint=true in annotations, the description adds useful behavioral context by stating it returns pseudocode and per-item errors. This tells the agent the output format and that partial failures are possible, though it does not discuss performance or analysis-state prerequisites.

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

Conciseness5/5

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

The description is a single front-loaded sentence with no redundant or wasted wording. It efficiently conveys the core action and output in one pass.

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?

An output schema exists, so the description need not explain return values in detail, and annotations cover the read-only safety profile. However, it provides no usage context relative to the many sibling analysis tools, leaving a meaningful gap for tool selection.

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 the schema already fully documents all three parameters. The description mentions address(es) but adds no additional syntax, format, or constraint details beyond what the input schema provides.

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 uses a specific verb and resource: 'Decompile function(s) at address(es); returns pseudocode and per-item errors.' It clearly states what the tool does, but it does not explicitly distinguish itself from siblings such as disasm or analyze_function.

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?

The description offers no guidance on when to use this tool versus alternatives like disasm, analyze_function, or func_query. It simply states the action, leaving the agent to infer usage context on its own.

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