Skip to main content
Glama
sapyyy

Java JAR Decompiler & Reverse Engineering MCP Server

by sapyyy

decompile_jar

Decompile Java JAR files to source code with analytics, tree output, and logs. Supports multiple decompiler engines for flexible reverse engineering.

Instructions

Decompiles a Java .jar file into a target directory and returns comprehensive decompilation analytics, tree output, and logs.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
jarPathYesAbsolute or relative path to the Java .jar file to decompile.
extraArgsNoOptional additional command-line arguments to pass directly to the decompiler engine.
outputDirNoOptional output directory path for decompiled source files. Defaults to decompiled-output/<jar_name>_<timestamp>.
decompilerPathNoOptional explicit path to the decompiler binary or .jar (e.g., decompiler/cfr.jar). If omitted, automatically detects decompilers in decompiler/.
decompilerTypeNoDecompiler engine type. Defaults to "auto" which detects based on filename.
Behavior3/5

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

With no annotations, the description must carry the full burden of behavioral disclosure. It mentions a side effect (writing to a target directory) and specifies that it returns analytics, tree output, and logs. However, it omits details about overwrite behavior, required permissions, or the nature of the analytics/logs. It provides some transparency but not comprehensive.

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, well-structured sentence that immediately states the primary action and key outputs. It is concise, front-loaded, and contains no irrelevant content.

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?

For a tool with no output schema, the description does a good job indicating what is returned (analytics, tree output, logs). It omits some operational details like decompiler auto-detection and default output directory behavior, but these are covered in the schema. Given the tool's complexity, the description provides a solid, complete enough overview.

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?

The input schema already provides descriptions for all five parameters, giving 100% coverage. The description does not add detail about parameter syntax or relationships beyond the schema, so the baseline score of 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 clearly states the action ('Decompiles a Java .jar file'), the resource ('.jar file'), and the destination ('into a target directory'). It also differentiates from sibling tools by specifying it produces analytics, tree output, and logs, which is unique compared to compilation or analysis tools.

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 provides no explicit guidance on when to use this tool versus alternatives. It does not mention situations where a sibling tool (e.g., analyze_decompilation_output) would be more appropriate, nor does it state prerequisites or exclusions. The usage context is only implied by the tool name and basic purpose.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/sapyyy/reverse-engineering-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server