Skip to main content
Glama
Sigmatek LASAL MCP Server

Sigmatek LASAL MCP Server

by Svel26

build_project

Compile a CLASS 2 project or download it to a PLC; supports async polling and configurable timeout.

Instructions

Compile the CLASS 2 project or download it to the PLC. Compilation closes this project's CLASS 2 IDE; an IDE opened for another project is reported, not killed. Download pings the PLC first. Supports async: true — the call then returns immediately with a jobId and you MUST poll check_job_status until it reports status completed/failed (the result is delivered there).

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": "build_project"
  }
}

Input Schema

NameRequiredDescriptionDefault
asyncNoRun in the background: returns { status: 'pending', jobId } — poll with check_job_status. Default false.
actionYes'compile' builds the project; 'download' transfers it to the PLC.
optionsNoCompile mode (compile only). RebuildAll is safest; BuildChanges is faster for incremental work.RebuildAll
lcp_pathNoAbsolute path to the .lcp file. Omit to use the selected project.
timeout_sNoTimeout in seconds for compile or download. Omit for default (600s).
connectionNoConnection string (e.g. 'TCPIP:192.168.1.100') or address-book name (download only). Omit to use the connection saved in the .lss file.
add_loader_anywayNoForce loader download even if the target OS already has a compatible loader (download only). Default: auto — the loader is sent for local LARS/loopback targets, skipped otherwise. Set false to disable, true to force.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changedv0.3.2
    • removedInput schema / properties / add_loader_anyway / default
      Removed value: -false
    • changedInput schema / properties / add_loader_anyway / description
      Previous value: -"Force loader download even if the target OS already has a compatible loader (download only)."New value: +"Force loader download even if the target OS already has a compatible loader (download only). Default: auto — the loader is sent for local LARS/loopback targets, skipped otherwise. Set false to disable, true to force."
    • addedInput schema / properties / async
      Added value: +{
      +  "default": false,
      +  "description": "Run in the background: returns { status: 'pending', jobId } — poll with check_job_status. Default false.",
      +  "type": "boolean"
      +}
  2. Added

TDQS

A4.1/5.0
Behavior5/5

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

With only openWorldHint in annotations, the description carries the full load and does so well: it discloses that compilation closes this project's IDE, that another project's IDE is reported rather than killed, and that download pings the PLC first. It also fully documents the async contract, including that the call returns a jobId and the real result is delivered through check_job_status.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded with the primary action, followed by side-effect warnings, then the async contract. Every sentence carries operational information, and nothing is repeated from the schema verbatim beyond necessary shorthand.

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 7-parameter mutation tool with no output schema, the description covers the critical ambiguities: side effects on the IDE, the download precondition, and the async result path. It does not explain what a compile or download result contains, though the async note partly implies delivery via the job record.

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 100%, so the baseline is 3; the description earns an extra point by adding meaning the schema does not: a mandatory polling loop until status is completed or failed, and the fact that the result is only available there. Other parameters (options, connection, add_loader_anyway, timeout_s) are left entirely to the 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?

States a specific verb pair and resource: compile the CLASS 2 project or download it to the PLC. It is clear what the tool does, but it does not distinguish itself from siblings such as deploy_all or apply_project_changes, so an agent cannot route between them from this text alone.

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?

The action enum and the sentence structure make the two modes understandable, and the async note gives a clear follow-up path via check_job_status. However, there is no explicit statement of when to prefer this tool over the deployment-oriented siblings, and no exclusions are offered.

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