Skip to main content
Glama

Read build script

read_script
Read-only

Read a script with line numbers, before edit_script.

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": {
      "scriptId": "<scriptId>"
    },
    "name": "read_script"
  }
}

Input Schema

NameRequiredDescriptionDefault
linesNoe.g. "300-600"
scriptIdYesFrom execute_script/edit_script, or a buildId, or 'latest'.

Schema Changelog

Changes observed during successful MCP inspections.

No schema history has been recorded yet.

TDQS

B3.4/5.0
Behavior3/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 fully covered by structured data. The description adds two things beyond that: output is line-numbered, and the intended call ordering relative to edit_script. It says nothing about pagination or large-script behavior.

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 short sentence, front-loaded with the action and output shape, with no filler. It is arguably too terse rather than too long, but nothing in it is wasted.

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 two-parameter read tool with full schema coverage and annotations covering safety, this is close to sufficient. The remaining gap is that the description doesn't quantify the line-numbering output or note that the lines parameter is optional for whole-file reads, both of which affect how the result should be interpreted.

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 both scriptId (identifier sources including 'latest') and lines ("300-600" pattern) are already fully documented in the schema. The description adds no meaning beyond that, which is the expected baseline when the schema does the work.

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?

Names a specific verb and resource ("Read a script") and adds scope detail with "with line numbers." It partially differentiates itself by pointing at edit_script as the follow-on action, though it doesn't contrast with read-oriented siblings such as get_schematic or viewer_get_build.

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?

"before edit_script" implies a read-before-modify workflow, which is genuine usage context. However, it gives no explicit when-to-use vs. when-not-to-use guidance and no exclusions, so an agent must infer that this is for inspecting scripts prior to mutating them.

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