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

@adhisang/minecraft-modding-mcp

by adhi-jp

mixin-verify-target

Read-only

Verifies that a mixin target method or field exists in a Minecraft jar's bytecode, resolves namespaces, and flags ambiguous overloads or missing members.

Instructions

Check that a mixin target method or field exists in the jar's bytecode, with @Shadow/@Accessor/@Invoker advice. Names are translated to the artifact's namespace (autoRemap). status: ok, ambiguous (overloads; add descriptor), not_found. Example: {"target":{"kind":"version","version":"1.21.10"},"className":"net.minecraft.world.entity.Entity","kind":"method","memberName":"tick","mapping":"mojang"}

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>",
      "className": "<className>",
      "kind": "<kind>",
      "memberName": "<memberName>",
      "mapping": "<mapping>"
    },
    "name": "mixin-verify-target"
  }
}

Input Schema

NameRequiredDescriptionDefault
kindYesKind of the target member.
targetYesFields per kind (?=optional): version: version,projectPath?,scope?; jar: jarPath; coordinate: coordinate; workspace: projectPath,scope?; dependency: group,name,dependencyVersion|projectPath. Other fields rejected.
mappingYesNamespace of className, memberName and descriptor.
autoRemapNoTranslate the names into the artifact's namespace.
classNameYesFully qualified class the mixin targets.
descriptorNoJVM descriptor, e.g. "()V"; omitted: any.
memberNameYesThe member's simple name.
mixinMemberNameNoYour mixin member's name; refines the advice.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv9.0.0-rc.0

TDQS

A3.8/5.0
Behavior4/5

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

Annotations only declare readOnlyHint=true, so the description carries the rest of the burden and does so well: it discloses namespace translation (autoRemap), the three possible status outcomes (ok, ambiguous, not_found), and the fact that ambiguous results are caused by overloads and resolved by supplying a descriptor. It stops short of describing the advice text format or what happens on not_found.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The first sentence front-loads the purpose, and the status enumeration follows logically. The trailing example JSON is long and restates schema content, but it does compactly demonstrate a valid version-target call, so the space is largely earned.

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 eight parameters, a nested target object, and no output schema, the description covers what an agent needs: the operation, the namespace-translation behavior, and the status vocabulary it will get back. The enumerated statuses effectively substitute for an output schema; only the shape of the advice payload is left unstated.

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; the description still adds real meaning by explaining that autoRemap translates names into the artifact's namespace and that descriptor is the disambiguator for overloads. The example object also clarifies how target/kind/memberName/mapping combine in practice.

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?

The description opens with a specific verb and resource: checking that a mixin target method or field exists in the jar's bytecode, including @Shadow/@Accessor/@Invoker advice. That is concrete enough to act on, though it never names a sibling tool (e.g. symbol-check, member-list, mixin-validate) to differentiate itself explicitly.

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: the mention of @Shadow/@Accessor/@Invoker advice hints that this is a pre-flight check before writing mixin members, and the 'ambiguous (overloads; add descriptor)' note gives a concrete remediation path. There is no explicit when-to-use/when-not-to-use guidance and no named alternative for related verification tasks.

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