Skip to main content
Glama
okenjioxx

Roblox Executor MCP Server

by okenjioxx

Wrap a C closure as a Luau closure and retain it

new-l-closure
Read-onlyIdempotent

Creates a reusable closure reference from a Luau function path, stores the wrapper in getgenv().__mcp_closure_refs, and returns closure metadata.

Instructions

Call newlclosure(function) and store the wrapper under getgenv().__mcp_closure_refs, returning a reusable Reference expression and closure metadata. Signature: { functionPath: string, threadContext: number?, key: any? }. Phase: observe; cost=medium; idempotency=read-only. Requires: active-client, resolved-target. Capabilities: debug closure primitives. Produces: created-handle. Safety: read-only. On failure: inspect tool-schema for exact fields, defaults, constraints, and an invocation example.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
keyNoOptional stable key for getgenv().__mcp_closure_refs. Generated when omitted.
functionPathYesLuau expression resolving to the target function.
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

A3.7/5.0
Behavior4/5

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

The annotations already declare readOnly/idempotent/non-destructive, so the bar is lower, and the description still adds substantive behavior: the wrapper is stored under getgenv().__mcp_closure_refs, it yields a reusable Reference expression plus metadata, and it produces a created-handle. It does not say how that handle is later released (a sibling, release-closure-reference, exists), but the key side effect and return shape are disclosed.

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?

The core action and storage location are front-loaded in the first sentence, followed by compact labeled facts (Phase, Requires, Capabilities, Produces, Safety). The trailing 'On failure: inspect tool-schema...' line is boilerplate-ish but brief, and nothing is padded.

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?

With no output schema, the description carries the burden of describing returns and it does (Reference expression plus closure metadata). Preconditions, side effects, and safety are covered; the only real gap is lifecycle guidance on releasing the retained reference.

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 all three parameters are documented in the schema, so the baseline is 3. The description only echoes the signature ({functionPath, threadContext, key}) without adding semantics such as what threadContext defaults to or what makes a good key, leaving the schema to carry the load.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description names the concrete action (call newlclosure, store the wrapper, return a reusable Reference expression plus closure metadata), which is specific and distinguishes it from analysis-only siblings like inspect-closure. It never states the C-closure-to-Luau-closure direction or the target-creation nature that the title carries, so an agent reading only the description could confuse it with the is-c-closure / new-c-closure family.

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?

It supplies preconditions (active-client, resolved-target, phase=observe, cost=medium) and a fallback pointer ('inspect tool-schema for exact fields'), which is real usage context. It never says when to prefer this over siblings such as new-c-closure, call-closure, or list-closure-references, nor when not to use it, so the guidance remains implied rather than routing.

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