Skip to main content
Glama
sapyyy

Java JAR Decompiler & Reverse Engineering MCP Server

by sapyyy

run_ast_deobfuscation_pipeline

Deobfuscates Java code by analyzing the abstract syntax tree to identify obfuscated variables/methods, applying context-aware renames that preserve business logic, and verifying compilation.

Instructions

Runs the complete end-to-end AST de-obfuscation pipeline: copies mavenized_merged_source to mavenized_final_output, compiles, parses AST via GumTree Spoon to find obfuscated vars/methods, applies context-aware renames without changing business logic, verifies compilation, re-scans AST, and outputs logs to logs/ast_renamed_variables_methods.txt.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
logPathNoPath to output the comprehensive AST rename report log. Defaults to logs/ast_renamed_variables_methods.txt.
renamesNoOptional custom rename entries array. If omitted, uses default AST-analyzed renames.
sourceDirNoPath to source mavenized project directory. Defaults to mavenized_merged_source.
targetDirNoPath to target final output directory. Defaults to mavenized_final_output.
gumtreeJarPathNoPath to GumTree Spoon AST Diff JAR. Defaults to gumtree-ast-diff/gumtree-spoon-ast-diff-1.124.jar.
Behavior4/5

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

The description discloses the pipeline steps and states that renames occur 'without changing business logic', which is a safety property. It also mentions the output log path. However, it doesn't cover potential side effects like overwriting the target directory or failure behavior. Given no annotations, this is reasonable transparency.

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 description is a single long sentence but front-loads the purpose and enumerates steps efficiently. It is not overly verbose, though it could be improved with bullet points for better readability.

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?

This is a complex tool with 5 parameters and no output schema. The description covers the pipeline flow and the log output, but does not describe the function's return value or how success is indicated. More detail on the return/output would enhance completeness.

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 5 parameters (100% coverage). The tool description adds no extra parameter-specific details, such as how the optional 'renames' array interacts with default detection. 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 tool runs the complete end-to-end AST deobfuscation pipeline, listing specific steps (copy, compile, parse, rename, verify, re-scan). This distinguishes it from sibling tools that handle individual steps like generate_ast_and_detect_obfuscation or rename_obfuscated_variables.

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

Usage Guidelines3/5

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

The description implies this tool is for full end-to-end deobfuscation but does not explicitly state when to use it over individual steps. No alternatives or exclusions are mentioned, though 'complete end-to-end' hints at its comprehensive nature.

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