Skip to main content
Glama
okenjioxx

Roblox Executor MCP Server

by okenjioxx

Compile a workspace Luau file without running it (UNC loadfile)

load-file
Read-onlyIdempotent

Compile a Luau file from the executor workspace without running it to verify that it parses and surface syntax errors. Returns compiled status and any error string.

Instructions

Compile a Luau file from the executor's workspace into a function WITHOUT executing it, to verify that it parses and to surface any syntax error. NOTE: this is executor-side file I/O — the connector runs INSIDE the executor, so the path is relative to the executor's workspace directory on the host machine, NOT the Roblox game. This tool intentionally does NOT call the compiled function; it only reports whether compilation succeeded. Requires the UNC function loadfile(path) -> (fn?, err?). The call is type-guarded and pcall-wrapped: if loadfile is missing you get { error = 'loadfile is not available in this executor.' }. On a compile error loadfile returns nil plus an error string, surfaced as { compiled = false, error }. Returns { path, compiled, error? } or { error }. Signature: { path: string, threadContext: number?, timeoutMs: number? }. Phase: observe; cost=medium; idempotency=read-only. Requires: active-client, resolved-target. Capabilities: readfile. Produces: structured-result. Safety: read-only. On failure: inspect tool-schema for exact fields, defaults, constraints, and an invocation example.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathYesPath to the Luau file within the executor workspace to compile-check, e.g. 'scripts/main.lua'.
timeoutMsNoOptional per-call deadline in milliseconds; omit it to use the tool or server default.
threadContextNoOptional Roblox thread identity for this call; omit it to use the server default.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.0.0-spies.2

TDQS

A4.5/5.0
Behavior5/5

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

Adds substantial value beyond annotations: the path is host-side executor I/O relative to the workspace, not the Roblox game; it requires UNC loadfile and is type-guarded/pcall-wrapped; missing loadfile yields a specific error object; compile failure yields { compiled=false, error }. Annotations only cover the read-only safety profile, so this extra context is genuinely informative.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The core is front-loaded and well structured, but the definition is long and its metadata tail ('Phase: observe; cost=medium; idempotency=read-only... Safety: read-only') partly duplicates annotations and the schema signature, and the 'On failure: inspect tool-schema' line is boilerplate. Efficient in places, padded in others.

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?

With no output schema, the description supplies return shapes ({ path, compiled, error? } / { error }) and both failure modes. Prerequisites (active-client, resolved-target) and the readfile capability are noted. An agent has everything needed to invoke and interpret the call.

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 clarifies path semantics well beyond the schema ('relative to the executor's workspace directory on the host machine, NOT the Roblox game'). It also lists type/default notes for threadContext and timeoutMs, adding modest value over 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 ('Compile a Luau file from the executor's workspace into a function') plus a scope qualifier ('WITHOUT executing it'). This clearly separates it from execute-file/run-luau, which would actually run the code.

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?

Gives a clear use condition ('to verify that it parses and to surface any syntax error') and an implicit exclusion ('intentionally does NOT call the compiled function'). It stops short of naming the sibling to use when you DO want execution, but the context is unambiguous.

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

Deploy Server

Other Tools