Skip to main content
Glama

read_script

Read-only

Reads a Unity project text file by path, such as a C# script, and returns selected lines for targeted code inspection.

Instructions

Read a text file such as Assets/Scripts/Player.cs.

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

Input Schema

NameRequiredDescriptionDefault
pathYes
max_linesNo
start_lineNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.4/5.0
Behavior2/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false, and openWorldHint=false, so the safety profile is covered elsewhere. The description adds nothing beyond that: it does not disclose whether output is truncated, how max_lines interacts with file length, what happens for a nonexistent path, or how large files are handled.

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

Conciseness3/5

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

The single sentence is efficient and front-loaded with the verb, with no filler. However, the brevity comes from under-specification rather than economy, so it is short but not appropriately sized for a three-parameter file-reading tool.

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 and three undocumented parameters, the description should explain paging/truncation behavior and the return shape (raw text vs. numbered lines). Those are the main operational unknowns an agent needs to read a script reliably, and none are addressed.

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

Parameters1/5

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

Schema description coverage is 0% and the description mentions none of the three parameters. The two behavioral parameters, max_lines (default 200) and start_line (default 1), carry defaults but no explanation of whether reading is truncated, whether start_line is 1-based, or what the total line count reporting looks like. The only added meaning is that paths are project-relative, which does not compensate for the gap.

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 gives a specific verb and resource ('Read a text file'), and the example path 'Assets/Scripts/Player.cs' makes the target concrete. It is clearly distinguishable from the sibling write_script, but it never says so explicitly.

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?

There is no guidance on when to use this tool versus list_assets, find_objects, or get_editor_state, nor any note about when a text read is inappropriate (binary assets, prefabs, scenes). The agent must infer all of that from the name alone.

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