Skip to main content
Glama

validate_project_scripts

Validate embedded scripts across every view in a project to catch errors, returning per-view diagnostics and a project-level validity flag.

Instructions

Validate embedded scripts across every view in a project.

Args: project: Project name; defaults to the active project.

Returns: Per-view script diagnostics and a project-level validity flag.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "validate_project_scripts"
  }
}

Input Schema

NameRequiredDescriptionDefault
projectNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.5/5.0
Behavior3/5

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

With no annotations at all, the description carries the full behavioral burden. It does disclose the return shape (per-view diagnostics plus a project-level validity flag), which is useful, but says nothing about whether the operation is read-only, how expensive a full-project sweep is, or what happens if the project name is invalid or the active project is unset.

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 purpose sentence is front-loaded and the Args/Returns blocks are compact and scannable. The structure is slightly formulaic and the Returns block largely duplicates the existing output schema, but nothing is verbose or wasted.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

This is a single-optional-parameter read-style validation tool with an output schema that already documents the return values, so the description is close to sufficient. The remaining gap is the absence of any statement about side effects, cost of a full-project sweep, or failure modes, which matters because no annotations are present to cover them.

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 0%, so the description must compensate, and it partially does by explaining that "project" is a project name and that omitting it falls back to the active project. It adds no guidance on accepted name format (display name vs. path vs. identifier) or on what happens when the default active project is not set.

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?

"Validate embedded scripts across every view in a project" states a specific verb (validate), a specific resource (embedded scripts), and a scope (every view in the project) that implicitly separates it from the sibling validate_view_scripts. It stops short of naming that sibling outright, so the differentiation is inferable rather than explicit.

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?

The "across every view" scope hints that this is the project-wide counterpart to per-view or per-syntax validation, but the description never states when to prefer it over validate_view_scripts, validate_script_syntax, or validate_project. No exclusions or prerequisites (e.g., project must exist/be open) are given.

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