Skip to main content
Glama
okenjioxx

Roblox Executor MCP Server

by okenjioxx

Find instances that have connections on a named signal

find-instances-with-connections
Read-onlyIdempotent

Scan descendants of a root instance to find which ones have active handlers on a given Roblox signal, returning paths and connection counts.

Instructions

Walk every descendant of a root instance and report which ones have an active handler on a specific signal. For each descendant it reads inst[signalName]; if that member is an RBXScriptSignal with at least one connection (per getconnections), it records { Path, ClassName, ConnectionCount }. Results are sorted by ConnectionCount descending. This answers questions like "which Parts in Workspace have a Touched handler?", "which GuiButtons are wired to Activated?", or "who is listening to Changed under this model?". Requires the executor's getconnections; degrades to a clear { error } if unavailable. Scanning is capped at limit instances to stay responsive on huge games. Returns { Signal, Root, ScannedInstances, Truncated, MatchCount, Instances: [...] }. Signature: { root: any?, signalName: string, limit: any?, threadContext: number? }. Phase: observe; cost=medium; idempotency=read-only. Requires: active-client. Capabilities: getconnections. Produces: bounded-candidates, created-handle. Safety: read-only. On failure: inspect tool-schema for exact fields, defaults, constraints, and an invocation example.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
rootNoLua expression for the root instance whose descendants are scanned (e.g. 'game', 'game.Workspace', 'game.Workspace.Map'). Evaluated as `return <root>`. Defaults to 'game' (scans the whole DataModel up to the limit). Narrow this for faster, more focused scans.game
limitNoMaximum number of descendant instances to SCAN (not match) before stopping. Defaults to 1000. Increase to cover larger hierarchies (slower); decrease for a quick sample. If the scan stops early because this cap was hit, Truncated is true.
signalNameYesREQUIRED name of the signal member to probe on each descendant (e.g. 'Touched', 'Changed', 'ChildAdded', 'Activated', 'OnClientEvent'). Only instances exposing this member as an RBXScriptSignal with >0 connections are reported.
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.4/5.0
Behavior5/5

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

Goes well beyond the readOnly/idempotent annotations by disclosing the dependency on the executor's getconnections, the graceful { error } degradation, the limit-based scan cap that sets Truncated, and the descending sort order. These are the operational traits an agent needs before invoking.

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 first sentences are front-loaded and dense with useful detail, and the return shape is spelled out. However, the trailing metadata block (Phase, cost, Requires, Capabilities, Produces, Safety, On failure) is largely boilerplate that dilutes an otherwise tight 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?

With no output schema, the description compensates by naming every returned field ({ Signal, Root, ScannedInstances, Truncated, MatchCount, Instances }) and explaining failure behavior. For a medium-cost read-only scan tool, nothing essential 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% and the schema already documents root evaluation, the limit-as-scan-cap semantics, and signalName requirements. The description's inline signature and limit note largely restate that, adding little new meaning, so the baseline 3 applies.

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 (walk/report) and resource (descendant instances with active signal connections) and names the exact mechanic (reads inst[signalName], checks getconnections). It is clearly distinguishable from siblings like list-signal-connections or scan-connections-by-source, which operate on a different axis.

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 motivating questions ('which Parts in Workspace have a Touched handler?', 'which GuiButtons are wired to Activated?') that tell the agent when this tool fits. It does not explicitly name when to prefer an alternative such as find-event-connections or list-instance-signals, so no exclusions are stated.

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