Skip to main content
Glama

new_class

Creates a LabVIEW class file and assigns listed VIs as member VIs so related VIs can be organized under one class.

Instructions

Create a LabVIEW class (.lvclass) and make the VIs in files its member VIs (Motor.lvclass:Start.vi). place(vi + "|FP", "/abs/Motor.lvclass", "x,y", "Motor in") then adds a class control to a member VI. The private data stays empty: LabVIEW keeps it read-only to scripting (edit it in the class's Motor.ctl window).

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": {
      "path": "<path>",
      "files": "<files>"
    },
    "name": "new_class"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYes
filesYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.3/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full disclosure burden. It does add real behavioral insight the schema cannot convey — private data is left empty because LabVIEW keeps it read-only to scripting and must be edited in the class's `.ctl` window — but it says nothing about overwrite behavior if the path exists, permissions, or failure modes.

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?

Front-loaded with the action, and every sentence carries information, but the middle sentence embeds raw `place(vi + "|FP", "/abs/Motor.lvclass", "x,y", "Motor in")` syntax mid-prose, which is dense and easy to misparse as an argument of this tool.

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 description covers the core creation plus the class-member linkage and the private-data limitation. For a creation tool with zero annotations it still omits preconditions and collision handling, leaving the agent to guess what happens on an existing path.

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 and only partially does: it explains that `files` holds the VIs to enroll as members and shows the qualified-name shape, and the `place` example implies `path` is an absolute `.lvclass` location. Neither parameter is defined directly — `path` is never described in words, and expected `files` format (paths vs. qualified names) remains ambiguous.

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?

States a specific verb and resource: creates a LabVIEW `.lvclass` and assigns the VIs in `files` as member VIs, with the concrete `Motor.lvclass:Start.vi` naming form. The class-specific framing implicitly distinguishes it from new_library/new_vi/new_typedef, though no sibling is named explicitly.

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?

The description sketches a downstream workflow (use `place` with `vi + "|FP"` to add a class control to a member VI) and tells the agent where private data must be edited instead. It gives no rule for when to prefer this over new_library or new_vi, and no prerequisites or exclusions.

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