Skip to main content
Glama

legend

Name waveform chart, graph, or XY graph plots and display one row per name on the chart, then save the VI for use in LabVIEW.

Instructions

Name the plots of a waveform chart, waveform graph or XY graph and show one legend row per name: names SP, PV. Saves the VI (runs vendor/Legend.vi or LegendGraph.vi).

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

Input Schema

NameRequiredDescriptionDefault
namesYes
targetYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.1/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 burden, and it does disclose one important side effect: the VI is saved. It also reveals the underlying implementation (vendor/Legend.vi or LegendGraph.vi), which hints at two execution paths. It does not say whether existing legend names are replaced, whether the save can be suppressed, or what happens on invalid targets.

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?

One sentence, front-loaded with the action and its effect on the chart. The trailing parenthetical about vendor/Legend.vi and LegendGraph.vi is implementation detail that adds little for the caller, but overall the text is tight.

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?

An output schema exists, so return values need not be described, and the save side effect is covered. Still, for a tool with two required parameters and no annotations, leaving 'target' completely undefined means an agent cannot confidently construct a call, which is a substantial completeness gap.

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%, so the description must document both parameters. The example 'names `SP, PV`' usefully implies names is a comma-separated list of plot labels, but 'target' is never explained at all — it is unclear whether it is a VI path, a graph reference, or an object name. That leaves half the required parameters undefined.

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 action ('Name the plots') and a concrete set of resources ('waveform chart, waveform graph or XY graph') plus the resulting legend rows, so an agent can identify the operation. It does not explicitly contrast itself with plausible siblings such as label_object, so it stops short of a 5.

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 implied by the resource list: this tool is for chart/graph legends specifically, which narrows the domain. However, there is no statement of when to prefer it over related tools, no prerequisites, and no error conditions (e.g., what happens if the target has no legend).

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