# Roblox Open Cloud MCP - guide for AI agents and humans

A remote MCP server that lets an AI manage a Roblox game through the official **Open Cloud** APIs: monetization (developer products, game passes, badges), assets, events, DataStores/leaderboards, live announcements, push notifications, analytics, Luau execution, and Discord updates. It is the hosted twin of the local `roblox-open-cloud` skill: same operations, same safety rules.

## What it can and cannot do

**Can** (53 tools, listed in the catalog below)
- Create / list / update **Developer Products, Game Passes, Badges** (prices, names, on/off sale, icons).
- **Upload assets** (PNG/JPG -> Decal, MP3/OGG -> Audio, FBX -> Model) and read asset status.
- Create / update / delete **Game Events** (the events calendar listing).
- Read and (with confirmation) change **DataStore** entries, **Ordered DataStore** leaderboards, **Memory Store** queues/sorted maps; list entry revisions.
- **Publish messages / live announcements** to all running servers, **send a push notification** to one player.
- **Query analytics** (DailyActiveUsers, DailyRevenue, retention... see `analytics_metrics` for the exact names).
- **Run Luau** on a fresh headless server of the published place (inspect state, one-off scripts) and read its logs.
- Update universe / place settings; upload a place file as a *Saved* or *Published* version (<= 10 MB).
- **Post to Discord** through a webhook (embeds, images) - e.g. an update note right after a release.

**Cannot / will not**
- Generate images or any art. Icons and thumbnails must be supplied by the caller (`{url}` https or `{base64, filename}`).
- Post a **Roblox Group shout** remotely. Roblox has no Open Cloud endpoint for it; the only way is a `.ROBLOSECURITY` cookie, which this server refuses to accept. Use the local CLI (`group.shout`).
- Create notification *templates*, change a badge icon after creation, or set the experience's store icon/thumbnails (Roblox does not expose these via Open Cloud).
- Edit scripts/instances of a running live game, ban/unban players (not implemented), or reach other people's games: it only acts with the API key you give it, on the universes that key is scoped to.
- Remember anything between calls. The server is stateless and stores no credentials.

## Connecting

Endpoint (Streamable HTTP, JSON responses, POST only):
- **Works now:** `https://mcp-roblox.spawnerastudio.workers.dev/mcp`
- **Short domain:** `https://romcp.spawnera.com/mcp` - bound to the Worker. Same server, same token; only the host changes.

Every request carries these headers (the client config sets them once):

| Header | Required | Meaning |
|---|---|---|
| `Authorization: Bearer <token>` | yes | Access token for this server (gates the endpoint) |
| `x-roblox-api-key` | yes for Roblox tools | Your Open Cloud API key (create.roblox.com/credentials) |
| `x-roblox-universe-id` | yes for universe tools | Universe (experience) id of the game |
| `x-roblox-place-id` | for luau/place tools | Root place id |
| `x-roblox-creator-user-id` / `x-roblox-creator-group-id` | for `assets_upload` | Who owns uploaded assets |
| `x-discord-webhook` | for `discord_post` | Discord webhook URL |

Claude Code:
```
claude mcp add --transport http roblox https://mcp-roblox.spawnerastudio.workers.dev/mcp \
  --header "Authorization: Bearer <token>" \
  --header "x-roblox-api-key: <open-cloud-key>" \
  --header "x-roblox-universe-id: <universe-id>" \
  --header "x-roblox-place-id: <place-id>"
```
Generic `mcp.json`:
```json
{ "mcpServers": { "roblox": { "type": "http", "url": "https://mcp-roblox.spawnerastudio.workers.dev/mcp",
  "headers": { "Authorization": "Bearer <token>", "x-roblox-api-key": "<key>", "x-roblox-universe-id": "<id>", "x-roblox-place-id": "<id>" } } } }
```
One connection per game (different headers). To use another game with the same key for a single call, pass `universeId` / `placeId` as tool arguments.

Your Roblox key is sent over HTTPS per request and used only for that request; it is never stored or logged by the server.

## How an AI should use it

