Skip to main content
Glama

label_object

Assign a visible label to an unlabeled LabVIEW object, enabling other tools to target it via vi%GObject| or vi%Control|.

Instructions

Give an object without a usable label (UID from analyze/wires) a visible label, so every other tool can address it as vi%GObject|<label> (panel=True for front-panel objects, then vi%Control|<label>).

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>",
      "uid": "<uid>",
      "label": "<label>"
    },
    "name": "label_object"
  }
}

Input Schema

NameRequiredDescriptionDefault
uidYes
labelYes
panelNo
vi_pathYes

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?

With no annotations, the description carries the full behavioral burden. It usefully discloses the resulting addressing convention (`vi%GObject|<label>`, or `vi%Control|<label>` when panel=True), which is real behavioral context beyond the schema. It does not say whether the change is reversible, what happens on an already-labeled object, or whether the label persists across sessions.

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?

A single sentence with the core action front-loaded and the addressing consequence following. The parenthetical about panel=True is slightly compressed but earns its place. No filler.

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 four-parameter mutation tool with an output schema and no annotations, the description covers the purpose and the key downstream effect well. The remaining gap is the unexplained `vi_path` parameter and unstated edge-case behavior, which is a moderate but not fatal omission.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0% across four parameters, so the description must compensate. It gives meaning to `uid` (a UID from analyze/wires) and `panel` (True for front-panel objects), but says nothing about `vi_path` and only weakly implies what `label` should contain. Two of four parameters remain undocumented in both schema and description.

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 ('give an object ... a visible label') and explains the downstream effect: the object becomes addressable as `vi%GObject|<label>`. It also ties the input to UIDs produced by analyze/wires, which implicitly separates it from those read-only inspection tools. Sibling differentiation is present but indirect rather than explicit.

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 condition 'an object without a usable label' implies when to reach for this tool, and 'UID from analyze/wires' tells the agent where the identifier comes from. However, there is no explicit statement of when not to use it, what to do if the object already has a usable label, or what alternative exists for relabeling.

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