Skip to main content
Glama

loop

Adds shift registers or tunnels to LabVIEW WhileLoop targets and sets mode, label, count, status, or auto-index options for VI edits.

Instructions

Edit a loop. target a.vi%WhileLoop|L1. action addSR (mode = y position) or tunnel:<idx>/tunnel:U<uid> (mode -2 count, -1 status, 0 Regular, 1 Auto Index).

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>",
      "action": "<action>"
    },
    "name": "loop"
  }
}

Input Schema

NameRequiredDescriptionDefault
modeNo
labelNo
actionYes
targetYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.9/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full burden of behavioral disclosure. It implies mutation through 'Edit' and action names, but does not state side effects, reversibility, permission requirements, or what happens to existing loop structure.

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 description is front-loaded and compact, with no wasted sentences. The second sentence is dense and uses cryptic abbreviations, but overall it is appropriately concise for a short tool definition.

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

Completeness2/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 no annotations and 0% schema description coverage, the definition is under-specified. It covers the main target/action/mode syntax but omits the label parameter and all behavioral context, though the presence of an output schema reduces the need to explain return values.

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 for undocumented parameters. It substantially explains target format, action values, and mode mappings, but the label parameter is never mentioned and some action/mode relationships remain terse.

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: 'Edit a loop.' It also gives target and action syntax that clarify the tool operates on loop structures such as shift registers and tunnels. It does not distinguish the tool from any sibling, but the core purpose is clear.

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

Usage Guidelines2/5

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

The description gives no explicit when-to-use guidance, prerequisites, or alternatives. Usage is only implied by 'Edit a loop' and the action values, without explaining when this tool should be chosen over related tools like configure_node or move.

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