Skip to main content
Glama

set_prop

Write any VI Server property of a LabVIEW object and save its VI. Set nested sub-properties, colors, arrays, or label text by target, property name, and value.

Instructions

Write any VI Server property of an object and save its VI: set_prop("a.vi%Control|N", "Visible", "false"), ("a.vi%Control|N", "Label.Text", "Speed"), ("a.vi%Control|Mode", "Strings[]", "[Off, On]"), ("a.vi%Control|N", "Position:Left", "40"). prop is a property name (sub-properties with :), optionally followed by . and a property of the object it returns. type is guessed (bool, DBL, string, DBL[], string[]) unless given (I32, U32 for colors, ...). cls picks the class (Control, Numeric, Enum, Ring, String, Boolean, Array, Cluster, GraphChart, GObject, Node, Constant, Structure); auto reads it from the VI.

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": {
      "target": "<target>",
      "prop": "<prop>",
      "value": "<value>"
    },
    "name": "set_prop"
  }
}

Input Schema

NameRequiredDescriptionDefault
clsNoauto
propYes
typeNoauto
valueYes
targetYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/5.0
Behavior4/5

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

With no annotations at all, the description carries the full burden and does disclose the key behavioral facts: the tool mutates state and persists it by saving the VI, and `type` is guessed unless overridden. It adds the auto class-inference behavior of `cls`. It does not say what happens on an invalid property or type mismatch, which for a mutation tool is a remaining gap.

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?

Front-loaded with the core verb phrase, then examples, then parameter notes in a logical order with no filler. The example block is somewhat dense but earns its space by demonstrating the otherwise undocumented target and value formats.

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 return values need no explanation, and the critical mutation/save side effect and inference defaults are covered. For a mutation tool with zero annotation coverage and a 0% documented schema, however, the unexplained `target` addressing scheme and absent error/edge-case behavior leave the definition short of complete.

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 explains `prop` (dot and colon for sub-properties and returned-object properties), `type` (guessed types plus I32/U32 for colours), and `cls` (enumerated class options with `auto`). `target` and `value` are only conveyed implicitly through examples - the `a.vi%Control|N` addressing syntax is never explained - so coverage is partial for a 5-parameter tool.

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?

"Write any VI Server property of an object and save its VI" states a specific verb (write), resource (VI Server property), and an important side effect (the VI is saved). It is easy to distinguish from get_prop by the write framing, though the description never clarifies how it differs from set_value, another plausible write 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?

Four concrete call examples show the intended shape of a call, and the `cls`/`type` defaults hint at the normal path (let them auto-resolve). There is no explicit statement of when to use this versus set_value or get_prop, nor of preconditions such as the VI needing to be open or a licence being present.

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