Skip to main content
Glama

script_crear_editar

script_crear_editar

Create a Roblox script or replace its content; the path sets the parent and script name, letting AI agents write or overwrite scripts directly in Studio.

Instructions

Crea un script o reemplaza su contenido; la ruta define padre y nombre.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "ruta": "<ruta>",
      "contenido": "<contenido>"
    },
    "name": "script_crear_editar"
  }
}

Input Schema

NameRequiredDescriptionDefault
rutaYes
tipoNo
contenidoYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.2.0

TDQS

B3.1/5.0
Behavior3/5

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

With no annotations, the description carries the full burden, but it does disclose the key behavioral fact that existing content is replaced rather than appended. It says nothing about what happens if the path already exists as a different tipo, whether the parent must exist first, or what permissions are required.

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?

A single compact sentence with the create-or-replace semantics front-loaded and separated by a semicolon for the path rule. No wasted words, though the extreme brevity leaves the reader no fallback detail.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a mutation tool with no annotations, no output schema, and 0% schema documentation, the description omits the default for `tipo`, the effect of changing tipo on an existing script, and what the response contains. An agent cannot fully predict the outcome of the call from this definition.

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

Parameters2/5

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

Schema description coverage is 0%, so the description must compensate, and it only clarifies `ruta` ("la ruta define padre y nombre"). `contenido` needs no explanation, but the `tipo` enum (Script/LocalScript/ModuleScript) is undocumented, including what happens when it is omitted on an existing script.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description names a specific verb and resource ("Crea un script o reemplaza su contenido") and adds the upsert nature, so an agent knows this both creates and overwrites. It does not explicitly contrast with siblings such as script_leer or instancia_crear, but the purpose is unambiguous on its own.

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

Usage Guidelines3/5

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

Usage is only implied: the create-or-replace phrasing signals the tool applies when a script does not exist yet or its body must be swapped. There is no explicit when-not guidance, no mention of prerequisites, and no pointer to alternatives for reading or executing scripts.

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