Skip to main content
Glama

Execute a Luau file in the Roblox Game Client

execute-file

Execute a local .luau or .lua file in the active Roblox client without returning output. Use get-data-by-code instead when you need returned values. To verify the effect, follow up with a small get-console-output (low limit) or a targeted get-data-by-code probe.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
filePathYesThe absolute path to the .luau or .lua file to execute
threadContextNoThe thread identity to execute the code in (default: 8, normal game scripts run on 2)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior4/5

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

With no annotations, the description carries the full burden. It discloses that no output is returned and that execution happens in the active Roblox client, which is a key behavioral trait. It doesn't cover failure modes or potential side effects on the game state, but the no-return and active-client constraints are clearly stated.

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?

Three sentences, each with a distinct purpose: the core action, the alternative, and the verification step. Front-loaded with the most important information (what it does, no output) and ends with actionable follow-up. Zero waste.

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 simple tool with two parameters and no output schema, the description covers the essential aspects: what it does, when not to use it, and how to verify the outcome. It does not explicitly mention the threadContext parameter's meaning, but that is already in the schema. The absence of error-handling details is minor given the tool's simplicity.

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 description coverage is 100% and both parameters (filePath, threadContext) are already described in the schema. The description adds no additional parameter-specific meaning beyond what the schema provides, so a baseline of 3 is appropriate.

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 (execute) and resource (a local .luau/.lua file) in the active Roblox client, and explicitly notes it returns no output. This clearly distinguishes it from get-data-by-code, which is for returned values, and from other siblings like execute which might be more generic.

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?

Provides explicit guidance: 'Use get-data-by-code instead when you need returned values.' Also recommends follow-up verification with get-console-output or get-data-by-code to confirm the effect, which is actionable and helpful for an agent.

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