Skip to main content
Glama
okenjioxx

Roblox Executor MCP Server

by okenjioxx

Find functions that reference an Instance (IDA data xrefs)

find-instance-xrefs
Read-onlyIdempotent

Find every garbage-collected function that references a target Roblox Instance, using its Luau path, by checking upvalues and constants.

Instructions

Resolve a target Instance from a Luau expression, then walk every function in the GC and report which ones hold a reference to it — the runtime equivalent of IDA's data cross-references on a global object. A referrer references the instance if it appears in the function's upvalues OR constants. Answers 'which functions read, manipulate, or watch this object?'. Each xref reports __fnInfo (ptr/name/source/line/nparams/nups) plus 'via' ("upvalue" or "constant"). Requires getgc + getupvalues/getconstants; caps the scan and flags truncation. Signature: { instancePath: string, limit: any?, maxScan: any?, threadContext: number? }. Phase: observe; cost=medium; idempotency=read-only. Requires: active-client, resolved-target. 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 referrer functions (xrefs) to return (default 100).
maxScanNoMax GC functions to scan (default 9000).
instancePathYesLuau expression that resolves to the target Instance, e.g. 'game.Workspace.Boss' or 'game:GetService("Players").LocalPlayer.Character'. Evaluated as `(loadstring('return '..expr))()`; must yield typeof=='Instance' or the tool errors.
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.1/5.0
Behavior4/5

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

Annotations already cover safety (readOnlyHint, idempotentHint, destructiveHint=false), so the bar is lower. The description adds real behavioral context beyond that: the exact referrer-detection rule (upvalue OR constant), the per-xref return shape (__fnInfo fields plus 'via'), and the scan cap with truncation flagging. It stops short of stating expected runtime cost magnitude or what a truncated result looks like structurally.

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 behavioral core is front-loaded and every early sentence earns its place; the signature restatement and boilerplate metadata (Phase/cost/Produces, 'On failure: inspect tool-schema') are somewhat redundant. Still appropriately sized for a medium-cost scan tool.

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?

No output schema exists, and the description compensates by naming the __fnInfo fields and the 'via' discriminator, so an agent knows what comes back. Requirements and constraints are covered; only edge behavior (truncation signal shape, error cases beyond type mismatch) is left implicit.

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 four parameters are documented in the schema, so the baseline is 3. The description adds the important semantic that instancePath is a Luau expression yielding an Instance, but re-lists the signature redundantly rather than clarifying unknown limits beyond the schema (e.g. what threadContext changes).

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 chain (resolve an Instance, walk every GC function, report referrers) and identifies the resource precisely. The IDA data-xref analogy and the 'upvalues OR constants' criterion distinguish it from sibling xref tools like find-upvalue-xref, find-constants-xref, and find-function-xrefs without opening any schema.

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 a clear usage frame ('which functions read, manipulate, or watch this object?') and prerequisites (active-client, resolved-target, requires getgc + getupvalues/getconstants), which tells the agent when it applies. It does not, however, explicitly route the agent away from the narrower per-mechanism siblings (find-upvalue-xref, find-constants-xref) when a single mechanism is what's wanted.

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