Skip to main content
Glama
gogainda

jar-tools-mcp

by gogainda

scan_jar_security

Scan local jar, zip, or class files for supply-chain security risks. Detects suspicious classes related to network activity, file access, process execution, and obfuscated code to help audit dependencies before adding to a build.

Instructions

Run jar.tools' static security scan on a local .jar/.zip or .class file. Returns structured findings — suspicious-class counts by category (network activity, file access, process execution, hard-to-review/obfuscated code) plus decompiler-anomaly signals. Useful for auditing a dependency before adding it to a build, or investigating a suspicious plugin/mod. Static analysis only — the file is never executed. Free for .jar/.zip up to 64MB and .class up to 5MB; pass a Pro license_key to raise the JAR size cap to 256MB.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
file_pathYesPath to a local .jar, .zip, or .class file to scan.
license_keyNoOptional jar.tools Pro license key, raises the .jar size cap from 64MB to 256MB. Falls back to the JARTOOLS_LICENSE_KEY environment variable if not provided.
Behavior5/5

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

No annotations provided, so description carries full burden. It discloses that analysis is static-only ('the file is never executed'), which is critical safety info. Also describes output structure and size constraints. Fully transparent.

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?

Four sentences, each serving a purpose: main action, output description, use case, and constraints. No wasted words. Front-loaded with the most important information.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

No output schema, but description explains the structured findings in enough detail. Covers purpose, usage context, constraints, and output format. Agent can fully understand what the tool does and what to expect without needing additional information.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema has 100% coverage with descriptions for both parameters. The description adds extra context beyond the schema, e.g., explaining license key fallback to environment variable and size cap details. This enriches parameter understanding beyond the schema's minimal descriptions.

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?

Starts with a clear verb and resource: 'Run jar.tools' static security scan on a local .jar/.zip or .class file.' No sibling tools listed, so no confusion. Directly states the tool's core function.

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?

Explicitly states when to use: 'Useful for auditing a dependency before adding it to a build, or investigating a suspicious plugin/mod.' Also notes size limits and license upgrade, but does not explicitly tell when not to use it. Still, the guidance is clear and actionable.

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/gogainda/jar-tools-mcp'

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