Skip to main content
Glama
Mai-xiyu

Minecraft 1.21.1 Forge/NeoForge MCP Server

by Mai-xiyu

generate_item

Generate Minecraft Forge/NeoForge item Java code with optional food properties. Specify name, mod ID, package, loader, and stack size to produce ready-to-use item class.

Instructions

Generate item code with optional food properties.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameYesItem name in PascalCase (e.g. MyCustomItem)
modIdYesMod ID
isFoodNoGenerate food properties
loaderYesTarget mod loader
packageNameYesJava package
maxStackSizeNoMax stack size

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.1/5.0
Behavior2/5

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

With no annotations provided, the description carries the full burden of disclosing behavioral traits such as file writes, project requirements, or output format. It only says 'Generate item code,' which implies producing code but does not state whether files are created, whether an existing mod project is required, or what side effects occur.

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 description is a single front-loaded sentence with no filler or redundant phrasing. It could be slightly more informative, but as a concise structure it is effective.

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?

The schema documents all six parameters, but there is no output schema and the description does not explain what 'generating item code' entails in practice, such as whether it writes into an existing project, what files are produced, or whether a prior generate_mod_project invocation is required. For a code-generation tool with side effects, this is an incomplete picture.

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?

Schema description coverage is 100%, so the baseline of 3 applies. The description's phrase 'optional food properties' maps to isFood but adds no detail beyond the schema's own description. No paramater semantics beyond the schema are provided.

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 a specific verb 'Generate' with a clear resource 'item code', and calls out the optional food-property behavior associated with isFood. It is easily distinguished from sibling generators like generate_block and generate_entity by the resource name.

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 gives no guidance on when to use this tool versus alternatives, and no exclusions or prerequisites are stated. Sibling tools like generate_mod_project and generate_block suggest a shared code-generation context, but the agent is left to infer whether this tool should be used first, after project generation, or instead of another generator.

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