Skip to main content
Glama
okenjioxx

Roblox Executor MCP Server

by okenjioxx

Generate random bytes with crypt.generatebytes

crypt-generate-bytes
Read-onlyIdempotent

Generate cryptographically random bytes in-game for tokens or keys; returns a Base64 string with optional size, and reports an error if executor support is missing.

Instructions

Generate size cryptographically random bytes using the executor's crypt.generatebytes(size). The bytes are returned as a Base64 string (decode with crypt-base64-decode if you need the raw bytes). This is a pure, side-effect-free compute that runs entirely in-game. The default size is 16; the request is clamped to a sane 1..1024 range. Requires crypt.generatebytes; on an executor without it, it returns { error } instead of throwing. The call is pcall-guarded. Returns { bytes } or { error }. Signature: { size: any?, threadContext: number?, timeoutMs: number? }. Phase: observe; cost=medium; idempotency=read-only. Requires: active-client. Produces: structured-result. Safety: read-only. On failure: inspect tool-schema for exact fields, defaults, constraints, and an invocation example.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
sizeNoNumber of random bytes to generate (default 16, clamped to 1..1024).
timeoutMsNoOptional per-call deadline in milliseconds; omit it to use the tool or server default.
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/5.0
Behavior4/5

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

Annotations already declare readOnly/idempotent/non-destructive, so the bar is lower, yet the description adds real behavior: default size 16, clamp to 1..1024, pcall-guarded, returns { error } rather than throwing on unsupported executors, and pure side-effect-free in-game compute. That is meaningful context beyond the structured safety hints.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The opening sentences are well front-loaded, but the trailing meta block (Phase/cost/idempotency/Requires/Produces/Safety plus a repeated signature) largely restates annotations and the schema, padding the definition without adding selection value.

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?

With no output schema, the description correctly explains the return contract ({ bytes } or { error } as Base64) and the failure mode, which is what an agent needs to invoke and interpret it. Slightly long-winded but functionally complete.

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 coverage is 100% and the schema already documents size with its default and 1..1024 clamp plus timeoutMs/threadContext. The description repeats the clamp/default without adding syntax beyond the schema, so 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 (generate) and resource (cryptographically random bytes) and names the underlying primitive crypt.generatebytes. It also points to the complementary crypt-base64-decode sibling for raw bytes, so an agent can place it in the crypto family 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?

Gives clear context: bytes come back Base64, decode with crypt-base64-decode if raw bytes are needed, and it requires an executor exposing crypt.generatebytes. It does not explicitly contrast with crypt-generate-key or crypt-hash, but the usage conditions are clear.

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