Skip to main content
Glama

George Engineer: Luau static analysis

george_review_luau

Review Luau source code for Roblox issues like deprecated APIs, unprotected DataStore calls, unvalidated RemoteEvent handlers, and frozen loops; returns errors and concrete fixes.

Instructions

Roblox-specialised code review: deprecated APIs (wait/spawn/delay), unprotected DataStore calls, unvalidated RemoteEvent handlers, frozen while-true loops, globals leaking, chat-ignoring input handlers, loadstring/env access and debug leftovers. Errors fail the review; suggestions include concrete fixes.

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": {
      "source": "<source>"
    },
    "name": "george_review_luau"
  }
}

Input Schema

NameRequiredDescriptionDefault
sourceYesLuau source code to review

Output Schema

NameRequiredDescriptionDefault
errorsYes
issuesYes
passedYes
summaryYes
warningsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.2

TDQS

A4/5.0
Behavior4/5

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

With no annotations supplied, the description carries the full burden and does meaningful work: it discloses the severity contract (errors fail the review, suggestions include concrete fixes), which tells the agent how to interpret results and what remediation text to expect. It does not state whether reviewed code is executed or sandboxed, or whether output is deterministic, which are the remaining behavioral gaps.

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?

Two sentences, no filler: the first front-loads the domain and the checklist of checks, the second delivers the severity contract. Every clause maps to a distinct review category rather than restating the title.

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?

An output schema exists, so return-value shape needn't be explained, and the description covers both what is inspected and how severity is graded. It is nearly complete for a one-parameter analyzer; only the isolation/sandboxing behavior of the reviewed code is left unstated.

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% with a single required 'source' parameter already described as 'Luau source code to review', so the schema does the heavy lifting and baseline 3 applies. The description adds no extra meaning about input format, file size limits, or whether multiple modules can be passed.

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 names a specific verb and resource ('code review') and immediately narrows it to 'Roblox-specialised', then enumerates the exact defect classes checked (deprecated APIs, DataStore, RemoteEvent handlers, infinite loops, globals, loadstring/env, debug leftovers). This is clearly distinct from the generation-oriented siblings such as george_generate_luau.

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

Usage Guidelines3/5

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

Usage is implied by the enumerated check list and the 'Errors fail the review' severity model, so an agent can infer this is a pre-commit/lint-style pass over Luau source. However, there is no explicit statement of when to reach for this versus george_generate_luau or george_audit_gui, and no exclusions or prerequisites.

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