Skip to main content
Glama
okenjioxx

Roblox Executor MCP Server

by okenjioxx

Semantic search over loaded scripts

semantic-search-scripts
Read-onlyIdempotent

Find the Roblox script most likely about a query by ranking an active client's loaded scripts on semantic similarity, returning ranked paths.

Instructions

Rank the active client's loaded/GC scripts by semantic relevance to a natural-language query. NOTE: full decompiled source is NOT available in the clean protocol, so each script is indexed over its GetFullName() path + Name + ClassName + the string constants reachable from its closure (capped per script) — think of it as 'find the script most likely about X', not a full-text code search. The first call embeds and caches every script (locally or via the configured embeddings endpoint); later calls reuse the cache for unchanged scripts. Returns { hits: [{ path, score, snippet }], model } sorted by descending cosine similarity. Signature: { query: string, limit: any?, maxScripts: any? }. Phase: orchestrate; 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
limitNoMaximum number of ranked hits to return.
queryYesNatural-language description of the script you are looking for.
maxScriptsNoCap on how many scripts to harvest and index from the client.

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?

Annotations already cover read-only/idempotent, and the description adds substantial behavior: the first call embeds and caches every script (locally or via the embeddings endpoint), later calls reuse the cache for unchanged scripts, and the index is capped/approximate because decompiled source is unavailable. It also notes cost=medium and the active-client requirement.

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 core purpose is front-loaded and every clause about indexing and caching earns its place. However, the trailing metadata block (Phase/cost/idempotency/Requires/Produces/Safety) partially repeats the annotations (Safety: read-only, idempotency=read-only), diluting density.

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 search tool, the description is complete: it explains the indexing substrate and its limits, caching cost model, requirement for an active client, the return shape ({ hits, model } sorted by cosine similarity), and even failure guidance. No output schema exists, yet return values are described.

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 the schema already carries parameter meaning; the description's signature line ({ query, limit: any?, maxScripts: any? }) restates the parameters without adding semantics beyond what the schema documents. Baseline 3 is appropriate when the schema does the heavy lifting.

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+resource+mechanism: it ranks the active client's loaded/GC scripts by semantic relevance to a natural-language query. It also clarifies the indexing substrate (GetFullName path + Name + ClassName + reachable string constants), which no sibling tool does. An agent can tell this apart from grep/name-based scanners without opening a 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?

Provides a clear framing for when to reach for it ('find the script most likely about X') and an explicit when-not ('not a full-text code search'). It stops short of naming a concrete alternative sibling such as script-grep or scan-closures-by-name, so the routing is implied 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