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

@adhisang/minecraft-modding-mcp

by adhi-jp

file-read

Read-only

Read a single source, resource, or data file from a Minecraft artifact by its internal path, with optional byte limits and truncation reporting.

Instructions

Read one file inside an artifact by its path: a source file, or a resource or data file of the backing jar. maxBytes caps the returned content; a cut is reported in meta.truncation. Example: {"target":{"kind":"version","version":"1.21.10"},"filePath":"net/minecraft/world/item/Item.java"}

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>",
      "filePath": "<filePath>"
    },
    "name": "file-read"
  }
}

Input Schema

NameRequiredDescriptionDefault
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.
filePathYesPath inside the artifact, e.g. "net/minecraft/world/item/Item.java".
maxBytesNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv9.0.0-rc.0

TDQS

A3.7/5.0
Behavior4/5

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

The readOnlyHint is consistent with the described read behavior, and the description adds real context beyond the annotation: maxBytes caps returned content and a cut is signalled via meta.truncation. It stops short of stating error behavior for a missing path or what the content itself looks like.

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?

Three compact sentences with the core purpose front-loaded, followed by the truncation rule and a concrete example. The inline JSON example earns its place by showing a realistic target/filePath pairing, though it makes the sentence long.

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?

With no output schema, the description carries the burden of describing return shape, yet only meta.truncation is mentioned; the content field and any metadata about the file are undocumented. For a simple read tool with a well-described nested target schema this is workable, but not complete.

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 67%, and the description fills the biggest gap: maxBytes has no schema description, but the text explains it caps returned content and that overshoot is reported in meta.truncation. The path concept is reinforced by the example, though the multi-kind target object is left entirely to the schema's own description.

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 ('Read one file inside an artifact by its path') and scopes what counts as a file: source, resource, or data file of the backing jar. It implicitly distinguishes itself from list-style siblings by emphasizing 'one file', but never names file-list or source-read to make the distinction explicit.

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 only implied: a single-file read with a byte cap. The description gives no guidance on when to prefer this over file-list, source-search, or source-read, and states no exclusions or preconditions (e.g. needing a resolved artifact).

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