Skip to main content
Glama

get_local_lua_reference

Read-onlyIdempotent

Read the current Nightbreak Forge local Lua validator/editor reference. Use this to see which hooks, fields, methods, exact values, and handle helpers the editor currently knows about. Pass script_type matching the file you are working on: "lua-power" (default, EliteMobs boss powers — includes context handles, em, and exact values), "fmm-script" (FMM props), or "npc-script" (EliteMobs NPC scripts in npc_scripts/), or "mind-behavior" (EliteMobs Mind AI programs in behaviors/, selected by a boss's behavior field), "fmm-pet-behavior" (FreeMinecraftModels pet behavior modules in pet_behaviors/, id fmm:pet/<file name>; loaded from FMM 2.13.0), or "em-enchantment-script" / "fmm-enchantment-script" (the Lua effect of an EliteMobs or FreeMinecraftModels enchantment in enchantments/). Each returns that script type's own hooks and context.* namespaces — the boss reference does NOT contain NPC, FMM, Mind or enchantment APIs, so query the matching type.

Input Schema

NameRequiredDescriptionDefault
scopeNoOptional scope. For lua-power: "hooks", "context", "boss", "player", "event", "script", "handles", "em", or "values". For fmm-script/npc-script: "hooks", "context", or a context namespace name (e.g. "npc", "player", "prop", "projectile").
script_typeNoWhich script type's reference to return. Defaults to "lua-power".

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false, so the safety profile is covered. The description adds useful context — that the reference reflects what 'the editor currently knows about' and that references are type-partitioned rather than universal — but says nothing about size, format, or how to detect an unknown type.

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?

Purpose and the script_type instruction are front-loaded and every sentence is load-bearing. The parenthetical per-type details make it denser than ideal, but the content is necessary routing information rather than filler.

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

Completeness5/5

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

For a parameterless-default reference lookup with no output schema, the description tells the agent what each call will return (that type's hooks and context.* namespaces) and how to avoid cross-type confusion. Nothing needed to invoke it correctly is missing.

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 100%, so baseline is 3, but the description meaningfully enriches script_type by mapping each enum value to a concrete script location and API surface — far more than the schema's one-line default note. scope semantics are largely left to the schema.

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?

States a specific verb and resource ('Read the ... local Lua validator/editor reference') and enumerates exactly what it contains (hooks, fields, methods, exact values, handle helpers). It is clearly distinct from siblings such as validate_lua_power_draft or fetch_wiki_page.

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

Usage Guidelines5/5

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

Gives explicit routing: 'Pass script_type matching the file you are working on', names each type with the directory/file it maps to, and warns that the boss reference does NOT contain NPC/FMM/Mind/enchantment APIs. The when-to-use condition is spelled out rather than implied.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources