Skip to main content
Glama

create

Builds LabVIEW constants, controls, or indicators—including arrays, clusters, numerics, Booleans, strings, enums, and typedef .ctl links—then set values with set_value.

Instructions

Create a constant, control or indicator, including arrays and clusters: elements of any number type, bool, string or enum(a, b). U8, DBL[], cluster(I32, string), cluster(DBL[], bool)[], DBL[][], or a typedef .ctl path (a constant linked to it). Builds the array/cluster shell and its elements (labels <label>_e, <label>_0, <label>_1, ...). Set values afterwards with set_value fmt expr. location x,y; front-panel objects (control/indicator) go on the panel's top level.

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": {
      "vi_path": "<vi_path>",
      "type": "<type>",
      "location": "<location>",
      "label": "<label>"
    },
    "name": "create"
  }
}

Input Schema

NameRequiredDescriptionDefault
typeYes
whatNoconstant
labelYes
vi_pathYes
locationYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.2/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does disclose real side effects: it 'builds the array/cluster shell and its elements' with generated element labels (`<label>_e`, `<label>_0`, ...) and requires a second call to set values. It leaves out what happens on label collision, whether an existing object is overwritten, and any permission/state preconditions.

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 action, then type syntax, then post-creation and placement notes — every clause carries information. The example list is dense and slightly run-on, but none of it is filler.

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

Completeness5/5

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

Output schema exists, so return values need no explanation; the description instead covers the type grammar, generated element naming, placement rules, and the required follow-up call. That is sufficient for an agent to invoke a 5-param creation tool correctly.

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 coverage is 0%, so the description must compensate; it does for three of five params — `type` (rich syntax examples), `label` (drives generated element labels), and `location` (x,y format) — and implies `what` via 'constant, control or indicator'. However `vi_path` is never explained and the valid `what` values are not tied explicitly to the parameter, leaving a real gap at 0% coverage.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource set ('Create a constant, control or indicator, including arrays and clusters') and scopes the type grammar with concrete examples (U8, DBL[], cluster(I32, string), typedef .ctl path). An agent can tell this apart from value-mutation siblings, which are explicitly named.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicitly routes follow-up work to set_value ('Set values afterwards with set_value fmt `expr`') and clarifies panel placement ('front-panel objects (control/indicator) go on the panel's top level'). It does not address when to prefer this over adjacent creation siblings such as insert, new_typedef, or new_vi, and does not state prerequisites (e.g., an open VI).

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