Skip to main content
Glama

set_value

Sets a constant or live front-panel control value in a LabVIEW VI from a target and value, supporting numeric, string, Boolean, array, cluster, and XML formats.

Instructions

Set a constant or control value. target a.vi%NumericConstant|N (class without spaces) or a.vi%Control|SP for a front-panel control (its live value: the VI is opened first if it is closed, since a closed VI forgets it; save_defaults keeps it). fmt dec|frc|str|bool|XML, or expr for any type: [1, 2, 3] (array), c:(1.5, s:text, b:true) (cluster), numbers, s:text.

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>",
      "value": "<value>"
    },
    "name": "set_value"
  }
}

Input Schema

NameRequiredDescriptionDefault
fmtNodec
valueYes
targetYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.8/5.0
Behavior4/5

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

With no annotations, the description does real work: it discloses that a closed VI is opened first because it forgets its live control value, and that save_defaults affects persistence — non-obvious side effects an agent must know before mutating. It omits error behavior and whether the write is reversible, keeping it short of a 5.

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 core purpose is front-loaded and every clause carries information about target or value syntax. The nested parenthetical about the VI being opened is dense and slightly interrupts the target-syntax flow, but nothing is redundant.

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?

For a three-parameter mutation tool with no annotations, the description covers target addressing, format options, and the important side effect of opening a closed VI; an output schema exists, so return values need not be described. It stops short of stating permissions or failure conditions.

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 coverage is 0%, yet the description defines all three parameters: target path syntax with class naming rules, and a fmt enumeration (dec|frc|str|bool|XML|expr) that the schema leaves as a free string. Value grammar is also spelled out for arrays, clusters, numbers, and strings, though default handling (fmt=dec) is left to the schema.

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 opening sentence states a specific verb plus two concrete writable resources (constant, front-panel control) and distinguishes the two by target syntax (`%NumericConstant|N` vs `%Control|SP`). It does not explicitly contrast with siblings like get_value or set_prop, so the reader must infer the read/write and property/value boundaries.

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 implied through the target forms and the note that save_defaults retains the live value, which hints at when persistence matters. There is no explicit when-to-use/when-not statement or named alternative (e.g. set_prop for properties), so selection guidance is only partially present.

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