Skip to main content
Glama
Sigmatek LASAL MCP Server

Sigmatek LASAL MCP Server

by Svel26

lars_runtime

Manage local LARS simulation workspaces to start, stop, and simulate PLC/HMI programs, point stations to simulated ports, and restore real targets.

Instructions

Manage local LARS (LASAL Runtime System) simulation instances. LARS runs one program per instance — use one workspace per station (PLC + HMI) so both run simultaneously on separate ports. Actions: list (auto-cleans stale workspaces), setup (create workspaces for all stations), start (auto-creates the workspace if the station is known but unconfigured), stop, remove, gc (lazy cleanup of unreferenced workspaces), set_station_target (point a station's .lss at its LARS instance), restore (revert .lss to the real target. After set_station_target, build_project/control_plc/plc_values/deploy_all operate on the LARS instance automatically.

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

Input Schema

NameRequiredDescriptionDefault
nameNoLARS workspace name (e.g. 'VisuPalletizer_PLC'). Required for start/stop/remove/set_station_target/restore when station is omitted.
actionYes'list' shows all configured LARS workspaces and their state (auto-cleans stale ones, but never the selected project's). 'setup' creates/updates LARS workspaces for the selected project's stations (or one station/lcp), recording the CLASS 2 project in MCP state and wiring the LASAL SCREEN (.lpr) project so LARS renders the screen locally. 'start' launches a LARS instance (auto-creates the workspace first if the station is known but unconfigured); reports the effective online port it probed (LARS builds differ in which port they serve). 'stop' terminates it, 'remove' deletes its workspace config. 'gc' runs lazy garbage collection: deletes auto-created workspaces that are not running and no longer referenced by any station .lss or published DataService stations.json, while always keeping workspaces of the selected project. 'set_station_target' points a station's .lss at the online port its LARS instance actually services (probed; never a port another running instance owns); 'restore' reverts to the saved real target. 'target_pc' switches an ARM-compiled .lcp to the PC (x86) compile target LARS requires (restore via 'restore'). 'simulate' runs the full no-hardware loop in one call: ensure workspace (auto-creates), switch ARM targets to PC, compile, start the local LARS instance (probing its effective online port), then download to it. 'screenshot' captures the LARS window of a running workspace (returns the PNG) — use it to visually verify LASAL SCREEN projects running locally.
dry_runNoWith action 'gc': report what would be removed without deleting anything. Default false.
stationNoStation name from the selected project's solution (e.g. 'PLC', 'HMI', 'Local'). Resolution is scoped to the selected project; a station that only exists in another project's workspace is refused, and multiple matches report an ambiguity error and list the candidates. Pass name= to disambiguate. Mutually exclusive with name.
lcp_pathNoAbsolute path to a .lcp to create a workspace for (setup only, when no station name is usable).
min_age_hNoWith action 'gc': only delete workspaces unreferenced for at least this many hours (overrides LASAL_MCP_LARS_GC_MIN_AGE_H; 0 = immediately.
project_dirNoSolution directory to auto-detect stations from and to scope station resolution (setup/list/start/stop/set_station_target/restore/target_pc/simulate. Defaults to the selected project.
compile_modeNoWith action 'simulate': CLASS 2 compile mode. Default RebuildAll (safest).RebuildAll
skip_compileNoWith action 'simulate': skip the CLASS 2 compile step (reuse the existing build). Default false.
skip_downloadNoWith action 'simulate': skip the download step (only compile + start). Default false.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.4.0
    • changedInput schema / properties / action / description
      Previous value: -"'list' shows all configured LARS workspaces and their state (auto-cleans stale ones, but never the selected project's). 'setup' creates/updates LARS workspaces for the selected project's stations (or one station/lcp), wiring both the CLASS 2 project and the LASAL SCREEN (.lpr) project so LARS renders the screen locally. 'start' launches a LARS instance (auto-creates the workspace first if the station is known but unconfigured); reports the effective online port it probed (LARS builds differ in which port they serve). 'stop' terminates it, 'remove' deletes its workspace config. 'gc' runs lazy garbage collection: deletes auto-created workspaces that are not running and no longer referenced by any station .lss or published DataService stations.json, while always keeping workspaces of the selected project. 'set_station_target' points a station's .lss at the online port its LARS instance actually services (probed; never a port another running instance owns); 'restore' reverts to the saved real target. 'target_pc' switches an ARM-compiled .lcp to the PC (x86) compile target LARS requires (restore via 'restore'). 'simulate' runs the full no-hardware loop in one call: ensure workspace (auto-creates), switch ARM targets to PC, compile, start the local LARS instance (probing its effective online port), then download to it. 'screenshot' captures the LARS window of a running workspace (returns the PNG) — use it to visually verify LASAL SCREEN projects running locally."New value: +"'list' shows all configured LARS workspaces and their state (auto-cleans stale ones, but never the selected project's). 'setup' creates/updates LARS workspaces for the selected project's stations (or one station/lcp), recording the CLASS 2 project in MCP state and wiring the LASAL SCREEN (.lpr) project so LARS renders the screen locally. 'start' launches a LARS instance (auto-creates the workspace first if the station is known but unconfigured); reports the effective online port it probed (LARS builds differ in which port they serve). 'stop' terminates it, 'remove' deletes its workspace config. 'gc' runs lazy garbage collection: deletes auto-created workspaces that are not running and no longer referenced by any station .lss or published DataService stations.json, while always keeping workspaces of the selected project. 'set_station_target' points a station's .lss at the online port its LARS instance actually services (probed; never a port another running instance owns); 'restore' reverts to the saved real target. 'target_pc' switches an ARM-compiled .lcp to the PC (x86) compile target LARS requires (restore via 'restore'). 'simulate' runs the full no-hardware loop in one call: ensure workspace (auto-creates), switch ARM targets to PC, compile, start the local LARS instance (probing its effective online port), then download to it. 'screenshot' captures the LARS window of a running workspace (returns the PNG) — use it to visually verify LASAL SCREEN projects running locally."
  2. Changed7 schema fields changedv0.3.2
    • changedInput schema / properties / action / description
      Previous value: -"'list' shows all configured LARS workspaces and their state (auto-cleans stale ones). 'setup' creates/updates LARS workspaces for the selected project's stations (or one station/lcp. 'start' launches a LARS instance (auto-creates the workspace first if the station is known but unconfigured), 'stop' terminates it, 'remove' deletes its workspace config. 'gc' runs lazy garbage collection: deletes auto-created workspaces that are not running and no longer referenced by any station .lss or published DataService stations.json. 'set_station_target' points a station's .lss at its LARS instance (127.0.0.1:<port>); 'restore' reverts to the saved real target. 'target_pc' switches an ARM-compiled .lcp to the PC (x86) compile target LARS requires (restore via 'restore')."New value: +"'list' shows all configured LARS workspaces and their state (auto-cleans stale ones, but never the selected project's). 'setup' creates/updates LARS workspaces for the selected project's stations (or one station/lcp), wiring both the CLASS 2 project and the LASAL SCREEN (.lpr) project so LARS renders the screen locally. 'start' launches a LARS instance (auto-creates the workspace first if the station is known but unconfigured); reports the effective online port it probed (LARS builds differ in which port they serve). 'stop' terminates it, 'remove' deletes its workspace config. 'gc' runs lazy garbage collection: deletes auto-created workspaces that are not running and no longer referenced by any station .lss or published DataService stations.json, while always keeping workspaces of the selected project. 'set_station_target' points a station's .lss at the online port its LARS instance actually services (probed; never a port another running instance owns); 'restore' reverts to the saved real target. 'target_pc' switches an ARM-compiled .lcp to the PC (x86) compile target LARS requires (restore via 'restore'). 'simulate' runs the full no-hardware loop in one call: ensure workspace (auto-creates), switch ARM targets to PC, compile, start the local LARS instance (probing its effective online port), then download to it. 'screenshot' captures the LARS window of a running workspace (returns the PNG) — use it to visually verify LASAL SCREEN projects running locally."
    • changedInput schema / properties / action / enum
      Previous value: -[
      -  "list",
      -  "setup",
      -  "start",
      -  "stop",
      -  "remove",
      -  "set_station_target",
      -  "restore",
      -  "target_pc",
      -  "gc"
      -]New value: +[
      +  "list",
      +  "setup",
      +  "start",
      +  "stop",
      +  "remove",
      +  "set_station_target",
      +  "restore",
      +  "target_pc",
      +  "gc",
      +  "screenshot",
      +  "simulate"
      +]
    • addedInput schema / properties / compile_mode
      Added value: +{
      +  "default": "RebuildAll",
      +  "description": "With action 'simulate': CLASS 2 compile mode. Default RebuildAll (safest).",
      +  "enum": [
      +    "RebuildAll",
      +    "BuildChanges"
      +  ],
      +  "type": "string"
      +}
    • changedInput schema / properties / project_dir / description
      Previous value: -"Solution directory to auto-detect stations from (setup/list only. Defaults to the selected project."New value: +"Solution directory to auto-detect stations from and to scope station resolution (setup/list/start/stop/set_station_target/restore/target_pc/simulate. Defaults to the selected project."
    • addedInput schema / properties / skip_compile
      Added value: +{
      +  "default": false,
      +  "description": "With action 'simulate': skip the CLASS 2 compile step (reuse the existing build). Default false.",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / skip_download
      Added value: +{
      +  "default": false,
      +  "description": "With action 'simulate': skip the download step (only compile + start). Default false.",
      +  "type": "boolean"
      +}
    • changedInput schema / properties / station / description
      Previous value: -"Station name from the solution (e.g. 'PLC', 'HMI', 'Local'). Picks the matching workspace. Mutually exclusive with name."New value: +"Station name from the selected project's solution (e.g. 'PLC', 'HMI', 'Local'). Resolution is scoped to the selected project; a station that only exists in another project's workspace is refused, and multiple matches report an ambiguity error and list the candidates. Pass name= to disambiguate. Mutually exclusive with name."
  3. Added

TDQS

A3.9/5.0
Behavior4/5

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

With only openWorldHint=true declared, the description carries the burden and does well: it discloses side effects an agent must know about — 'list' auto-cleans stale workspaces (but never the selected project's), 'gc' deletes auto-created workspaces that are not running and unreferenced while always keeping the selected project's, 'start' auto-creates a workspace first, 'set_station_target'/'restore' mutate and revert a station's .lss, and port probing avoids stealing a port another running instance owns. It also notes MCP state is recorded on 'setup'. Missing: permission/auth needs and error-path behavior (partially covered in the schema instead).

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 and the cross-tool routing rule are front-loaded, and sentences are dense but each conveys a distinct behavior (auto-create, probe, cleanup, revert). The action walkthrough largely duplicates the already-complete action enum documentation in the schema, which is the main avoidable redundancy.

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 an 10-parameter, 11-action lifecycle tool with no output schema, the description covers the full lifecycle, destructive semantics, and interoperability with sibling tools. Return shapes are only hinted for 'screenshot' (returns the PNG) and 'start' (reports the probed online port); what 'list', 'setup', or 'gc' return is unspecified, which is a modest gap given no output schema exists.

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 100%, so the schema already documents every parameter including the action enum, defaults, and the station/name mutual exclusion. The description adds workflow context (start auto-creates, port probing) rather than parameter-level syntax beyond the schema. Baseline 3 is appropriate since the schema does the heavy lifting.

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 the concrete resource ('local LARS (LASAL Runtime System) simulation instances') and enumerates the exact action set, so an agent knows this is a lifecycle/workspace manager, not a build or deploy tool. The closing sentence ('After set_station_target, build_project/control_plc/plc_values/deploy_all operate on the LARS instance automatically') distinguishes it from those siblings by explaining the routing relationship. The leading verb 'Manage' is broad, but the enumeration compensates.

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 selection guidance: 'LARS runs one program per instance — use one workspace per station (PLC + HMI) so both run simultaneously on separate ports', and 'simulate runs the full no-hardware loop in one call', which implicitly tells the agent when to prefer the one-shot action over the individual steps. It also says when to use 'screenshot' (to visually verify LASAL SCREEN projects locally). No explicit when-not guidance or comparison against hmi_runtime/other runtime alternatives.

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