1. **Call `roblox_status` first.** It shows which credentials are configured (never the secrets) and which tools are usable or blocked and why.
2. **Read before write.** Use `*_list` / `*_get` to learn real ids and current values before changing anything. Ids you need in game code: `devproducts_list`, `gamepasses_list`, `badges` ids come back from create.
3. **Danger tools are two-step.** Tools tagged `[DANGER]` (DataStore writes, badge creation which can cost Robux, deleting events, universe/place changes, publishing a place, Luau execution, flush, live announcements, Discord posts) return `{executed:false, needsConfirm:true, preview}` and change nothing. Show the preview to the user; after their yes call the same tool again with `confirm: true`. If the user already explicitly asked for exactly that action with that content, you may pass `confirm: true` directly.
4. **Never invent ids or metric names.** Metric names are case-sensitive (`DailyActiveUsers`, not `DAU`); get them from `analytics_metrics`.
5. **Real player data.** DataStore/OrderedDataStore/Luau can touch live saves. Before overwriting, read the current value (the preview does) and tell the user how to restore it (`datastores_revisions`).
6. **Errors carry hints.** A 403 means the key lacks a scope; the error names the exact scope to tick. Missing config errors name the missing header.

## Recipes

- **Add a purchasable item**: `devproducts_create {name, price, description}` -> returns `id` -> put it in game code (`MarketplaceService:PromptProductPurchase`). Price changes later: `devproducts_update {id, price}`.
- **Release announcement**: `messaging_announce {text}` (needs the in-game receiver, see skill `references/luau-receivers.md`) + `discord_post {title, description, color, imageUrl}`.
- **Check how the game is doing**: `analytics_query {metric:"DailyActiveUsers", start, end, granularity:"OneDay"}`; revenue: `DailyRevenue`; retention: `ForwardD1Retention`.
- **Fix a player's lost coins**: `datastores_get` -> `datastores_revisions` to find the good version -> `datastores_set` preview -> user confirms -> `confirm:true`.
- **Inspect the live place**: `luau_run {script:"return #workspace:GetChildren()"}` (preview, confirm) -> output + logs.
- **Upload an icon then use it**: `assets_upload {file:{url:"https://.../icon.png"}, name}` -> `assetId` (if `pending`, poll `assets_operation`) -> `gamepasses_create {image:{url}}`.

## Limits worth knowing

- Roblox limits: messaging topic <= 80 / message <= 1024 chars; notifications 1/user/day/experience and the player must opt in; place upload <= 10 MB; Luau script <= 4 MB, run <= 5 min, 10 concurrent tasks per place; analytics data retained 1468 days for most metrics.
- Messaging only reaches servers that are running at publish time.
- Roblox does not hot-reload code into running servers: game-side changes need a publish and fresh servers.
- Game Events: Roblox marks the API Experimental; `subtitle` is required in practice and only `Public` visibility is confirmed.
- Long operations (asset processing, analytics, Luau) are polled for ~45-50 s; if still running the tool returns `pending` with an id to check later.
- Output is truncated at ~60k characters; use `limit`, `prefix`, or narrower queries.

## Troubleshooting

| Symptom | Cause / fix |
|---|---|
| 401 from the MCP endpoint | Wrong or missing `Authorization: Bearer` token |
| 503 "MCP_ACCESS_TOKEN secret missing" | Server not configured by its owner |
| "needs ROBLOX_UNIVERSE_ID..." | Header `x-roblox-universe-id` not set in the client config |
| 403 with "Scope not authorized" | Tick the scope named in the hint on the API key, and make sure the key is scoped to this universe |
| 403 "WAF Blocked Request" | Malformed id (e.g. quotes around the universe id) |
| Badge create returns plain 403 | Missing `legacy-universe.badge:manage-and-spend-robux` (needed even for cost 0) |
| Notification "not opted in" | The player must enable notifications for this experience |

---

---

# Tool catalog

### Developer Products

#### `devproducts_list` - read
List all Developer Products of the universe. Returns id, name, price (Robux) and sale status. Use the ids in game code (MarketplaceService:PromptProductPurchase).

_API key scopes:_ `developer-product:read`
_Needs:_ API key, universe id

_No parameters._

#### `devproducts_get` - read
Get one Developer Product.

_API key scopes:_ `developer-product:read`
_Needs:_ API key, universe id

| Parameter | Type | Req | Description |
|---|---|---|---|
| `id` | number | yes | Developer product id |

#### `devproducts_create` - write
Create a Developer Product. Creates a product that is for sale. The price set here is the real price. Returns the new product id.

_API key scopes:_ `developer-product:write`
_Needs:_ API key, universe id

| Parameter | Type | Req | Description |
|---|---|---|---|
| `name` | string | yes | Product name |
| `price` | number |  | Price in Robux (omit to create without a price) |
| `description` | string |  | Description |
| `image` | {url} or {base64,filename} |  | Optional thumbnail (.png/.jpg) |

