Skip to main content
Glama

invoke

Calls LabVIEW VI Server methods on objects or the application, maps named arguments and types, and chains follow-up calls to return outputs for VI automation.

Instructions

Call any VI Server method of an object and save its VI: invoke("a.vi%GObject|F1", "Add Input"), ("a.vi%Control|Chart", "Reinitialize to Default"). args maps input names to values ({"Name": "x"}); their types are guessed like set_prop or given in types ({"Name": "string"}). cls="App" calls LabVIEW application methods (target: any VI). then calls more methods, each on the previous one's return value ("on": "same": on the same object as the previous call): [{"method": "Save:Library", "args": {...}, "types": {...}, "on": "same"}]. Returns every output of the last call. List the methods with methods(cls).

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

Input Schema

NameRequiredDescriptionDefault
clsNoauto
argsNo
thenNo
typesNo
methodYes
targetYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.1/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 burden. It does disclose meaningful behavior — args types are guessed like set_prop or overridden via types, then chains calls with "on": "same", and the return value is every output of the last call — but it says nothing about failure modes, side effects, or that invoking arbitrary methods can mutate program state.

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?

Purpose is front-loaded in the first sentence and the remaining text is example-dense but each example illustrates a different parameter. The inline code makes it visually dense, though almost no sentence is removable without losing parameter guidance.

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

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a high-complexity, six-parameter tool with no annotations, the definition covers discovery (methods(cls)), target syntax, type guessing, chaining, and return semantics, and an output schema exists so return structure need not be spelled out. Nothing essential for correct invocation is missing.

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

Parameters5/5

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

Schema coverage is 0%, and the description compensates for all six parameters: target syntax is shown ("a.vi%GObject|F1"), method is named, args maps input names to values with an example, types overrides the guessing, cls selects the class, and then chains follow-up calls. This is meaningfully richer than the bare schema.

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 opens with a specific verb and resource: call any VI Server method of an object and save its VI. The worked examples ("Add Input", "Reinitialize to Default") make concrete what "method" means, distinguishing it from set_prop/get_prop, though it does not explicitly contrast itself with the sibling invoke-like tools.

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?

It gives real routing guidance: use cls="App" for LabVIEW application methods, use then to chain calls on a previous return value, and use methods(cls) to discover available methods. It stops short of stating when not to use invoke (e.g., prefer set_prop/get_prop for plain property access).

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