Skip to main content
Glama

Compile install.lua

cmo_compile_loader
DestructiveIdempotent

Compile a project's install.lua loader after validating the project. The generated script removes and recreates events, triggers, and Lua actions when run once in Command Lua.

Instructions

Write install.lua for a project. Run that file once in the Command Lua console with the scenario loaded. It removes and recreates the project's events, triggers, and Lua actions. Validate first; compilation is refused when the project has errors.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "directory": "<directory>"
    },
    "name": "cmo_compile_loader"
  }
}

Input Schema

NameRequiredDescriptionDefault
directoryYesProject folder

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already flag destructiveHint=true, so the real credit goes to the description spelling out the blast radius: it removes and recreates the project's events, triggers, and Lua actions — exactly the context an agent needs beyond the boolean. The one weakness is pronoun ambiguity: 'It removes and recreates' could mean the tool at compile time or the generated file at runtime, which matters for deciding when the damage occurs.

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?

Four short sentences, front-loaded with the verb and artifact, then workflow, then effects, then the precondition. Nearly zero waste; only the ambiguous 'It' costs it a point.

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

Completeness4/5

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

For a destructive generator with no output schema, it covers the prerequisite, the runtime step, and the side effects, which is most of what is needed. It leaves open what the call returns (file path vs. generated content) and what happens to an existing install.lua, minor gaps that don't block correct invocation.

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?

There is a single required parameter and the schema already documents it at 100% coverage ('Project folder'). The description says 'for a project' but adds no format, path convention, or constraint beyond the schema, so baseline 3 applies.

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 opens with a specific verb and artifact: 'Write install.lua for a project.' That distinguishes it from the sibling writers (cmo_write_script, cmo_write_action_script) because the output file is named explicitly, so an agent can tell which generator to pick without opening a schema.

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?

It gives clear operating context — compile, then run the file once in the Command Lua console with the scenario loaded — and states a hard prerequisite ('Validate first; compilation is refused when the project has errors'). It stops short of naming cmo_validate_project as the tool to call, so the routing is implied rather than explicit.

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