Skip to main content
Glama
gx3-mcp-server

gx3-mcp-server

gx3_run_command

Run read-only GX3 CLI commands with explicit arguments for PLC project analysis; mutating and demo commands are rejected, and outputs stay in the configured output directory.

Instructions

Escape hatch: run any MCP-allowed, project-read-only GX3 CLI command with explicit arguments. Project-mutating commands and local demo generation commands are rejected. Local artifacts are confined to GX3_MCP_OUTPUT_DIR. Prefer the typed tools above when one fits; for SVG ladder images use gx3_ladder_export_svg. Both ladder-export-svg and the existing ladder-layout (JSON by default, or --format svg) remain available here.

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": {
      "command": "<command>"
    },
    "name": "gx3_run_command"
  }
}

Input Schema

NameRequiredDescriptionDefault
argsNo
rootNoOptional extracted project root.
commandYesMCP-allowed GX3 CLI command name.
timeout_secondsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.1/5.0
Behavior4/5

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

With no annotations, the description carries the behavioral burden and does so well: read-only enforcement, rejection of mutating and demo-generation commands, and confinement of artifacts to GX3_MCP_OUTPUT_DIR are all disclosed. It stops short of describing what the command returns or how rejected commands surface as errors.

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 escape-hatch framing is front-loaded and the safety constraints follow in tight order. The final sentence about ladder-export-svg and ladder-layout is somewhat redundant with the earlier SVG pointer and reads as leftover migration trivia.

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 no-annotation, no-output-schema escape hatch, the definition covers safety, output location, and sibling routing adequately. The main missing piece is any statement about return shape or how to enumerate permitted commands, which matters for a tool whose whole purpose is arbitrary dispatch.

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

Parameters3/5

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

Schema coverage is 50%: command and root are documented in the schema, while args and timeout_seconds are only constrained (defaults, max 300). The phrase 'with explicit arguments' hints that args are passed through verbatim to the CLI, but timeout behavior and argument-quoting semantics are left unstated.

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 framing ('Escape hatch: run any MCP-allowed, project-read-only GX3 CLI command') that names both verb and resource, and immediately distinguishes itself from the typed sibling tools. An agent can tell this is the generic fallback rather than a purpose-built analysis tool.

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?

It gives explicit routing guidance: 'Prefer the typed tools above when one fits; for SVG ladder images use gx3_ladder_export_svg,' and states that mutating and demo-generation commands are rejected. The gap is that it never tells the agent how to discover which commands are MCP-allowed (e.g., pointing at gx3_list_commands), leaving a real prerequisite unexplained.

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