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

tc_tree

Read, write, create, delete, rename, import, export, and list TwinCAT tree items. Batch operations combine multiple actions in one call for efficiency.

Instructions

TwinCAT System Manager tree items; paths use ^ separators (e.g. TIPC^MyPlc, TIID^Device 2 (EtherCAT)^Box 1). BATCH-FIRST: for more than one item use the matching *_batch action — N ops in ONE DTE attach, continue-on-error roll-up {count,succeeded,failed,results:[{...,ok,error?}]}, instead of an attach per call. Actions, grouped single / batch: READ identity — get / get_batch (paths:[...]); TEST existence — exists / exists_batch (paths:[...]); READ xml — get_xml (ProduceXml raw XML; summary:true for a compact identity + slot-module list); WRITE params — set_xml / set_xml_batch (items:[{path,xml}]) (ConsumeXml; compact unless returnXml:true); RENAME — rename / rename_batch (renames:[{name|path,newName}]) (keeps IO links intact); CREATE — create / create_batch (creates:[{parent,name,subType,before?,createInfo?}]); create VALIDATES the child and errors clearly on a malformed/ghost result instead of silently succeeding — adding an EtherCAT box needs a proper ESI-based createInfo (bare subType 9099 with no createInfo produces a blank-named ghost), recorded per-entry as ok:false; to ADD EtherCAT terminals/boxes from the ESI prefer the dedicated tc_ethercat tool; DELETE — delete / delete_batch (deletes:[{parent,name}], GUARDED: dryRun:true previews which children exist, confirm="ALLOW_TWINCAT_DELETE" to actually delete). Mutating *_batch verbs accept save:true to save once after the batch. No batch form: children (lists child items, incl. CPX-AP/Festo sub-modules), import (.xti under path), export (name to file), focus (Solution Explorer).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
xmlNo
fileNo
nameNo
pathNo
saveNo
itemsNo
pathsNo
actionYes
beforeNoinsert before this sibling
dryRunNo
confirmNo
createsNo
deletesNo
newNameNo
renamesNo
subTypeNo
summaryNo
reconnectNo
returnXmlNo
createInfoNo

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. Changed1 schema field changedv2.4.0
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
  2. Changed12 schema fields changedv2.1.1
    • changedInput schema / properties / action / enum
      Previous value: -[
      -  "get",
      -  "children",
      -  "exists",
      -  "get_xml",
      -  "set_xml",
      -  "create",
      -  "delete",
      -  "import",
      -  "export",
      -  "focus"
      -]New value: +[
      +  "get",
      +  "children",
      +  "exists",
      +  "exists_batch",
      +  "get_batch",
      +  "get_xml",
      +  "set_xml",
      +  "set_xml_batch",
      +  "rename",
      +  "rename_batch",
      +  "create",
      +  "create_batch",
      +  "delete",
      +  "delete_batch",
      +  "import",
      +  "export",
      +  "focus"
      +]
    • addedInput schema / properties / confirm
      Added value: +{
      +  "type": "string"
      +}
    • addedInput schema / properties / creates
      Added value: +{
      +  "items": {
      +    "properties": {
      +      "before": {
      +        "type": "string"
      +      },
      +      "createInfo": {
      +        "type": "string"
      +      },
      +      "name": {
      +        "type": "string"
      +      },
      +      "parent": {
      +        "type": "string"
      +      },
      +      "subType": {
      +        "maximum": 9007199254740991,
      +        "minimum": -9007199254740991,
      +        "type": "integer"
      +      }
      +    },
      +    "required": [
      +      "parent",
      +      "name",
      +      "subType"
      +    ],
      +    "type": "object"
      +  },
      +  "type": "array"
      +}
    • addedInput schema / properties / deletes
      Added value: +{
      +  "items": {
      +    "properties": {
      +      "name": {
      +        "type": "string"
      +      },
      +      "parent": {
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "parent",
      +      "name"
      +    ],
      +    "type": "object"
      +  },
      +  "type": "array"
      +}
    • addedInput schema / properties / dryRun
      Added value: +{
      +  "type": "boolean"
      +}
    • addedInput schema / properties / items
      Added value: +{
      +  "items": {
      +    "properties": {
      +      "path": {
      +        "type": "string"
      +      },
      +      "xml": {
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "path",
      +      "xml"
      +    ],
      +    "type": "object"
      +  },
      +  "type": "array"
      +}
    • addedInput schema / properties / paths
      Added value: +{
      +  "items": {
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
    • addedInput schema / properties / renames
      Added value: +{
      +  "items": {
      +    "properties": {
      +      "name": {
      +        "type": "string"
      +      },
      +      "newName": {
      +        "type": "string"
      +      },
      +      "path": {
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "newName"
      +    ],
      +    "type": "object"
      +  },
      +  "type": "array"
      +}
    • addedInput schema / properties / returnXml
      Added value: +{
      +  "type": "boolean"
      +}
    • addedInput schema / properties / save
      Added value: +{
      +  "type": "boolean"
      +}
    • addedInput schema / properties / summary
      Added value: +{
      +  "type": "boolean"
      +}
    • changedInput schema / required
      Previous value: -[
      -  "action",
      -  "path"
      -]New value: +[
      +  "action"
      +]
  3. First observedv1.0.0

TDQS

A4.8/5.0
Behavior5/5

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

No annotations were provided, so the description carries the full burden. It fully discloses critical behavioral traits: the guard on delete (dryRun:true and confirm=

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 comprehensive but somewhat dense and could be more efficiently structured. It front-loads the path separator convention and batch-first principle, which is good. However, after that the actions are presented in a long running sentence that mixes group headers with individual actions. Breaking the actions into a bulleted list or clearer paragraph structure would improve readability. As is, it earns its sentences but is slightly harder to parse than necessary for an agent.

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 tool's high complexity (20 parameters, 17 actions, no nested objects, no output schema, no annotations), the description is remarkably complete. It covers all actions, explains each batch form, warns about pitfalls (ghost entries for create without createInfo), and directs to the right sibling tool where appropriate. For a tool of this scope, the description leaves very few gaps—agents can reliably select the right action and understand the expected behavior.

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 5%, so the description must compensate. It adds significant meaning beyond the raw schema by explaining the purpose of key parameters: it describes the ^ path separator format (TIPC^MyPlc), the batch structures for each action (paths:[...], items:[{path,xml}], creates:[{parent,name,subType,before?,createInfo?}], etc.), what summary means for get_xml (compact identity + slot-module list), and what returnXml does for set_xml. However, not every parameter is covered in detail—some like 'reconnect' or 'subType' for single actions are not explained, preventing a perfect score.

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?

The description clearly states the tool manages TwinCAT System Manager tree items, with a specific verb+resource structure. It lists all 17 actions (READ, WRITE, RENAME, CREATE, DELETE, etc.) and distinguishes the tool from siblings like tc_ethercat by explicitly stating that adding EtherCAT terminals should use the dedicated tool. The description provides a comprehensive overview that fully differentiates this tool from its siblings.

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?

The description provides explicit when-to-use and when-not-to-use guidance: it recommends using the *_batch actions for more than one item, and for adding EtherCAT terminals/boxes it directs users to the 'dedicated tc_ethercat tool'. It also explains the batch roll-up behavior and the dryRun/confirm guardrails for delete operations. This makes it very clear when to choose which form of the tool and when to use an alternative.

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

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