Skip to main content
Glama
@adhisang/minecraft-modding-mcp

@adhisang/minecraft-modding-mcp

by adhi-jp

source-export

DestructiveIdempotent

Export decompiled Java source for 1–50 selected classes from a Minecraft artifact to package-structured files, creating directories and overwriting existing files as needed.

Instructions

Write the Java source of 1-50 classes from one artifact to //.java, creating directories and overwriting existing files; a nested class writes its top-level class's file. Example: {"target":{"kind":"version","version":"1.21.10"},"classes":["net.minecraft.world.item.Item"],"outputDir":"/tmp/src"}

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "target": "<target>",
      "classes": "<classes>",
      "outputDir": "<outputDir>"
    },
    "name": "source-export"
  }
}

Input Schema

NameRequiredDescriptionDefault
modeNoWhat to write: full source (default), snippet or metadata outline.full
targetYesFields per kind (?=optional): artifact: artifactId; version: version,projectPath?,scope?; jar: jarPath; coordinate: coordinate; workspace: projectPath,scope?; dependency: group,name,dependencyVersion|projectPath. Other fields rejected.
classesYes1-50 fully qualified class names, e.g. ["net.minecraft.world.item.Item"].
mappingNoNamespace of the class names; default the artifact's.
outputDirYesDirectory to write into; relative paths resolve against the server's working directory.
allowDecompileNoAllow source decompilation on this call; default true.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv9.0.0-rc.0

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and idempotentHint=true, but the description adds concrete substance beyond them: directories are created, existing files are overwritten, and a nested class writes its top-level class's file. It does not mention the cost/latency of decompilation or that writing happens without polling for existing content, which keeps it off a 5.

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?

One dense sentence covering action, cardinality, path template, directory creation, overwrite behavior, and nested-class handling, followed by a compact example. Front-loaded and free of filler.

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?

For a 6-parameter tool with a nested target object and no output schema, the definition covers the write side well but says nothing about what is reported back (paths written, failures, skipped classes) or what happens when a class cannot be decompiled or resolved. That is a meaningful gap for a destructive file-writing operation with no output schema to lean on.

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 coverage is 100%, so the baseline is 3; the description goes slightly beyond by spelling out how outputDir is composed into a package-path layout and by explaining the nested-class-to-top-level-file rule that governs the classes parameter. The worked example also anchors target/classes/outputDir combinations in a way the schema alone does not.

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?

States a specific verb ('Write the Java source'), the resource (1-50 classes from one artifact), and the exact destination layout '<outputDir>/<package path>/<Class>.java'. The write-to-disk framing cleanly separates it from read-oriented siblings such as source-read and source-search without needing to name them.

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?

Usage is implied rather than stated: an agent can infer this is the tool for materializing source files on disk, and the 'mode' parameter hints at full/snippet/metadata use cases. There is no explicit when-to-use guidance, no mention of when to prefer source-read or source-search instead, and no stated prerequisites (e.g. that decompilation may occur).

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