Skip to main content
Glama
okenjioxx

Roblox Executor MCP Server

by okenjioxx

Find identical / duplicated functions (IDA find-identical)

find-duplicate-functions
Read-onlyIdempotent

Scan every Luau function in the GC, hash each with getfunctionhash, and group identical functions to reveal copy-pasted code, duplicate handlers, and repeated module logic.

Instructions

Walk every Luau function in the GC, hash each one with getfunctionhash, and group functions that share the exact same hash — the runtime equivalent of IDA's 'find identical functions'. Reveals clones and copy-pasted code (duplicated module logic, repeated handlers, library functions instantiated many times). Each group reports the shared hash, how many functions carry it, and a few sample functions (ptr/name/source/line). Requires getgc + getfunctionhash; caps the scan and flags truncation. Signature: { minGroup: any?, limit: any?, maxScan: any?, threadContext: number? }. Phase: observe; cost=medium; idempotency=read-only. Requires: active-client. Produces: bounded-candidates. Safety: read-only. On failure: inspect tool-schema for exact fields, defaults, constraints, and an invocation example.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNoMax duplicate groups to return, largest groups first (default 50).
maxScanNoMax GC functions to scan (default 9000).
minGroupNoOnly report hash groups shared by at least this many functions (default 2 = any duplicate).
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.2/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), yet the description adds genuinely new behavior: it caps the scan and flags truncation, declares the producer of bounded candidates, and states the runtime dependencies. The remaining gap is that it doesn't quantify the cap behavior beyond 'caps the scan'.

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 core mechanic in the first clause and keeps the rest dense with useful detail. Minor redundancy exists in the trailing metadata (idempotency and safety both assert read-only), which slightly dilutes an otherwise tight, well-ordered description.

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?

For a read-only scanner with no output schema, the description explains the return shape well (per-group shared hash, function count, sample ptr/name/source/line), the prerequisite APIs, truncation behavior, and failure guidance. Nothing an agent needs 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.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so all four parameters (minGroup, limit, maxScan, threadContext) are already documented with defaults and bounds. The description only restates the signature and gestures at 'caps the scan', adding no semantics beyond the schema — baseline 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?

States a concrete verb+resource and mechanism: walk every Luau function in the GC, hash each with getfunctionhash, group by identical hash. It explicitly anchors the concept ('the runtime equivalent of IDA's find identical functions') and names what it surfaces (clones, copy-pasted module logic, repeated handlers), which cleanly separates it from siblings like find-functions-by-complexity or find-upvalue-sharing.

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 clear context for when the tool is useful ('reveals clones and copy-pasted code') plus operational preconditions (requires getgc + getfunctionhash, active-client) and cost/phase signals. It does not, however, explicitly compare against the many near-neighbour xref/complexity scanners, so the routing decision is inferential rather than spelled out.

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