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

@adhisang/minecraft-modding-mcp

by adhi-jp

mod-search

Read-only

Search a Minecraft mod JAR's Java source by class, method, field, or content using case-insensitive regex or literal text; binary JARs are decompiled first.

Instructions

Search a mod jar's Java source with a case-insensitive regular expression (else literal text): class names, method and field declaration lines, other lines. A sources jar is read directly; a binary jar is decompiled first (cached; needs Java). Hits: {type, name, file, line?, context?}. Example: {"jarPath":"/mods/example-1.0.0.jar","query":"onInitialize","searchType":"method"}

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": {
      "jarPath": "<jarPath>",
      "query": "<query>"
    },
    "name": "mod-search"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMaximum hits, 1-200; default 50.
queryYesRegular expression, else literal text; case-insensitive; 1-200 characters.
jarPathYesPath to the mod jar, binary or sources.
searchTypeNoclass: class names; method, field: declaration lines; content: other lines; all.all

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv9.0.0-rc.0

TDQS

A4.1/5.0
Behavior5/5

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

Annotations only declare readOnlyHint=true, and the description adds substantial context beyond that: a sources jar is read directly while a binary jar is decompiled first, decompilation is cached, and Java is required. Those are real behavioral traits (latency, environment dependency, cache side effects) that an agent could not infer from the annotation.

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?

Front-loaded with the core action, then the jar-handling caveat, then the return shape, then one worked example. Every clause carries information; nothing is padding.

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?

With no output schema, the description supplies the hit shape {type, name, file, line?, context?}, and it covers the important jar/decompile behavior. It stops short of describing hit ordering, the effect of limit truncation, or failure modes for a missing jar or failed decompile.

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 description coverage is 100%, so the baseline is 3, but the description adds meaning: jarPath may point at either a binary or sources jar, and the difference changes internal behavior. It also restates the regex-else-literal and case-insensitive semantics and maps searchType values, though largely in parallel with the schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource: search a mod jar's Java source with a case-insensitive regex or literal text, across class names, declaration lines, and other lines. Scope is well bounded, but no sibling tool is named, so an agent must infer how it differs from source-search or class-find.

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 by the searchType enumeration and the concrete example (query=onInitialize, searchType=method), which shows a typical invocation. There is no explicit when-to-use versus alternatives, and no statement of when this tool should not be chosen over source-search or class-find.

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