Skip to main content
Glama
agenticcontrolio

TwinCAT Validator MCP Server

get_context_pack

Retrieve TwinCAT XML validation rules and OOP policies tailored to workflow stages—pre-generation for essential checks or troubleshooting for specific issues.

Instructions

Get curated knowledge base entries and OOP policy scoped by workflow stage.

Stages:

  • pre_generation: Returns high-priority non-fixable checks the LLM must get right when generating TwinCAT XML from scratch.

  • troubleshooting: Returns KB entries for specific check_ids (typically extracted from blocker lists after orchestration).

Args: stage: Workflow stage ("pre_generation" or "troubleshooting"). check_ids: Explicit check IDs (required for troubleshooting, ignored for pre_generation). target_path: Optional file/dir path for OOP policy resolution. max_entries: Maximum KB entries to return (default 10). include_examples: Include correct_examples and common_mistakes arrays (default True). Set False to save tokens. enforcement_mode: Policy enforcement mode ("strict" or "compat"). intent_profile: Programming paradigm intent — "oop", "procedural", or "auto". In pre_generation stage: - omitted: defaults to "oop" (backward compatible behavior). - "oop": Core + OOP check guidance is returned. - "procedural": Only core (non-OOP) check guidance is returned. - "auto": No file content is available at pre-generation time, so resolves to "procedural". Use "oop" or "procedural" explicitly for predictability. In troubleshooting stage: - explicit value is required (workflow guardrail). - value has no routing effect (check_ids drive selection).

Returns: JSON with effective_oop_policy, curated entries[], missing_check_ids[], intent metadata, truncation info, and meta envelope.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
stageNopre_generation
check_idsNo
target_pathNo
max_entriesNo
include_examplesNo
enforcement_modeNostrict
intent_profileNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior4/5

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

With no annotations provided, the description carries the full burden and successfully discloses complex behavioral traits: stage-dependent routing logic, default value implications ('omitted: defaults to oop'), and parameter interaction effects ('In troubleshooting stage... value has no routing effect'). It lacks explicit safety declarations (read-only status) which prevents a 5.

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 well-structured with clear Stages/Args/Returns sections and front-loaded with the core purpose. While lengthy, the detail is justified by the complex parameter interactions and conditional logic; every sentence provides necessary behavioral context given the lack of schema annotations.

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 complex routing logic and 7 parameters, the description is complete. It explains the stage-based workflows, parameter interdependencies, default behaviors, and summarizes the return structure (JSON with effective_oop_policy, entries, etc.), providing sufficient context for correct invocation despite no output schema being provided in the structured fields.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Despite 0% schema description coverage, the Args section comprehensively documents all 7 parameters. It explains valid values, conditional requirements (e.g., check_ids required/ignored by stage), and semantic intent (e.g., include_examples 'Set False to save tokens'), fully compensating for the schema's lack of descriptions.

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 opens with a specific verb ('Get') + resource ('curated knowledge base entries and OOP policy') + scope ('workflow stage'), clearly defining the tool's function. It implicitly distinguishes itself from sibling `get_effective_oop_policy` by emphasizing the knowledge base entries and stage-scoping behavior.

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?

Explicitly defines when to use each stage: 'pre_generation' for 'generating TwinCAT XML from scratch' and 'troubleshooting' for 'blocker lists after orchestration'. It clearly states parameter dependencies (e.g., 'check_ids: required for troubleshooting, ignored for pre_generation'), providing clear guardrails for invocation.

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/agenticcontrolio/twincat-validator-mcp'

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