Skip to main content
Glama
okenjioxx

Roblox Executor MCP Server

by okenjioxx

Evaluate a single Luau expression

eval-expression
Read-onlyIdempotent

Evaluate a single Luau expression on the active Roblox client and return its type plus encoded value, with pcall-guarded errors for safe, read-only quick reads.

Instructions

Evaluate ONE Luau expression on the active client and return its typeof plus an encoded value. Convenience wrapper over run-luau for quick reads like 'workspace.Gravity', '#game.Players:GetPlayers()', or 'game.PlaceId'. The expression is pcall-guarded, so a runtime error is reported as { ok = false, error } instead of failing the call. Pass an expression, not statements (no 'return', no ';'). Note: this is PURE Luau — to compose with other server tools (e.g. mcp.getPlayers(), mcp.searchInstances({...})) use the script tool instead. Signature: { expression: string }. Phase: observe; cost=medium; idempotency=read-only. Requires: active-client. 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
expressionYesA single Luau expression to evaluate (e.g. 'workspace.Gravity', 'game.PlaceId').

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.0.0-spies.2

TDQS

A4.8/5.0
Behavior5/5

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

Annotations cover safety (readOnly/destructive/idempotent/openWorld), but the description adds substantial context beyond them: pcall guarding, the exact failure representation ({ ok = false, error }), purity (PURE Luau), the active-client requirement, and a stated cost/phase. This is materially more than the annotations convey.

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-loaded with the core purpose and a concrete example before the constraints. It trail-loads some metadata (Phase/cost/idempotency/Safety) that partly duplicates the annotations, but it is well organized and most sentences earn their place.

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 carries the return-value burden and does so: typeof plus encoded value, and the error envelope on failure. It also names the active-client prerequisite and the fallback tool, so nothing needed to call it correctly is missing.

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 the schema already documents the single `expression` param and the baseline would be 3. The description adds real semantic value the schema lacks: it must be an expression, not statements, and no 'return' or ';' are permitted. That constraint meaningfully raises it above baseline.

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 (Evaluate) and resource (ONE Luau expression) with the return shape ('typeof plus an encoded value'). It explicitly positions itself against siblings, calling out run-luau and the `script` tool by name, so an agent can distinguish it without opening a schema.

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?

Gives explicit when-to-use ('quick reads like workspace.Gravity'), when-not with alternatives ('to compose with other server tools ... use the `script` tool instead'), and a hard input constraint ('pass an expression, not statements'). This is the full when/when-not/alternatives triad.

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