Skip to main content
Glama

lanhu_generate_unity_prefab

Generate a staged, verified Unity UGUI prefab YAML snapshot from a Lanhu design packet, so UI developers can turn design specs into editable prefabs in a Unity LTS project.

Instructions

Generate a staged, verified UGUI prefab snapshot for a supported Unity LTS project.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
overwriteNoReplace files owned by the same packet manifest.
packet_idYesPacket id returned by lanhu_prepare_design.
asset_rootNoGenerated asset directory below Assets/.Assets/LanhuMCP
prefab_nameNoOptional prefab name.
text_font_guidNoOptional default Unity Font guid from an imported .ttf/.otf asset.
component_policyNoInteractive component policy.conservative
include_referenceNoCopy and include the design reference asset.
prefab_visual_modeNoPrefab visual rendering strategy.layered
text_font_map_jsonNoOptional JSON source-font-name to Unity Font guid mapping.
unity_project_pathYesUnity project root containing Assets and ProjectSettings.
use_text_componentsNoUse editable UnityEngine.UI.Text nodes.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

C2.9/5.0
Behavior2/5

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

With no annotations, the description carries the full disclosure burden, but 'staged, verified' only hints at behavior without explaining what staging or verification entails. It fails to disclose that this tool writes files into the Unity project, including possible overwrites (evidenced by the overwrite parameter). An agent cannot anticipate side effects, Unity installation requirements, or execution traits.

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?

A single 13-word sentence front-loads the verb and core object with zero waste. Every qualifier ('staged,' 'verified,' 'supported Unity LTS') carries distinct meaning, and no sentence repeats schema or annotation content.

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 an 11-parameter tool that writes generated assets into a Unity project and belongs to a five-tool workflow, this description is thin. It omits workflow ordering, disk side effects, and what 'supported Unity LTS' actually means. The output schema covers return values, but the behavioral and workflow gaps leave an agent under-informed for a complex, mutating tool.

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 coverage is 100%, so the baseline is 3 even without parameter detail in the description. The 'UGUI prefab' phrasing loosely contextualizes prefab_name and use_text_components, adding marginal meaning. The description adds no substantive parameter-level insight beyond what the schema already documents.

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?

States a specific verb ('Generate') and resource ('UGUI prefab snapshot') with qualifiers ('staged, verified') that set output expectations. The verb differentiates it from siblings like list/prepare/verify/inspect. However, the 'verified' qualifier creates slight ambiguity with lanhu_verify_unity_prefab, stopping short of a 5.

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?

No guidance on when to use this tool versus siblings; no alternatives or exclusions are mentioned. 'For a supported Unity LTS project' hints at a prerequisite but doesn't explain workflow position relative to lanhu_prepare_design or lanhu_verify_unity_prefab. An agent must infer the workflow from the packet_id parameter description rather than the tool description.

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