#### `devproducts_update` - write
Update a Developer Product (name, description, price, sale status, image).

_API key scopes:_ `developer-product:write`
_Needs:_ API key, universe id

| Parameter | Type | Req | Description |
|---|---|---|---|
| `id` | number | yes | Developer product id |
| `name` | string |  | New name |
| `description` | string |  | New description |
| `price` | number |  | New price in Robux |
| `forSale` | boolean |  | Put on/off sale |
| `image` | {url} or {base64,filename} |  | New thumbnail |

### Game Passes

#### `gamepasses_list` - read
List all Game Passes of the universe.

_API key scopes:_ `game-pass:read`
_Needs:_ API key, universe id

_No parameters._

#### `gamepasses_get` - read
Get one Game Pass.

_API key scopes:_ `game-pass:read`
_Needs:_ API key, universe id

| Parameter | Type | Req | Description |
|---|---|---|---|
| `id` | number | yes | Game pass id |

#### `gamepasses_create` - write
Create a Game Pass (icon upload is bundled).

_API key scopes:_ `game-pass:write`
_Needs:_ API key, universe id

| Parameter | Type | Req | Description |
|---|---|---|---|
| `name` | string | yes | Pass name |
| `price` | number |  | Price in Robux. If omitted the pass is NOT for sale. |
| `description` | string |  | Description |
| `image` | {url} or {base64,filename} |  | Icon (.png/.jpg). Roblox generally requires an icon to put it on sale. |

#### `gamepasses_update` - write
Update a Game Pass; only the fields you pass change.

_API key scopes:_ `game-pass:write`
_Needs:_ API key, universe id

| Parameter | Type | Req | Description |
|---|---|---|---|
| `id` | number | yes | Game pass id |
| `name` | string |  | New name |
| `description` | string |  | New description |
| `price` | number |  | New price in Robux |
| `forSale` | boolean |  | Put on/off sale |
| `image` | {url} or {base64,filename} |  | New icon |

### Badges

#### `badges_create` - DANGER (needs confirm)
Create a Badge (can spend real Robux). Badge creation costs Robux after the free daily quota. The icon is effectively required. The key needs the manage-and-spend-robux scope even when expectedCost is 0 (otherwise a misleading plain 403 is returned). Set expectedCost to the fee currently shown in Creator Hub (0 if free).

_API key scopes:_ `legacy-universe.badge:manage-and-spend-robux`
_Needs:_ API key, universe id

| Parameter | Type | Req | Description |
|---|---|---|---|
| `name` | string | yes | Badge name |
| `expectedCost` | number | yes | Expected Robux cost; Roblox rejects if the real fee differs |
| `description` | string |  | Badge description |
| `icon` | {url} or {base64,filename} | yes | Badge icon (.png/.jpg), 512x512 recommended |
| `inactive` | boolean |  | Create as disabled _(default false)_ |
| `confirm` | boolean |  | Must be true to actually execute. Without it the tool only returns a preview of what would happen. |

#### `badges_update` - write
Update a Badge's name, description or enabled state. Icon changes after creation are not possible through Open Cloud (do it in Creator Hub).

_API key scopes:_ `legacy-universe.badge:write`
_Needs:_ API key

| Parameter | Type | Req | Description |
|---|---|---|---|
| `id` | number | yes | Badge id |
| `name` | string |  | New name |
| `description` | string |  | New description |
| `enabled` | boolean |  | Enable/disable |

### Assets (upload images/audio/models)

#### `assets_upload` - write
Upload an image (Decal), audio or FBX model as an asset. Type is inferred from the extension (.png/.jpg=Decal, .mp3/.ogg=Audio, .fbx=Model). Upload is async: waits up to ~45s and returns the assetId; if Roblox is still processing it returns {pending:true, operationId} - then call assets.operation. Decal ids are NOT the same as the Image id; use the returned assetId in game code as rbxassetid://. Images are NEVER generated by this skill - supply the file.

_API key scopes:_ `asset:read`, `asset:write`
_Needs:_ API key

| Parameter | Type | Req | Description |
|---|---|---|---|
| `file` | {url} or {base64,filename} | yes | File to upload (.png .jpg .jpeg .mp3 .ogg .fbx) |
| `name` | string | yes | Display name |
| `description` | string |  | Description _(default Uploaded via Roblox Open Cloud)_ |
| `type` | string |  | Override asset type _(one of Decal/Audio/Model)_ |
| `owner` | string |  | Who owns the asset (default user if both configured) _(one of user/group)_ |

