Skip to main content
Glama

read_project_script

Read a project library script by dotted module path to get its source and a quick syntax check, defaulting to the active project when none is specified.

Instructions

Read a project library script.

Args: module_path: Dotted module path, e.g. MyModule.SubModule. project: Project name; defaults to the active project.

Returns: The script source and a quick syntax check.

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": {
      "module_path": "<module_path>"
    },
    "name": "read_project_script"
  }
}

Input Schema

NameRequiredDescriptionDefault
projectNo
module_pathYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.3/5.0
Behavior2/5

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

With no annotations, the description carries the full burden. It discloses that a syntax check accompanies the source and that project falls back to the active project, but says nothing about lookup semantics (inheritance, missing module behavior), permissions, or whether the syntax check is blocking. That is thin for a tool with zero annotation coverage.

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?

Docstring-style Args/Returns layout is front-loaded and free of padding; every line adds information. The formatting is mechanical rather than prose, but nothing 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?

Both parameters are documented and an output schema covers return values, so the core is covered. What is missing is behavioral context an agent needs to choose this tool confidently — inheritance/lookup behavior and how it relates to the many other script-reading siblings.

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 description coverage is 0%, so the description must compensate, and it does: module_path is explained as a dotted path with a concrete example (``MyModule.SubModule``), and project is explained as defaulting to the active project. Only edge cases such as leading dots or case sensitivity are left unstated.

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?

States a specific verb and resource: read a project library script, keyed by a dotted module path. That distinguishes it from write_project_script and from event-script readers like get_event_script, though it does not explicitly name any sibling.

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?

Usage is only implied by the verb and resource — read this tool when you need a library script's source. There is no explicit guidance on when to prefer it over read_project_resource, get_event_script, or analyze_script, and no prerequisites or failure conditions are stated.

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

Deploy Server

Other Tools