Skip to main content
Glama

Recipes (saved Lua scripts)

recipes

List, run, save, preview, and import reusable Lua helper scripts for inspecting a live Roblox session; review imported code before saving or executing it.

Instructions

Reusable Lua scripts kept as .lua files in the recipes folder of Superbase (the user can also run them from the dashboard). action list shows the recipes with their description and arguments; action run executes one in the game (name, and args for the recipe, available there as the table args); action save writes a new recipe (name, code, and a title, description and usage line for its header; overwrite true replaces an existing one). Recipe names are lowercase letters, digits, - and _. Recipes are small helpers for inspecting the game, not storage for scripts that the user asks you to make: when the user wants a script (a freecam, an ESP, an auto farm, anything they want to keep or run), give the code to the user in your reply and do not save it here. Use save only when the user explicitly asks you to save a recipe. Recipes run with the executor's full permissions like execute_lua, so read a recipe's code before you run one you did not write. Sharing: preview_import downloads a recipe from a link (https only; GitHub files and gists, GitLab files; at most 100 KB) and shows its code and header without saving anything. Show that code to the user and say what it does. import saves it into the recipes folder, and only with confirm true after the user has agreed; it never runs the recipe. Imported code comes from the internet and is untrusted. run needs the connected state, the other actions do not.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "recipes"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlNopreview_import, import: https link to a .lua file on GitHub, a GitHub gist or GitLab.
argsNorun: arguments for the recipe, available in Lua as the table args.
codeNosave: the Lua code of the recipe. It can use args and should return a value. Only when the user explicitly asked you to save a recipe, never for a script that the user asked you to make.
nameNorun, save, import: the recipe name, for example list-remotes. import: defaults to the name of the file in the link.
titleNosave: short title for the header.
usageNosave: one line that describes the args it takes, for example 'contains (string, optional)'.
actionNolist (default), run, save, preview_import or import.
clientNoClient id from list_clients, for example c2. Defaults to the client that connected last.
confirmNoimport: must be true. Set it only after the user has seen the code from preview_import and agreed.
overwriteNosave, import: replace a recipe that already exists (default false).
descriptionNosave: one line that says what the recipe does.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv1.4.1
    • changedInput schema / properties / code / description
      Previous value: -"save: the Lua code of the recipe. It can use args and should return a value."New value: +"save: the Lua code of the recipe. It can use args and should return a value. Only when the user explicitly asked you to save a recipe, never for a script that the user asked you to make."
  2. Changed6 schema fields changedv1.4.0
    • changedInput schema / properties / action / description
      Previous value: -"list (default), run or save."New value: +"list (default), run, save, preview_import or import."
    • changedInput schema / properties / action / enum
      Previous value: -[
      -  "list",
      -  "run",
      -  "save"
      -]New value: +[
      +  "list",
      +  "run",
      +  "save",
      +  "preview_import",
      +  "import"
      +]
    • addedInput schema / properties / confirm
      Added value: +{
      +  "description": "import: must be true. Set it only after the user has seen the code from preview_import and agreed.",
      +  "type": "boolean"
      +}
    • changedInput schema / properties / name / description
      Previous value: -"run, save: the recipe name, for example list-remotes."New value: +"run, save, import: the recipe name, for example list-remotes. import: defaults to the name of the file in the link."
    • changedInput schema / properties / overwrite / description
      Previous value: -"save: replace a recipe that already exists (default false)."New value: +"save, import: replace a recipe that already exists (default false)."
    • addedInput schema / properties / url
      Added value: +{
      +  "description": "preview_import, import: https link to a .lua file on GitHub, a GitHub gist or GitLab.",
      +  "type": "string"
      +}
  3. First observedv0.1.0

TDQS

A4.5/5.0
Behavior4/5

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

Annotations only declare readOnlyHint=false, openWorldHint=true, idempotentHint=false and destructiveHint=false; the description adds substantially more: run executes with the executor's full permissions, recipes should be read before being run, imported code is untrusted internet content, import never executes the recipe, and overwrite replaces an existing recipe. What it leaves unsaid is the physical effect of overwrite/save on disk beyond 'replaces an existing one', which is minor here.

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?

Everything is packed into one long paragraph that front-loads the action list but then interleaves policy, security warnings and sharing rules without headers or bullets, making it harder to scan than it needs to be. The aside that the user can also run recipes from the dashboard is the one clause that does not clearly earn its place, though the length is largely justified by five actions and eleven parameters.

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 multi-action, eleven-parameter tool with no output schema, the description still covers what each action returns at the level an agent needs: list shows recipes with description and arguments, preview_import shows code and header, import saves without running. Preconditions (connected state), security posture, naming rules and the confirm gate are all present, leaving no material gap.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is already 100%, so the baseline is 3, but the description adds meaning the schema does not: recipe names must be lowercase letters, digits, - and _, args are exposed in Lua as the table args, and confirm must be set only after the user has seen preview_import output. It also explains which actions consume which parameters rather than leaving that to inference.

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?

The description names the resource (reusable Lua scripts stored as .lua files in the recipes folder) and enumerates each verb the single tool multiplexes: list, run, save, preview_import, import. It explicitly distinguishes run from execute_lua ('runs with the executor's full permissions like execute_lua') and preview_import from import, so an agent can tell the actions apart without opening the schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It gives hard routing rules: when the user wants a script, put the code in the reply and do not save it here; use save only when the user explicitly asks. It also states preview_import is the read-only path (shows code and header without saving) while import requires confirm true after the user agrees, and that run needs the connected state while the other actions do not.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.