#### `assets_operation` - read
Check an async asset upload operation.

_API key scopes:_ `asset:read`
_Needs:_ API key

| Parameter | Type | Req | Description |
|---|---|---|---|
| `operationId` | string | yes | operationId from assets.upload |

#### `assets_get` - read
Get asset metadata (moderation state, creator, versions).

_API key scopes:_ `asset:read`
_Needs:_ API key

| Parameter | Type | Req | Description |
|---|---|---|---|
| `id` | number | yes | Asset id |

### Game Events (calendar)

#### `events_list` - read
List Game Events (the Experience Events calendar). Experimental Roblox API. These are calendar listings only; they do not run any code in the game.

_API key scopes:_ `universe.event:read`
_Needs:_ API key, universe id

_No parameters._

#### `events_create` - write
Create a Game Event. subtitle is required in practice. Only visibility=Public is confirmed working; Private failed in live testing. Times are ISO-8601 UTC.

_API key scopes:_ `universe.event:write`
_Needs:_ API key, universe id

| Parameter | Type | Req | Description |
|---|---|---|---|
| `title` | string | yes | Event title |
| `subtitle` | string | yes | Short subtitle (required by Roblox) |
| `start` | string | yes | Start, ISO-8601 e.g. 2026-12-01T00:00:00.000Z |
| `end` | string | yes | End, ISO-8601 |
| `description` | string |  | Long description |
| `visibility` | string |  | Public or Private _(one of Public/Private; default Public)_ |
| `placeId` | number |  | Place to launch (defaults to ROBLOX_PLACE_ID) |
| `thumbnail` | number |  | Image asset id for the event thumbnail |

#### `events_update` - write
Update a Game Event; only passed fields change.

_API key scopes:_ `universe.event:write`
_Needs:_ API key

| Parameter | Type | Req | Description |
|---|---|---|---|
| `id` | string | yes | Event id |
| `title` | string |  | Title |
| `subtitle` | string |  | Subtitle |
| `description` | string |  | Description |
| `start` | string |  | Start ISO |
| `end` | string |  | End ISO |
| `visibility` | string |  | Visibility _(one of Public/Private)_ |

#### `events_delete` - DANGER (needs confirm)
Delete a Game Event (permanent).

_API key scopes:_ `universe.event:write`
_Needs:_ API key

| Parameter | Type | Req | Description |
|---|---|---|---|
| `id` | string | yes | Event id |
| `confirm` | boolean |  | Must be true to actually execute. Without it the tool only returns a preview of what would happen. |

### Universe settings

#### `universe_get` - read
Get universe info (name, visibility, owner, voice chat...).
_Needs:_ API key, universe id

_No parameters._

#### `universe_update` - DANGER (needs confirm)
Update universe settings (name, description, visibility, voice chat). visibility=Private takes the live game offline for players. Review before confirming.

_API key scopes:_ `universe:write`
_Needs:_ API key, universe id

| Parameter | Type | Req | Description |
|---|---|---|---|
| `displayName` | string |  | Experience name |
| `description` | string |  | Experience description |
| `visibility` | string |  | PUBLIC or PRIVATE _(one of PUBLIC/PRIVATE/Public/Private)_ |
| `voiceChatEnabled` | boolean |  | Voice chat |
| `confirm` | boolean |  | Must be true to actually execute. Without it the tool only returns a preview of what would happen. |

### Place settings & publishing

#### `place_get` - read
Get place info.
_Needs:_ API key, universe id

| Parameter | Type | Req | Description |
|---|---|---|---|
| `placeId` | number |  | Place id (defaults to ROBLOX_PLACE_ID) |

#### `place_update` - DANGER (needs confirm)
Update place settings (display name, description, server size).

_API key scopes:_ `universe.place:write`
_Needs:_ API key, universe id, place id

| Parameter | Type | Req | Description |
|---|---|---|---|
| `displayName` | string |  | Place name |
| `description` | string |  | Place description |
| `serverSize` | number |  | Max players per server |
| `confirm` | boolean |  | Must be true to actually execute. Without it the tool only returns a preview of what would happen. |

#### `place_publish` - DANGER (needs confirm)
Upload a .rbxl/.rbxlx as a new place version (Saved by default; Published goes LIVE). Most destructive operation. Default versionType=Saved (does not go live). Published overwrites the live game. 10 MB limit; .rbxlx (XML) is the documented format, .rbxl is best-effort. CLI: pass a path. MCP: pass {base64} (small files only) or {url}.

