Skip to main content
Glama
Mai-xiyu

Minecraft 1.21.1 Forge/NeoForge MCP Server

by Mai-xiyu

generate_block

Create custom Minecraft block Java code for Forge or NeoForge, including optional BlockState properties and BlockEntity support.

Instructions

Generate block code with optional BlockEntity and BlockState properties.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameYesBlock name in PascalCase (e.g. MyCustomBlock)
modIdYesMod ID
loaderYesTarget mod loader
hasStateNoGenerate BlockState properties
materialNoBase block to copy properties from (e.g. Blocks.STONE)
packageNameYesJava package
hasBlockEntityNoGenerate matching BlockEntity

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.2/5.0
Behavior2/5

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

No annotations are provided, so the description must carry the behavioral disclosure burden, but it only says 'Generate block code' without detailing side effects such as file creation, overwriting behavior, or required environment. The term 'Generate' hints at a write operation, but the description fails to specify permissions, reversibility, or output characteristics.

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 a single front-loaded sentence with no filler; every word earns its place. It efficiently states the core function and the optional parameters without redundancy.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a code generation tool with 7 parameters, no annotations, and no output schema, the description is too sparse to be fully actionable: it does not state what the generated code looks like, what the tool returns, or whether it writes files. Combined with the schema it covers parameter semantics, but behavioral and usage context remain missing.

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

Parameters3/5

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

The input schema describes all 7 parameters with 100% coverage, so the baseline is 3. The description's mention of optional BlockEntity and BlockState properties loosely maps to the hasBlockEntity and hasState parameters, but it does not add meaning beyond what the schema descriptions already provide.

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 uses the specific verb 'Generate' with the resource 'block code' and explicitly mentions optional BlockEntity and BlockState properties, distinguishing it from sibling tools like generate_item and generate_entity. This is a precise verb+resource combination that immediately clarifies the tool's role.

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

Usage Guidelines2/5

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

The description provides no explicit guidance on when to use this tool versus alternatives, nor does it state when not to use it. While the name and 'block code' imply use for block generation, there are no prerequisites, exclusions, or comparisons to sibling generation tools.

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