Skip to main content
Glama
okenjioxx

Roblox Executor MCP Server

by okenjioxx

Clone a function and retain a reusable closure reference

clone-function
Read-onlyIdempotent

Clone a Luau function and return a reusable reference for later MCP calls, since function values cannot be passed through JSON.

Instructions

Clone a function with clonefunction/clonefunc. The function result is retained in getgenv().__mcp_closure_refs and returned as a reusable Reference expression because functions cannot cross JSON. Signature: { functionPath: string, threadContext: number?, key: any? }. Phase: observe; cost=medium; idempotency=read-only. Requires: active-client, resolved-target. 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.9/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-destructive, closed-world), so the bar is lower, and the description earns credit by disclosing the non-obvious retention mechanism: results land in getgenv().__mcp_closure_refs because functions can't cross JSON. It also names a produced handle type, though it doesn't explain lifecycle/release of the handle.

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?

Front-loads the purpose in the first sentence, then packages operational metadata into compact semicolon-delimited clauses. Information-dense with little waste, though the trailing 'On failure: inspect tool-schema...' clause is generic boilerplate.

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?

Despite no output schema, the description explains the return value (a reusable Reference expression stored in a named global), covers prerequisites, and flags a failure fallback. Complete enough for a 3-param tool, with only minor gaps around handle lifecycle.

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 each parameter is well documented in the schema, so baseline 3 applies. The description's signature line (functionPath, threadContext, key) merely restates what the schema already provides and adds no new semantic detail.

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 (clone) and resource (function) and explains the mechanism and outcome: the result is retained in getgenv().__mcp_closure_refs and returned as a reusable Reference. This is clearly distinct from sibling closure tools (inspect-closure, get-closure-protos, invoke-closure), which don't produce reusable handles.

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?

Provides operating context via 'Phase: observe', 'Requires: active-client, resolved-target', and 'Produce: created-handle', which imply when the tool is usable. However, it never states when to prefer ou clone-function over alternatives like inspect-closure or get-closure-protos, nor any exclusions, so it only implies usage 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