Skip to main content
Glama

validate_view_scripts

Validate every embedded script in a view using its real Ignition context and return per-script diagnostics plus a validity flag.

Instructions

Validate every embedded script using its real Ignition context.

Args: view_path: View to validate. project: Project name; defaults to the active project.

Returns: Per-script diagnostics and a validity flag.

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": {
      "view_path": "<view_path>"
    },
    "name": "validate_view_scripts"
  }
}

Input Schema

NameRequiredDescriptionDefault
projectNo
view_pathYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.2/5.0
Behavior3/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 validation runs against a real Ignition context rather than statically, and that output includes per-script diagnostics plus a validity flag, but it does not state whether the operation is read-only, what permissions are needed, or whether it executes/affects the scripts in any way.

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 summary sentence is front-loaded and the Args/Returns layout is scannable. Slightly formulaic, but no sentence is wasted given the two-parameter surface.

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?

An output schema exists, so not explaining return values in depth is acceptable, and the description does mention diagnostics and a validity flag. However, with zero annotation coverage and zero schema description coverage, the definition leaves behavioral questions (side effects, safety, performance on large views) unanswered.

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. It documents both parameters adequately (view_path is the view to validate; project defaults to the active project), but adds no format details such as what a view path looks like or how the default project is resolved.

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 and resource: validate every embedded script in a view, using its real Ignition context. This is meaningfully distinct from project-wide or syntax-only validation, though the description never names a sibling to sharpen the boundary.

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 explicit statement of when to choose this tool over validate_project_scripts, validate_script_syntax, or list_view_scripts. The phrase 'using its real Ignition context' faintly implies this is the context-aware option versus static syntax checking, but the agent must infer that.

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