Skip to main content
Glama
gx3-mcp-server

gx3-mcp-server

gx3_ladder_print

Renders PLC programs in GX Works3 print-text ladder layout for circuit explanation, with optional section, position, or device filtering and file output.

Instructions

Render a program in GX Works3 print-text layout. This is the output to show a user when explaining how a circuit is wired: quote it verbatim in a code block, never a JSON dump of the same rung. Output can be large; pass 'output' to write it to a file. To emit only the circuit under discussion, use 'list_sections' to discover section titles, then filter with 'section', 'pos_range' (A-B), or 'device'. For an SVG image export, use gx3_ladder_export_svg.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "program": "<program>",
      "root": "<root>"
    },
    "name": "gx3_ladder_print"
  }
}

Input Schema

NameRequiredDescriptionDefault
rootYesExtracted project folder.
deviceNoRender only rungs referencing this device (any role), plus their section title.
outputNoOptional output file path (-o); parent dirs are created.
programYesProgram/POU name or <hash>_LDDB.db.
sectionNoRender only sections whose title contains this text.
pos_rangeNoRender only rows whose step pos is within A-B (inclusive).
list_sectionsNoList section titles with pos range and rung count, then exit.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.5/5.0
Behavior4/5

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

With no annotations, the description carries the full behavioral burden and does disclose meaningful traits: output may be large, the 'output' parameter redirects to a file, and list_sections terminates early. It doesn't explicitly confirm the operation is a read-only render with no side effects on the project, which would close the remaining gap.

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?

Front-loaded with purpose, then output-handling advice, then filtering strategy, then the alternative tool – a sensible order. It is dense but nearly every clause carries actionable information; the 'never a JSON dump' phrasing could be trimmed slightly without losing meaning.

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 7-parameter tool with no output schema, the description covers what the output looks like (print-text layout), how to handle large output, how to scope results, and which sibling to use instead. It is close to complete, with only the explicit read-only/no-side-effect guarantee missing.

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 100%, so the baseline is 3, but the description adds real meaning by explaining how the filters compose – list_sections to discover titles, then section/pos_range (A-B)/device to narrow scope. It goes beyond restating the schema by tying the parameters into a coherent narrowing workflow.

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 and resource: 'Render a program in GX Works3 print-text layout.' It also distinguishes the output from the sibling image exporter ('For an SVG image export, use gx3_ladder_export_svg'), so an agent can pick correctly without opening either schema.

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?

It gives explicit when-to-use guidance ('the output to show a user when explaining how a circuit is wired'), an explicit when-not ('never a JSON dump of the same rung'), and a named alternative for a different need (gx3_ladder_export_svg). It also prescribes a concrete workflow: run list_sections to discover titles, then narrow with section, pos_range, or device.

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