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

@adhisang/minecraft-modding-mcp

by adhi-jp

source-search

Read-only

Search a Minecraft artifact's indexed source for declarations, file contents, or paths to locate symbols and code across versions, mod JARs, or workspaces.

Instructions

Search one artifact's indexed source: declarations by name (intent symbol, default), file text (text) or file paths (path). status: ok, not_found, partial (search incomplete) or unavailable (no hit and query not translated from mapping, or a Jar-in-Jar shell). Pages with cursor. Example: {"target":{"kind":"version","version":"1.21.10"},"query":"BlockPos"}

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>",
      "query": "<query>"
    },
    "name": "source-search"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoHits per page; default 20, at most 100 with match "regex".
matchNoexact is case-sensitive; text intent treats prefix as contains.prefix
queryYes
cursorNometa.pagination.nextCursor of the same search.
detailNosummary drops context; full adds score, reasonCodes, artifactContents.standard
intentNosymbol: declarations by name; text: file contents; path: file paths.symbol
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.
mappingNoNamespace of the query; hits keep the artifact's namespace.
fileGlobNoe.g. "net/minecraft/world/**/*.java".
queryModeNoText intent: auto and token search the index; literal scans every file.auto
symbolKindNoOnly with intent "symbol".
packagePrefixNoe.g. "net.minecraft.world.item".
matchesPerFileNoText intent: matching lines listed per file; default 5.

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?

Beyond readOnlyHint, the description discloses the result status vocabulary (ok, not_found, partial, unavailable), explains that 'partial' means an incomplete search and 'unavailable' covers untranslated mapping queries or Jar-in-Jar shells, and notes cursor pagination. It stops short of describing the hit payload shape, which matters since no output schema exists.

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?

Dense but front-loaded: purpose first, then intents, then status semantics, then pagination, then an example. Parenthetical glosses carry real information rather than filler, though the single run-on paragraph is harder to scan than a short bulleted form would be.

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?

For a 13-parameter tool with a nested target object and no output schema, the description covers the essentials an agent needs: modes, status outcomes, paging and a worked example. Gaps remain around how 'mapping' changes results and what a full hit contains.

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 already 92%, so the baseline is 3; the description still adds meaning by restating intent semantics in plain language and supplying a concrete target/query example for a nested object with six kinds. It leaves the mapping, scope and queryMode nuances almost entirely to 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?

Opens with a specific verb and resource ('Search one artifact's indexed source') and immediately enumerates the three search modes (symbol declarations, file text, file paths). The 'one artifact' scoping implicitly separates it from broader searches, though no sibling tool is named outright.

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 three intents give clear guidance on which search mode to pick, and the status explanations hint at when results are incomplete. However, there is no explicit when-to-use guidance relative to alternatives like source-read, source-export or class-find, so the agent must infer routing.

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