Skip to main content
Glama

set_property_change_script

Creates or replaces a property-change script for a component property in an Ignition Perspective view. Supports dry-run previews, confirmation, and enable controls for safe updates.

Instructions

Create or replace a property-change 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": {
      "view_path": "<view_path>",
      "component": "<component>",
      "property": "<property>",
      "script": "<script>"
    },
    "name": "set_property_change_script"
  }
}

Input Schema

NameRequiredDescriptionDefault
scriptYes
confirmNo
dry_runNo
enabledNo
projectNo
propertyYes
componentYes
view_pathYes

Output Schema

NameRequiredDescriptionDefault

No arguments

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?

No annotations are provided, so the description carries the full behavioral burden. It discloses that the operation may replace an existing script, which is useful, but it says nothing about required permissions, whether replacement is reversible, how confirm/dry_run/enabled affect behavior, or what side effects occur.

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 definition is a single front-loaded sentence with no wasted wording. However, its brevity is under-specification rather than effective conciseness for a tool with 8 parameters and no annotations.

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?

An output schema exists, so return values need not be explained. But for a tool with 8 parameters, 4 required, zero schema coverage, and no annotations, the description is far too thin to be complete. It omits parameter meaning, usage conditions, and operational side effects.

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% across 8 parameters, and the description mentions none of them. It does not explain view_path, component, property, script, enabled, project, confirm, or dry_run, so it fails to compensate for the missing schema documentation.

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: 'Create or replace a property-change script.' An agent can distinguish this from delete_property_change_script and list_property_change_scripts by name. It does not explicitly contrast with set_event_script or other set_* siblings, so sibling differentiation is only partial.

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 alternatives such as set_event_script or when a property-change script is appropriate. The create-or-replace semantics imply that an existing script may be overwritten, but no conditions, prerequisites, or exclusions 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