_API key scopes:_ `universe-places:write`
_Needs:_ API key, universe id, place id

| Parameter | Type | Req | Description |
|---|---|---|---|
| `file` | {url} or {base64,filename} | yes | Place file .rbxl/.rbxlx |
| `publish` | boolean |  | true = versionType Published (LIVE). Default Saved. _(default false)_ |
| `confirm` | boolean |  | Must be true to actually execute. Without it the tool only returns a preview of what would happen. |

### DataStores (real player data)

#### `datastores_list` - read
List DataStores in the universe.

_API key scopes:_ `universe-datastores.control:list`
_Needs:_ API key, universe id

_No parameters._

#### `datastores_entries` - read
List entry keys in a DataStore (optionally by prefix).

_API key scopes:_ `universe-datastores.objects:list`
_Needs:_ API key, universe id

| Parameter | Type | Req | Description |
|---|---|---|---|
| `datastore` | string | yes | DataStore name |
| `scope` | string |  | Scope (omit for global default) |
| `prefix` | string |  | Key prefix filter, e.g. Player_ |
| `limit` | number |  | Max keys to return _(default 200)_ |

#### `datastores_get` - read
Read one DataStore entry (real player data).

_API key scopes:_ `universe-datastores.objects:read`
_Needs:_ API key, universe id

| Parameter | Type | Req | Description |
|---|---|---|---|
| `datastore` | string | yes | DataStore name |
| `scope` | string |  | Scope (omit for global default) |
| `entry` | string | yes | Entry key, e.g. Player_123 |

#### `datastores_set` - DANGER (needs confirm)
Create/overwrite a DataStore entry (real player data). Upserts by default. createOnly=true fails if it already exists. The preview returns the current value so it can be backed up first. No undo except datastores.revisions.

_API key scopes:_ `universe-datastores.objects:create`, `universe-datastores.objects:update`
_Needs:_ API key, universe id

| Parameter | Type | Req | Description |
|---|---|---|---|
| `datastore` | string | yes | DataStore name |
| `scope` | string |  | Scope (omit for global default) |
| `entry` | string | yes | Entry key |
| `value` | json | yes | New value as JSON, e.g. {"coins":500} |
| `createOnly` | boolean |  | Only create, never overwrite _(default false)_ |
| `confirm` | boolean |  | Must be true to actually execute. Without it the tool only returns a preview of what would happen. |

#### `datastores_increment` - DANGER (needs confirm)
Atomically add to a numeric DataStore entry. The request field is `amount`. Entry must hold a number.

_API key scopes:_ `universe-datastores.objects:create`, `universe-datastores.objects:update`
_Needs:_ API key, universe id

| Parameter | Type | Req | Description |
|---|---|---|---|
| `datastore` | string | yes | DataStore name |
| `scope` | string |  | Scope (omit for global default) |
| `entry` | string | yes | Entry key |
| `by` | number | yes | Amount to add (negative to subtract) |
| `confirm` | boolean |  | Must be true to actually execute. Without it the tool only returns a preview of what would happen. |

#### `datastores_delete` - DANGER (needs confirm)
Delete a DataStore entry (real player data).

_API key scopes:_ `universe-datastores.objects:delete`
_Needs:_ API key, universe id

| Parameter | Type | Req | Description |
|---|---|---|---|
| `datastore` | string | yes | DataStore name |
| `scope` | string |  | Scope (omit for global default) |
| `entry` | string | yes | Entry key |
| `confirm` | boolean |  | Must be true to actually execute. Without it the tool only returns a preview of what would happen. |

#### `datastores_revisions` - read
List revision history of an entry (use to recover from a bad write).

_API key scopes:_ `universe-datastores.versions:list`
_Needs:_ API key, universe id

| Parameter | Type | Req | Description |
|---|---|---|---|
| `datastore` | string | yes | DataStore name |
| `scope` | string |  | Scope (omit for global default) |
| `entry` | string | yes | Entry key |
| `limit` | number |  | Max revisions _(default 20)_ |

### Ordered DataStores (leaderboards)

#### `ordered_list` - read
List entries of an Ordered DataStore (leaderboard), sorted.

_API key scopes:_ `universe.ordered-data-store.scope.entry:read`
_Needs:_ API key, universe id

