Skip to main content
Glama

Get the content of a script in the Roblox Game Client

get-script-content

Get decompiled source for a Roblox script by path, script proxy, or getter code. Use startLine/endLine for a focused range when the full script is large.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
endLineNoOptional end line number (1-based, inclusive). If omitted, returns up to maxLines lines.
maxLinesNoMaximum lines to return (default: 80, max: 2000). Use explicit startLine/endLine ranges for large scripts.
startLineNoOptional start line number (1-based). If omitted, returns a bounded preview from line 1 instead of the full script.
scriptPathNoThe path to the script to get the content of. If passing a GC'd script proxy (e.g. <ScriptProxy: 1_316566>), use the literal angle brackets < > — do NOT HTML-encode them as &lt; or &gt;.
maxOutputCharsNoMaximum characters to return to the model (default: 6000, max: 32000). Raise only when a single result genuinely needs more; large outputs degrade model performance.
scriptGetterSourceNoThe code that fetches the script object from the game (should return a script object, and MUST be client-side only, will not work on Scripts with RunContext set to Server)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior3/5

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

With no annotations, the description must carry the behavioral disclosure burden. It communicates that output is decompiled source and that large scripts benefit from line-range requests, but it does not describe failure modes, partial-return behavior, or whether getter code has side effects beyond what the schema already states.

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?

The description is short, front-loaded, and free of filler. It efficiently conveys the core purpose and one important usage tactic, though it could have included sibling differentiation without becoming verbose.

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?

For a six-parameter tool with no output schema and no annotations, the description is somewhat thin. It implies one of three lookup modes is needed but never states that at least one must be provided, and it does not explain return format or error behavior beyond what the schema says.

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 description coverage is 100%, so the baseline is 3. The description adds a high-level mapping of the three lookup mechanisms, but most parameter meaning is already fully documented in the input schema.

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 uses a specific verb and resource: 'Get decompiled source for a Roblox script'. It also names the three lookup modes (path, script proxy, getter code), making it clear what the tool does and how it differs from search-oriented siblings like script-grep.

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?

The description gives clear practical guidance: use startLine/endLine ranges when the script is large. It does not explicitly contrast this tool with alternatives such as script-grep or semantic-search-scripts, but the usage context is clear.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources