Skip to main content
Glama
sapyyy

Java JAR Decompiler & Reverse Engineering MCP Server

by sapyyy

evaluate_and_mavenize_sources

Compares decompiled source candidates by AST structure, line count, and compiler warnings, selects the one with minimal code loss, then builds a clean Maven project with pom.xml.

Instructions

Evaluates decompiled outputs (comparing AST structure, line count, compiler warning count), chooses the best candidate with minimal code loss, and structures it into a clean Maven project with pom.xml.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
groupIdNoMaven groupId. Defaults to org.apache.commons.
versionNoMaven artifact version. Defaults to 2.22.0.
artifactIdNoMaven artifactId. Defaults to commons-io.
outputsDirYesPath to the directory containing candidate decompiled output folders (e.g. outputs/).
targetMavenDirYesPath to target directory where the chosen source will be mavenized (e.g. mavenized_merged_source/).
Behavior3/5

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

With no annotations, the description discloses the evaluation criteria and the creation of a Maven project with pom.xml. However, it does not mention potential side effects like overwriting files in targetMavenDir or whether the original decompiled outputs are modified, leaving some ambiguity for an agent.

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 efficiently conveys the tool's multi-step process without redundancy. It front-loads the primary action 'Evaluates' and uses specific criteria, making it clear and compact.

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?

Given the tool's complexity and lack of an output schema, the description covers the core evaluation and mavenization steps, including the pom.xml output. It omits return value details and overwrite behavior, but these are minor gaps in a pipeline context where the primary purpose is well communicated.

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?

All five parameters are fully described in the schema (100% coverage), so a baseline of 3 is appropriate. The description adds little beyond the schema, as it merely references 'outputsDir' and 'targetMavenDir' without explaining parameter nuances or relationships.

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 specifies the tool's function: evaluating decompiled outputs against AST structure, line count, and compiler warnings, selecting the best candidate, and structuring it into a Maven project. This distinctively separates it from sibling tools like analyze_decompilation_output and compile_maven_project.

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?

The description implies the tool is used after decompilation when multiple candidate outputs exist, and it produces a Maven project. It provides clear context but does not explicitly state when not to use it or name alternative tools for similar evaluation/selection tasks.

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