Skip to main content
Glama
sapyyy

Java JAR Decompiler & Reverse Engineering MCP Server

by sapyyy

compare_bytecode_and_analyze

Compare original JAR bytecode against recompiled mavenized source to measure percentage match, business context similarity, and variable readability, outputting a text log report.

Instructions

Performs ASM bytecode analysis comparing the original JAR against the recompiled mavenized source, outputting percentage match, business context similarity, and variable readability scores into a text log.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
logPathNoPath to output comparison report file. Defaults to logs/bytecode_comparision.txt.
mavenDirNoPath to the mavenized project directory. Defaults to mavenized_merged_source.
asmJarPathNoPath to ASM library JAR file. Defaults to asm-bytecode-analysis/asm-9.10.1.jar.
originalJarPathNoPath to the original JAR file. Defaults to targeted-jars/commons-io-2.22.0.jar.
Behavior2/5

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

No annotations are provided, so the description must disclose behavioral traits. It mentions outputting to a text log and the types of scores, but it does not state whether the tool creates or overwrites files, or if any side effects occur. The description lacks details about resource usage, error handling, or required permissions, leaving uncertainty 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, information-dense sentence with no filler. It front-loads the core action (ASM bytecode analysis) and lists all key output metrics. Every clause earns its place, making it both concise and structured.

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?

The description covers the core purpose and output sufficiently, mentioning the comparison targets and the scores written to a text log. With no output schema, it explains what the tool produces. However, it could benefit from explicitly stating the relationship to prior steps (e.g., mavenization/recompilation) and any prerequisites, but given the schema defaults and clear behavior, it is largely complete.

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 fully describes all four parameters with defaults (logPath, mavenDir, asmJarPath, originalJarPath), achieving 100% schema coverage. The description provides no additional parameter-specific semantics, so the baseline of 3 is appropriate since the schema already carries the detail.

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's function: 'Performs ASM bytecode analysis comparing the original JAR against the recompiled mavenized source' and specifies the exact outputs (percentage match, business context similarity, variable readability scores). This specific verb+resource combination distinguishes it from siblings like 'analyze_decompilation_output' which focuses on decompilation rather than bytecode comparison.

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 usage after the mavenized source has been recompiled, as it compares the original JAR against the recompiled source. However, it does not explicitly state when to use this tool versus alternatives, nor does it mention exclusions or prerequisites. The context is clear but not directly articulated.

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