Skip to main content
Glama

Start Proxy

start_proxy

Start a transparent proxy to relay traffic between the host and PLC, capturing bidirectional Modbus, FINS, or MELSEC frames. Use it for on-site debugging to record and analyze all exchanges without altering them.

Instructions

起透明代理: 上位机 → 代理 → 真实 PLC, 透传同时按协议分帧录制双向帧。

现场联调时把上位机目标地址改成本代理, 无需 Wireshark 即可拿到全部 交互帧 (get_proxy_frames), 再喂 parse_frame/diagnose 做在线分析。 protocol 当前支持 modbus/fins/melsec (S7 TPKT 分帧暂不支持); listen_port=0 由系统分配。代理是诊断设施: 只透传与录制, 不改写帧。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
protocolYes
listen_hostNo127.0.0.1
listen_portNo
target_hostYes
target_portYes
idle_timeout_secNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. First observedv0.4.0

TDQS

A4/5.0
Behavior4/5

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

There are no annotations, so the description carries the behavioral burden. It discloses key behaviors: transparent pass-through, bidirectional frame recording, no frame rewriting, diagnostic-only purpose, and OS-assigned port when listen_port=0. It could add lifecycle details such as needing stop_proxy, but the current level of transparency is strong.

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 concise and front-loaded with the core purpose, then adds usage context, protocol constraints, and a behavioral guarantee. The text is slightly dense with wrapping, but every sentence contributes useful information without padding.

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?

The description covers the tool's role, supported protocols, port allocation behavior, and the intended diagnostic workflow. It does not explain all parameters or explicitly mention proxy shutdown, but the output schema and the sibling stop_proxy help fill the remaining context. Overall it is sufficiently complete for correct invocation.

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

Parameters2/5

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

Schema description coverage is 0%, so the description must compensate for undocumented parameters. It explains protocol values and listen_port=0 behavior, but does not explain target_host, target_port, listen_host, or idle_timeout_sec, leaving significant param semantics to inference.

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 clearly states the tool's function: start a transparent proxy between a host and a real PLC, forwarding frames and recording bidirectional traffic by protocol framing. It distinguishes itself from siblings by emphasizing the diagnostic role and referencing get_proxy_frames, parse_frame, and diagnose for the workflow.

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 gives explicit usage context: during on-site commissioning, point the host at this proxy instead of the PLC to capture all frames and analyze them later. It also states protocol support limits (modbus/fins/melsec, no S7 TPKT framing), though it does not explicitly contrast with alternatives like start_listener or stop_proxy.

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

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/ymxc152/plctap'

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