Skip to main content
Glama

close

Terminates an open LabVIEW VI, aborting it first, to free its name for reuse by new_vi. Handles unsaved changes by keeping, saving, or discarding them.

Instructions

Close a VI that is open in LabVIEW (aborts it first). Needed before new_vi reuses the name of an open VI. If it has unsaved changes (hand edits, typed values): unsaved "cancel" (default: keep it open and report), "save" or "discard".

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

Input Schema

NameRequiredDescriptionDefault
unsavedNocancel
vi_pathYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.3/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 well: it discloses that the close aborts the VI first (an effectively destructive action) and spells out the three unsaved-change outcomes, including the safe 'cancel' default that keeps the VI open. It does not say what happens if the VI is not open or what is returned, but the output schema likely covers the return.

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?

Two tight sentences that front-load the action and its abort behavior, then the unsaved-changes branches. The parenthetical examples ('hand edits, typed values') are useful rather than filler; no wasted wording.

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 two-parameter destructive operation with no annotations, the definition covers the risky behavior and the option semantics well, and an output schema exists so return values need not be explained. Error behavior for a non-open or invalid path is the notable omission.

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% and `unsaved` is declared as a bare string with no enum, so the description's enumeration of 'cancel' (default, keep open and report), 'save' and 'discard' supplies meaning the schema lacks entirely. `vi_path` is not described beyond being implicit in 'Close a VI', which is the main remaining gap.

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 ('Close a VI') plus a crucial behavioral qualifier ('aborts it first'). It also relates itself to the sibling new_vi, so an agent can distinguish it from open/delete without opening the schema.

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?

'Needed before new_vi reuses the name of an open VI' gives an explicit triggering condition tied to a named sibling. It lacks an explicit when-not-to-use statement (e.g., for VIs with desired unsaved edits) and any precondition that the VI must currently be open, but the context is clear.

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