Skip to main content
Glama
EL4CTEO

Roblox Studio MCP

Read scripts

script_read
Read-onlyIdempotent

Read Luau source from Roblox scripts, including unsaved edits, with line numbers to pass to script_edit.

Instructions

Reads Luau source from one or more scripts, with line numbers that script_edit accepts back verbatim.

Source comes from the Studio script editor's live buffer, so anything the user has typed but not yet saved is included. Reading the saved property instead would hand you stale code and you would 'fix' the change they just made.

Pass every script you need in one call. startLine/endLine apply to all of them, so use them when following one range across several files and read whole files otherwise.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathsYesScript paths, e.g. ["ServerScriptService.Systems.Combat"].
endLineNoLast line to return, inclusive. Omit to read to the end.
studioIdNoTarget Studio; omit for the active one.
startLineNoFirst line to return, 1-based and inclusive. Omit to start at the top.
Behavior5/5

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

Annotations already cover read-only and idempotent hints, but the description adds valuable context: it reads the live editor buffer (including unsaved changes) and returns line numbers acceptable to script_edit. This goes beyond what annotations provide and warns against stale saved data.

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?

Front-loaded purpose in first sentence, followed by two concise paragraphs each adding essential context—source-buffer rationale and batching/range guidance. Every sentence earns its place with zero redundancy.

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?

Covers critical operational details: live buffer source, line-number compatibility, batching, and range semantics. With no output schema, the note about line numbers hints at the return format, but an explicit return structure would make it fully complete.

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 covers all parameters with descriptions, but the description adds operational semantics: startLine/endLine apply to all given paths, and paths should be batched. This clarifies parameter interaction beyond raw schema, earning above baseline.

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?

Description clearly states it reads Luau source from scripts, and explicitly distinguishes from the script_edit sibling by noting line-number compatibility. The verb and resource are specific and unambiguous.

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?

Provides concrete usage guidance: batch all scripts in one call, and explains that startLine/endLine apply uniformly across all given paths. It clarifies the data source (live buffer vs saved property) which informs when to use this tool, though it doesn't explicitly exclude other read-like siblings like script_grep.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/EL4CTEO/rbx-studio-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server