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

tc_mapping

Export all variable links from a TwinCAT project as XML, apply exported mapping data to add links, or clear all links with confirmation.

Instructions

Bulk variable-mapping (ALL links) ops on the loaded TwinCAT project via ITcSysManager2/3, whole-project (no tree path): produce (read-only) — ProduceMappingInfo serializes every current variable link/mapping to ONE XML blob (the IDE's "Export Mapping Information"); the blob is returned as raw XML. consume (xml) — ConsumeMappingInfo re-applies/merges a previously produced blob, ADDING links; MUTATES the offline config only (no runtime impact until a later twincat_activate_configuration); optional save:true saves the solution after. clear — ClearMappingInfo deletes ALL variable links project-wide; destructive, GUARDED: requires confirm="ALLOW_TWINCAT_DELETE" (reuses the existing delete token); optional save:true. These are PROJECT-WIDE config-tree ops, NOT runtime writes. SAFETY: the mapping blob spans the whole project and CAN include TwinSAFE I/O image links — produce/consume/clear may touch safety-related links; by policy nothing should write toward safety, so run produce FIRST as a backup and treat the blob as opaque (export -> store -> consume round-trip). The exact XML schema is undocumented; test-import hand-edited blobs in the IDE before relying on them.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
xmlNo
saveNo
actionYes
confirmNo
Behavior5/5

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

With no annotations, the description carries full burden and excels: discloses read-only nature of produce, mutation scope of consume, destructive guarded nature of clear, that operations affect offline config only, and safety implications for TwinSAFE links. It also notes the XML schema is undocumented, setting proper expectations.

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 detailed but not overly verbose; it front-loads the purpose and method, then explains each action, safety, and notes. Some redundancy exists (repeating 'PROJECT-WIDE', 'NOT runtime writes'), but overall each sentence adds value given the complexity of the tool.

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?

For a tool with 4 parameters, no output schema, and no annotations, the description covers all essential aspects: operation semantics, parameter roles, safety precautions, scope, and even advises on handling the unknown XML schema. The return value of produce is explicitly stated. No gaps remain for an agent to operate correctly.

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 0%, so description must explain parameters. It does so by associating 'xml' with produce output and consume input, 'save' as optional for consume/clear, 'action' enum fully explained, and 'confirm' required for clear. While not a structured parameter list, it effectively conveys usage context. Minor improvement would be explicit mapping of each parameter to its operation.

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 clearly states it handles bulk variable-mapping operations (produce, consume, clear) on the entire TwinCAT project, not individual links. It mentions being whole-project and not tree-path specific. However, it does not explicitly differentiate from sibling tool 'tc_link', which likely handles individual link operations, leaving some ambiguity for the agent.

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?

The description provides detailed context for each operation: produce is read-only, consume mutates offline config, clear is destructive with a required confirmation token. It advises running produce first as a backup and warns about TwinSAFE involvement. However, it lacks explicit guidance on when to use this tool versus sibling tools like tc_link for individual mappings.

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