Skip to main content
Glama

check_script

Validate a Roblox Studio script for syntax or load errors without saving changes, using either an existing script path or provided Lua source.

Instructions

Check a script for syntax/load errors without saving. If path given, checks existing; if source given, checks that.

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": "check_script"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathNoPath to an existing script to check (optional if source given)
clientNoTarget a specific Studio client by name (as shown on the panel, e.g. "studio"). Omit to auto-pick: the only active client, or the most recently active one when several are connected.
sourceNoLua source to check instead of reading from path (optional)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.7/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; it does add the valuable disclosure that nothing is saved, implying a read-only validation. However, it says nothing about what a 'check' returns on failure (error list, boolean, message), whether the source is executed in any way, or permission/client requirements — sizable gaps for a code-handling tool with zero annotation coverage.

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

Conciseness5/5

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

Two short sentences, zero filler, with the core purpose and the non-saving constraint front-loaded before the mode selection detail. Every clause earns its place.

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

Completeness3/5

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

There is no output schema, so the description is the only place the result shape could be described, and it does not say what a successful or failed check reports. For a three-parameter validation tool whose entire value is its result, that leaves a meaningful gap despite otherwise adequate input-side coverage.

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%, so all three parameters are already documented, including that path and source are optional. The description's 'if path given... if source given...' restates the schema's mutual-alternative hint but adds no precedence rule for the case where both are supplied, so the 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 and resource ('check a script') plus the exact scope of the check (syntax/load errors) and the key constraint 'without saving', which separates it from write_script/edit_script siblings. An agent can tell this is a non-persisting validation tool 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 Guidelines3/5

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

The second sentence explains the two input modes (path vs. source) rather than when to choose this tool over alternatives like edit_script or execute_lua. Usage is implied (validate before persisting), but there are no explicit when-to-use/when-not conditions and no named alternative.

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