Skip to main content
Glama
dcc-mcp-roblox-studio
by dcc-mcp

roblox_script_read

Read-onlyIdempotent

Read the source code of a Roblox Script, LocalScript, or ModuleScript from an open Studio session using its path or instance ID, so you can inspect and edit it.

Instructions

Read the source of a Script, LocalScript, or ModuleScript.

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": {
      "path": "<path>"
    },
    "name": "roblox_script_read"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYes
studio_idNo
instance_idNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.9/5.0
Behavior3/5

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

Annotations already declare readOnlyHint and idempotentHint, so safety is covered. The description adds that it returns source code for three specific script classes, but says nothing about size limits, truncation, or behavior when the path points to a non-script instance.

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 tight sentence that front-loads the verb and the affected script types. It is concise, though arguably too terse for a tool with three undocumented parameters.

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?

With no output schema, zero-annotated schema, and two unexplained optional parameters, the description is thin. It omits return format, error conditions, and how path relates to studio_id and instance_id, which an agent needs to call this correctly.

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 coverage is 0%, so the description must carry the parameter burden. It only hints that 'path' targets a script; it never explains what path format is expected or the distinct roles of studio_id and instance_id, which are otherwise undocumented.

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 states a specific verb (Read) and resource (source of Script/LocalScript/ModuleScript), which is clearly distinguishable from siblings like roblox_inspect_instance or roblox_search_game_tree. It does not explicitly contrast with those siblings, keeping it short of a 5.

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

Usage Guidelines2/5

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

No explicit guidance on when to use this tool versus alternatives such as roblox_inspect_instance or roblox_search_game_tree. The only implied usage is that the agent must already have a path and want source text.

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