| Parameter | Type | Req | Description |
|---|---|---|---|
| `datastore` | string | yes | Ordered DataStore name |
| `scope` | string |  | Scope _(default global)_ |
| `desc` | boolean |  | Highest first _(default true)_ |
| `filter` | string |  | Range filter, only <= or >= e.g. ">=100" |
| `limit` | number |  | Max rows _(default 50)_ |

#### `ordered_get` - read
Read one Ordered DataStore entry.

_API key scopes:_ `universe.ordered-data-store.scope.entry:read`
_Needs:_ API key, universe id

| Parameter | Type | Req | Description |
|---|---|---|---|
| `datastore` | string | yes | Ordered DataStore name |
| `scope` | string |  | Scope _(default global)_ |
| `entry` | string | yes | Entry key |

#### `ordered_set` - DANGER (needs confirm)
Set an Ordered DataStore entry value (integer).

_API key scopes:_ `universe.ordered-data-store.scope.entry:write`
_Needs:_ API key, universe id

| Parameter | Type | Req | Description |
|---|---|---|---|
| `datastore` | string | yes | Ordered DataStore name |
| `scope` | string |  | Scope _(default global)_ |
| `entry` | string | yes | Entry key |
| `value` | number | yes | Integer value |
| `createOnly` | boolean |  | Only create _(default false)_ |
| `confirm` | boolean |  | Must be true to actually execute. Without it the tool only returns a preview of what would happen. |

#### `ordered_increment` - DANGER (needs confirm)
Atomically add to an Ordered DataStore entry.

_API key scopes:_ `universe.ordered-data-store.scope.entry:write`
_Needs:_ API key, universe id

| Parameter | Type | Req | Description |
|---|---|---|---|
| `datastore` | string | yes | Ordered DataStore name |
| `scope` | string |  | Scope _(default global)_ |
| `entry` | string | yes | Entry key |
| `by` | number | yes | Amount |
| `confirm` | boolean |  | Must be true to actually execute. Without it the tool only returns a preview of what would happen. |

#### `ordered_delete` - DANGER (needs confirm)
Delete an Ordered DataStore entry.

_API key scopes:_ `universe.ordered-data-store.scope.entry:write`
_Needs:_ API key, universe id

| Parameter | Type | Req | Description |
|---|---|---|---|
| `datastore` | string | yes | Ordered DataStore name |
| `scope` | string |  | Scope _(default global)_ |
| `entry` | string | yes | Entry key |
| `confirm` | boolean |  | Must be true to actually execute. Without it the tool only returns a preview of what would happen. |

### Memory Store queues

#### `queue_add` - write
Add an item to a Memory Store queue.

_API key scopes:_ `memory-store.queue:add`
_Needs:_ API key, universe id

| Parameter | Type | Req | Description |
|---|---|---|---|
| `queue` | string | yes | Queue name |
| `data` | json | yes | Item payload (JSON) |
| `priority` | number |  | Higher = read first |
| `ttl` | string |  | e.g. 3600s |

#### `queue_read` - write
Read items from a queue (they become invisible until discarded or the window expires). Returns a readId. Call queue.discard with it once processed, otherwise items reappear after the invisibility window.

_API key scopes:_ `memory-store.queue:dequeue`
_Needs:_ API key, universe id

| Parameter | Type | Req | Description |
|---|---|---|---|
| `queue` | string | yes | Queue name |
| `count` | number |  | Items to read _(default 10)_ |
| `invisibilityWindow` | string |  | e.g. 30s |
| `allOrNothing` | boolean |  | Return nothing unless count items available |

#### `queue_discard` - write
Permanently remove items previously read (ack).

_API key scopes:_ `memory-store.queue:discard`
_Needs:_ API key, universe id

| Parameter | Type | Req | Description |
|---|---|---|---|
| `queue` | string | yes | Queue name |
| `readId` | string | yes | readId from queue.read |

### Memory Store sorted maps

#### `sortedmap_list` - read
List items of a Memory Store sorted map.

_API key scopes:_ `memory-store.sorted-map:read`
_Needs:_ API key, universe id

| Parameter | Type | Req | Description |
|---|---|---|---|
| `map` | string | yes | Map name |
| `limit` | number |  | Max items _(default 100)_ |

#### `sortedmap_get` - read
Get one sorted map item.

_API key scopes:_ `memory-store.sorted-map:read`
_Needs:_ API key, universe id

| Parameter | Type | Req | Description |
|---|---|---|---|
| `map` | string | yes | Map name |
| `item` | string | yes | Item key |

#### `sortedmap_set` - DANGER (needs confirm)
Create/overwrite a sorted map item.

_API key scopes:_ `memory-store.sorted-map:write`
_Needs:_ API key, universe id

| Parameter | Type | Req | Description |
|---|---|---|---|
| `map` | string | yes | Map name |
| `item` | string | yes | Item key |
| `value` | json | yes | Value (JSON) |
| `sortKey` | number |  | Numeric sort key |
| `stringSortKey` | string |  | String sort key |
| `ttl` | string |  | e.g. 3600s |
| `createOnly` | boolean |  | Only create _(default false)_ |
| `confirm` | boolean |  | Must be true to actually execute. Without it the tool only returns a preview of what would happen. |

#### `sortedmap_delete` - DANGER (needs confirm)
Delete a sorted map item.

_API key scopes:_ `memory-store.sorted-map:write`
_Needs:_ API key, universe id

| Parameter | Type | Req | Description |
|---|---|---|---|
| `map` | string | yes | Map name |
| `item` | string | yes | Item key |
| `confirm` | boolean |  | Must be true to actually execute. Without it the tool only returns a preview of what would happen. |

### Memory Store admin

#### `memorystore_flush` - DANGER (needs confirm)
Wipe EVERY queue and sorted-map item in a scope (irreversible).

_API key scopes:_ `memory-store:flush`
_Needs:_ API key, universe id

| Parameter | Type | Req | Description |
|---|---|---|---|
| `scope` | string | yes | LIVE or TEST _(one of LIVE/TEST)_ |
| `confirm` | boolean |  | Must be true to actually execute. Without it the tool only returns a preview of what would happen. |

### Messaging & live announcements

#### `messaging_publish` - write
Publish a string to a MessagingService topic of all live servers. Only servers already running receive it (no replay). Limits: topic <= 80 chars, message <= 1024 chars. The game must call MessagingService:SubscribeAsync(topic) - see references/luau-receivers.md.

_API key scopes:_ `universe-messaging-service:publish`
_Needs:_ API key, universe id

| Parameter | Type | Req | Description |
|---|---|---|---|
| `topic` | string | yes | Topic name |
| `message` | string | yes | Message string (JSON string recommended) |

#### `messaging_announce` - DANGER (needs confirm)
Show an on-screen announcement in all live servers (needs the receiver snippet in the game). Publishes {"action":"announce","text":...,"durationSeconds":...} to topic (default "remote-commands"). Requires the RemoteCommand receiver from references/luau-receivers.md to be in the published game.

_API key scopes:_ `universe-messaging-service:publish`
_Needs:_ API key, universe id

| Parameter | Type | Req | Description |
|---|---|---|---|
| `text` | string | yes | Announcement text |
| `duration` | number |  | Seconds on screen _(default 10)_ |
| `topic` | string |  | Topic the game listens on _(default remote-commands)_ |
| `confirm` | boolean |  | Must be true to actually execute. Without it the tool only returns a preview of what would happen. |

### Player push notifications

#### `notifications_send` - write
Send an experience push notification to ONE player from a pre-made template. Needs a message template created in Creator Hub > Engagement > Notifications (cannot be created via API). Max 1 per user/day/experience. The user must have opted in. Some placeholder names (e.g. displayName) are rejected - use plain templates.

_API key scopes:_ `user.user-notification:write`
_Needs:_ API key, universe id

| Parameter | Type | Req | Description |
|---|---|---|---|
| `userId` | number | yes | Recipient Roblox user id |
| `messageId` | string | yes | Template id from Creator Hub |
| `params` | key=value |  | Template placeholders as key=value; repeat the flag for several, e.g. --params a=1 --params b=x |
| `launchData` | string |  | Launch data passed to the game when opened |
| `analyticsCategory` | string |  | Analytics category label |

### Luau execution (run code on a headless server)

#### `luau_run` - DANGER (needs confirm)
Run a Luau script on a fresh headless server of the published place. Roblox boots a NEW isolated server from the latest published place (or a pinned version), runs the place bootstrap scripts, then your script. DataModel changes are discarded, BUT DataStore/MemoryStore/Messaging calls from inside hit REAL live data. Limits: script <= 4 MB, run <= 5 min, JSON return <= 4 MB, 10 concurrent tasks/place. Returns state, return value, error and logs. Great for inspecting place state or running one-off data migrations.

_API key scopes:_ `universe.place.luau-execution-session:write`, `universe.place.luau-execution-session:read`
_Needs:_ API key, universe id, place id

