Skip to main content
Glama

new_library

Creates a LabVIEW project library (.lvlib) and adds listed VIs as members so they use library-qualified item names.

Instructions

Create a project library (.lvlib) and make the VIs in files its members (each VI is saved, so it knows its library). Its items are then named My.lvlib:a.vi inside LabVIEW.

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_library"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYes
filesYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/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 a real side effect: each VI in `files` is saved so it records its owning library, and items become namespaced as `My.lvlib:a.vi`. That is exactly the kind of mutation context an agent needs before calling. It still omits overwrite behavior if `path` already exists and any error/rollback semantics.

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, front-loaded with the creation action and followed by the observable consequence. The parenthetical and inline code spans are dense but each carries information; nothing is padding.

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 needn't be described, and the key write side effect is covered. But for an unannotated mutation tool with zero schema coverage, the missing `path` semantics and undefined behavior on an existing library leave real gaps.

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 it partially does: `files` is clarified as the VIs that will become members and be saved. `path` is never explained — whether it is the `.lvlib` file path, a directory, or must end in `.lvlib` — leaving one of two parameters 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?

The description names a specific verb and resource — 'Create a project library (`.lvlib`)' — plus the membership action on `files`, which is far more precise than a bare 'new_library'. It doesn't explicitly contrast with siblings like `new_project` or `new_class`, but the distinct resource makes selection straightforward.

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?

Usage is only implied: the agent can infer this is the tool for bundling existing VIs into a library rather than creating a project or class. There is no explicit when-to-use statement, no prerequisites, and no named alternative for the case where the VIs should stay outside a library.

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