Skip to main content
Glama
KphungFROMM

motionworks-iec-mcp-server

by KphungFROMM

get_types

Discover data types, structs, and function blocks in a MotionWorks IEC project to know what symbols to code against. Filter by search text or kind to narrow results.

Instructions

List data types, structs and function blocks available in the project.

This is the vocabulary an agent must code against — including the Yaskawa motion library (AXIS_REF, Y_ENGAGE_DATA, MC_*, Y_*, AxisControl) when the PLCopen XML export is present, which it is the only source that carries.

Args: path: Project file or directory. search: Case-insensitive substring filter on the type name. kind: Filter by kind: "struct", "enum", "array", "alias" or "fb". limit: Maximum number of types to return.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
kindNo
pathYes
limitNo
searchNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4/5.0
Behavior4/5

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

With no annotations, the description carries the disclosure burden; it adds a meaningful source constraint by stating that Yaskawa motion-library types are only present 'when the PLCopen XML export is present, which it is the only source that carries.' The word 'List' implies read-only behavior, and filter semantics are disclosed, though it does not address failure/edge cases.

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 front-loaded with the purpose, then one contextual sentence, then a tight Args list. It is efficient and well structured, though the Yaskawa type-name examples add a little length that could be trimmed without losing the core message.

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 4-parameter listing tool with an output schema, the description covers project scope, source availability, and all filter mechanics. It is complete enough for an agent to call it correctly, but it leaves the relationship to sibling type/library tools implicit.

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?

Schema description coverage is 0%, but the Args block defines every parameter beyond the schema: path as project file/directory, search as case-insensitive substring, kind with its allowed values, and limit as the maximum return count. This fully compensates for the schema's bare properties/defaults.

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 opening 'List data types, structs and function blocks available in the project' names a specific verb, resource, and scope. It clearly covers a plural, project-scoped inventory, which separates it from singular get_type/get_udt, though it does not explicitly name these siblings.

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 phrase 'This is the vocabulary an agent must code against' gives a clear reason to use the tool when selecting type names, and the filters in Args show how to narrow results. There is no explicit when-not guidance or comparison to overlapping siblings such as get_udts, list_library_blocks, or list_fb_catalog.

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