Skip to main content
Glama
Edge-JB
by Edge-JB

plc_project

Create, open, import, and export PLC projects; configure boot flags; control online runtime; and save as libraries via TwinCAT Automation Interface.

Instructions

PLC (IEC) project lifecycle on the open solution. Tree paths use ^ separators; the PLC ROOT node is TIPC^, the nested project INSTANCE node is TIPC^^ Project. NODE MATTERS: ITcPlcProject (boot flags / generate_boot) is on the ROOT; ITcPlcIECProject* (plcopen_export/import / save_as_library) is on the INSTANCE node. Actions: create_from_template (name, template, before?, save?) — new PLC project from a stock template; open (name, file=.plcproj/.tpzip, subType 0 copy/1 move/2 use-in-place, before?, save?) — import an existing project; info (treePath? default first under TIPC) — read identity (nestedProjectName/instanceName/childCount); set_boot_flags (treePath? = ROOT, autostart?, tmcFileCopy?) — config-only boot flags; plcopen_export (file, treePath? = INSTANCE, selection?) — write PLCopen XML; plcopen_import (file, treePath? = INSTANCE, options 0 NONE/1 RENAME/2 REPLACE/3 SKIP, selection?, folderStructure? default true, save?) — import PLCopen XML; save_as_library (file, treePath? = INSTANCE, install? default false — install:true mutates the local library repository) — save project as .library. GUARDED (live runtime/target writes), require confirm="ALLOW_PLC_DOWNLOAD" and default to no-op: generate_boot_project (treePath? = ROOT, autostart? default true) — generates the boot project to the target boot dir (restart runtime to load); online (command login/logout/start/stop/reset_cold/reset_origin, treePath? — changes live online/runtime state; the ConsumeXml envelope is UNVERIFIED on this build and surfaces GetLastXmlError verbatim, reset_* need a prior login, build>=4010). Safety projects are deliberately out of scope.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
fileNo
nameNo
saveNo
actionYes
beforeNoinsert before this sibling PLC project
commandNo
confirmNo
installNo
optionsNo
subTypeNo
templateNo
treePathNo
autostartNo
selectionNo
tmcFileCopyNo
folderStructureNo
Behavior4/5

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

With no annotations provided, the description carries full burden. It discloses many behaviors: guarded actions require confirm, default to no-op for generate_boot_project, online command envelope is UNVERIFIED, reset_* need prior login, install:true mutates local repository, subType 0 copy/1 move/2 use-in-place. However, it doesn't explicitly state whether these operations have side effects on runtime or persistence.

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?

The description is dense but front-loaded with context: tree path syntax and node significance first, then action list. Each action is compactly described with parameters in parentheses. However, the paragraph is long (over 20 lines) and could benefit from line breaks or bullet points for readability.

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?

Given the complexity (16 parameters, 9 actions, no output schema), the description is remarkably complete. It covers all actions, parameter defaults, node distinctions, guarded behavior, online command specifics, and scope exclusions. No major gaps identified for project lifecycle tasks.

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 description coverage is only 6%, so description must compensate. It defines parameter semantics for all 9 actions inline, e.g., 'create_from_template (name, template, before?, save?)' with plain-English explanation. It explains special defaults like 'treePath? = ROOT' and 'treePath? = INSTANCE' for different actions. However, some parameters like 'before', 'save', 'selection' lack detailed specs on their effects.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

Description clearly specifies verb+resource: 'PLC (IEC) project lifecycle on the open solution.' It lists all 9 actions with specific purposes, distinguishing each (e.g., create vs open vs info vs online). The description differentiates from siblings like plc_download and plc_pou by focusing on project-level lifecycle actions.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicit when-to-use: 'Actions:' enumerate all operations. Provides critical context like node matters (ROOT vs INSTANCE), guarded actions requiring confirm='ALLOW_PLC_DOWNLOAD', and defaults (e.g., default no-op for generate_boot_project, default treePath for info and set_boot_flags). The description also states out-of-scope: 'Safety projects are deliberately out of scope.'

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Edge-JB/TwinCAT-XAE-MCP'

If you have feedback or need assistance with the MCP directory API, please join our Discord server