| Parameter | Type | Req | Description |
|---|---|---|---|
| `script` | string | yes | Luau source. Use `return <value>` to get a result back. |
| `version` | number |  | Pin to a specific place version number |
| `timeout` | string |  | e.g. 30s (default 5m max) |
| `confirm` | boolean |  | Must be true to actually execute. Without it the tool only returns a preview of what would happen. |

#### `luau_logs` - read
Fetch logs of a previous Luau task (kept 24h).

_API key scopes:_ `universe.place.luau-execution-session:read`
_Needs:_ API key, universe id, place id

| Parameter | Type | Req | Description |
|---|---|---|---|
| `taskPath` | string | yes | taskPath returned by luau.run, e.g. universes/1/places/2/versions/3/luau-execution-sessions/S/tasks/T |

### Analytics

#### `analytics_metrics` - read
Catalog of valid analytics metric names, granularities and breakdown dimensions. Offline reference (no API call). Names are case-sensitive, e.g. DailyActiveUsers (NOT DAU). Filter by category or search text.

| Parameter | Type | Req | Description |
|---|---|---|---|
| `category` | string |  | e.g. Engagement, Monetization, Retention, Economy, Data Store |
| `search` | string |  | substring of metric name |

#### `analytics_query` - read
Query a time-series analytics metric (DAU, revenue, retention...). Use analytics.metrics for valid names. granularity must be supported by the metric (None = single aggregate). Dates are ISO-8601; end is exclusive. Slow queries are polled up to ~45s, then returns {pending:true, operationId}.

_API key scopes:_ `universe.analytics:read`
_Needs:_ API key, universe id

| Parameter | Type | Req | Description |
|---|---|---|---|
| `metric` | string | yes | e.g. DailyActiveUsers, DailyRevenue, ForwardD1Retention |
| `start` | string | yes | ISO start e.g. 2026-11-01T00:00:00Z |
| `end` | string | yes | ISO end (exclusive) |
| `granularity` | string |  | OneMinute\|HalfHour\|OneHour\|OneDay\|OneWeek\|OneMonth\|None _(default OneDay)_ |
| `breakdown` | a,b,c |  | Dimensions to group by, comma separated e.g. Country,Platform |
| `filter` | json |  | Optional QueryFilter array (see Roblox docs) |
| `limit` | number |  | Max rows |

#### `analytics_dimensions` - read
List values of analytics dimensions (e.g. all Country values) for a metric.

_API key scopes:_ `universe.analytics:read`
_Needs:_ API key, universe id

| Parameter | Type | Req | Description |
|---|---|---|---|
| `metric` | string | yes | Metric name |
| `start` | string | yes | ISO start |
| `end` | string | yes | ISO end |
| `dimensions` | a,b,c |  | Dimensions to resolve |

### Discord updates

#### `discord_post` - DANGER (needs confirm)
Post an update/announcement to a Discord channel via webhook. Uses the webhook URL from DISCORD_WEBHOOK_URL (or DISCORD_WEBHOOK_NEWS) in .env, or header x-discord-webhook on the MCP. Supports plain content and one rich embed (title, description, color, image, fields). Mentions are disabled unless allowMentions=true. Typical use: announce a game update/event right after publishing it.
_Needs:_ Discord webhook

| Parameter | Type | Req | Description |
|---|---|---|---|
| `content` | string |  | Plain message text (supports Discord markdown) |
| `title` | string |  | Embed title |
| `description` | string |  | Embed body |
| `color` | string |  | Embed color hex, e.g. #F5A623 |
| `url` | string |  | Link on the embed title |
| `imageUrl` | string |  | Large image URL (https) |
| `thumbnailUrl` | string |  | Small image URL (https) |
| `footer` | string |  | Footer text |
| `fields` | json |  | Array of {"name","value","inline"} |
| `username` | string |  | Override webhook display name |
| `avatarUrl` | string |  | Override webhook avatar |
| `timestamp` | boolean |  | Add current time to the embed _(default true)_ |
| `allowMentions` | boolean |  | Allow @everyone/@role pings _(default false)_ |
| `confirm` | boolean |  | Must be true to actually execute. Without it the tool only returns a preview of what would happen. |

### Roblox Group

#### `group_info` - read
Read a Roblox group's public info and current shout (no auth).

| Parameter | Type | Req | Description |
|---|---|---|---|
| `groupId` | number |  | Group id (defaults to ROBLOX_CREATOR_GROUP_ID) |
