Skip to main content
Glama

Execute Code in the Roblox Game Client

execute

Execute Luau 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
codeYesThe code to execute in the Roblox Game Client. This tool does NOT return output - use get-data-by-code if you need to retrieve data.
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 provided, the description carries the full burden of behavioral disclosure. It clearly discloses that no output is returned and that effects must be verified through separate tools, which is non-obvious and useful. It does not mention side-effect risk or error handling, but the execution context is explicit enough that this is a minor gap.

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 dense sentences deliver the purpose, the no-return behavior, the alternative tool, and a verification strategy with no filler or repetition. The most important constraint, lack of return output, is front-loaded.

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?

The definition gives an agent enough to invoke the tool correctly: what code runs, where it runs, what is not returned, and how to confirm the effect. It could more explicitly warn about irreversible game-state mutation or require an active client to be set, but the sibling set and the word 'active' provide sufficient context.

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 the parameter descriptions already provide meaningful detail: code is described as non-returningasi and threadContext has a default and a real-world example. The prose description does not add new parameter-level semantics beyond the schema, so the baseline score 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?

The description states a specific action, 'Execute Luau', identifies the target, 'the active Roblox client', and adds a key qualifier, 'without returning output', that clearly differs from get-data-by-code. This makes the tool's purpose and scope immediately distinguishable from siblings.

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?

The description explicitly tells the agent to use get-data-by-code instead when returned values are needed, which is clear alternative routing. It also prescribes a follow-up verification pattern using get-console-output or a targeted get-data-by-code probe, giving practical when-to-use guidance.

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