Skip to main content
Glama
ZTUmber

datapack-check-mcp

by ZTUmber

Check datapack project

check_project

Validate Minecraft datapack files by running Spyglass checks across all .mcfunction, JSON, .mcmeta, .snbt, and .mcdoc files. Returns diagnostics for syntax, schema, and reference errors.

Instructions

Run Spyglass (Datapack Helper Plus engine) on every .mcfunction, pack JSON, .mcmeta, .snbt, and .mcdoc file under a datapack workspace. Pass the pack root (folder with pack.mcmeta) or a parent folder. First run may download the vanilla cache and take a few minutes.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
rootNoDatapack or workspace root. Defaults to DATAPACK_WORKSPACE or the current working directory.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4/5.0
Behavior2/5

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

With no annotations, the description carries full behavioral burden. It only discloses that the first run may download a cache and take time. It does not state whether the tool is read-only, modifies files, requires specific permissions, or what side effects result. This is a significant gap for an agent deciding whether to invoke it.

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?

The description is two sentences with zero waste. The main purpose is front-loaded, followed by specific parameter guidance and a behavioral warning. It is efficient and easy to scan.

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?

It covers what, how, and a caveat about first-run performance, but lacks information about the output format or what the agent should expect in the response (e.g., a report, exit code). For a tool with no annotations and no output schema, this is a notable omission.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The schema description for 'root' has 100% coverage and is clear ('Datapack or workspace root. Defaults to...'), and the tool description adds extra context ('folder with pack.mcmeta or a parent folder'). This fully clarifies what to pass and its optionality.

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?

The description states a specific verb ('Run Spyglass') on a specific resource ('every .mcfunction, pack JSON, .mcmeta, .snbt, and .mcdoc file') with a scope ('under a datapack workspace'). This clearly distinguishes it from a sibling like check_file, which focuses on a single file. The purpose is unambiguous.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides clear usage context: it tells the agent what to pass ('the pack root... or a parent folder') and implies it is for whole-project checking rather than single files. However, it does not explicitly state when NOT to use it or name the sibling alternative, leaving that to inference from the name.

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

Deploy Server

Other Tools