Skip to main content
Glama
okenjioxx

Roblox Executor MCP Server

by okenjioxx

Lua memory + GC object census (by type)

get-memory-stats
Read-onlyIdempotent

Report Lua VM heap usage and count GC objects by type to spot leaks, gauge Roblox client memory, or take before/after baselines.

Instructions

In-game memory health probe. Reports the Lua VM's current heap usage via gcinfo() (in KB, guarded) and takes a census of the garbage collector by walking getgc(true) and counting objects by type — function, table, thread, userdata, and other. Optionally adds engine-level memory from game:GetService('Stats') (GetTotalMemoryUsageMb and a few notable categories) when available. Use this to gauge how heavy the client is, to spot a runaway table/closure leak (an unusually large gcObjectCount or byType.table), or to take a baseline before/after running an exploit. The GC walk is capped (maxScan, default 200000) and sets truncated=true if it hits the cap. Requires getgc for the census (reports gcObjectCount=nil if absent); gcinfo and Stats are optional. Returns { luaMemoryKB, gcObjectCount, truncated, byType, engineMemory } or { error }. Signature: { maxScan: any?, threadContext: number? }. Phase: observe; cost=high; idempotency=read-only. Requires: active-client. Produces: structured-observation, diagnostic-report. Safety: read-only. On failure: inspect tool-schema for exact fields, defaults, constraints, and an invocation example.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
maxScanNoMaximum number of GC objects to visit during the census (default 200000). The walk stops at this cap and sets truncated=true; raise it on a very large game if you need an exact count, lower it to bound cost.
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

A4.6/5.0
Behavior5/5

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

Beyond the read-only/idempotent annotations, it discloses real behavior: requires getgc (else gcObjectCount=nil), gcinfo and Stats are optional/degraded gracefully, the walk is capped at maxScan (default 200000) setting truncated=true, and a runaway leak manifests as large gcObjectCount or byType.table. This is rich, non-obvious operational context.

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 what it measures and why, then constraints. The trailing metadata tail (Signature, Phase, Requires, Produces, Safety, On failure) is somewhat verbose and partly redundant with the annotations (idempotency=read-only, Safety: read-only), but 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 fully documents the return shape ({ luaMemoryKB, gcObjectCount, truncated, byType, engineMemory } or { error }), the guard conditions, and the cap behavior, so an agent has everything needed to call and interpret it.

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 baseline is 3, but the description adds meaning: it explains maxScan's default, the cap semantics, and the truncated flag consequence, plus that threadContext is optional. It enriches rather than merely restates the schema.

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?

Specific verb+resource: reports the Lua VM heap via gcinfo() and takes a GC census by walking getgc(true) and counting objects by type. It clearly distinguishes itself from neighboring memory/render tools like measure-memory and get-render-stats by specifying exactly what is measured and returned.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives concrete when-to-use contexts (gauge client heaviness, spot runaway table/closure leaks, take baseline before/after exploits). It does not explicitly name alternative sibling tools such as measure-memory or filter-gc, so it stops short of full routing guidance.

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