Skip to main content
Glama
okenjioxx

Roblox Executor MCP Server

by okenjioxx

WebSocket.connect — open a live WebSocket

ws-connect
Destructive

Opens an outbound WebSocket from the active Roblox client to a live game endpoint, returning an id for send, receive, and close actions.

Instructions

WRITES LIVE GAME STATE — opens a real outbound WebSocket from the client via WebSocket.connect(url). The live socket is parked in a getgenv registry keyed by an integer id (returned as id); use that id with ws-send, ws-receive, ws-close, and ws-list. On connect, ws.OnMessage is wired into a capped (200-frame) ring buffer and ws.OnClose flips the entry's open flag to false, so inbound frames accumulate server-side until you fetch them. Requires the WebSocket library (type(WebSocket)=='table' with WebSocket.connect) — both are type-guarded and the connect is pcall-wrapped, returning { error } when missing or on failure. Returns { id, url } or { error }. Signature: { url: string, threadContext: number? }. Phase: act; cost=medium; idempotency=contextual-write. Requires: active-client, explicit-mutation-approval. Capabilities: WebSocket. Produces: created-handle. Verify with: ws-list. Safety: MUTATING; performs external network or socket I/O. On failure: inspect tool-schema for exact fields, defaults, constraints, and an invocation example.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
urlYesThe WebSocket URL to connect to, e.g. 'ws://127.0.0.1:8080' or 'wss://example.com/socket'.
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 past the annotations (which only mark it non-readonly, destructive, open-world, non-idempotent) by disclosing the 200-frame capped ring buffer, OnMessage/OnClose wiring, the open-flag side effect, the type-guard plus pcall wrapping, and the { id, url } vs { error } return shape. It also flags the mutation approval requirement and external socket I/O, which 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 critical facts (what it opens, the registry id, the downstream siblings) are front-loaded in the first two sentences, and the buffer/pcall behavior follows logically. The trailing block of templated metadata (phase, cost, capabilities, 'On failure: inspect tool-schema...') is partly boilerplate that duplicates annotations, keeping it short of a 5.

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?

There is no output schema, and the description compensates by spelling out the return shape ({ id, url } or { error }) and the id contract used by sibling tools. With annotations covering safety and the schema covering both parameters, nothing an agent needs to call this 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 both url and threadContext are already fully documented in the schema. The description's 'Signature: { url: string, threadContext: number? }' restates the schema without adding format, default, or constraint detail beyond it. Baseline 3 applies when the schema carries the load.

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 and resource — 'opens a real outbound WebSocket from the client via WebSocket.connect(url)' — and explicitly separates itself from siblings by naming ws-send, ws-receive, ws-close, and ws-list as the follow-on tools. An agent can place this as the entry point of the WebSocket workflow 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 clear operational context: the returned id is what the sibling tools consume, and 'Verify with: ws-list' tells the agent how to confirm success. It also states prerequisites (requires active-client and explicit-mutation-approval). It stops short of saying when NOT to open a socket or naming a competing alternative, so it is clear context rather than explicit routing.

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