Skip to main content
Glama

Plecs Connect

plecs_connect
Idempotent

Verifies connection to PLECS over JSON-RPC and optionally launches the newest local installation when the port is closed, returning a health status object for diagnostics.

Instructions

Handshake/health check; starts PLECS automatically when the RPC port is closed.

If the endpoint is unreachable and auto_start is true (default, or PLECS_MCP_AUTO_START=always), the newest PLECS installation for this host is launched and the port is polled for up to startup_timeout seconds. Set auto_start=false (or PLECS_MCP_AUTO_START=never) for a pure health check. Returns {"ok": true, "started": ..., ...} or {"ok": false, "launch": {...}, "hints": [...]}.

Input Schema

NameRequiredDescriptionDefault
hostNo
portNo
app_pathNo
auto_startNo
startup_timeoutNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.1

TDQS

A4.1/5.0
Behavior5/5

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

Annotations only declare idempotentHint, so the description carries the real burden and does: it discloses the non-obvious side effect of launching the newest local PLECS install, the env-var overrides, and the polling window bounded by `startup_timeout`. Both success and failure response shapes are sketched, and the failure path points to `hints`, which an agent needs in order to recover.

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 the core action and the auto-start caveat, then the mode switch, then return shapes — a sensible order with little waste. The return-shape sentence is mildly redundant given an output schema exists, but it is short and aids error handling.

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?

With an output schema present, not detailing every return field is fine, and the description does cover the behavioral risk (spawning a process) and the escape hatch. What it leaves unexplained is the connection-targeting parameters (host/port/app_path) for a 5-parameter tool with zero schema descriptions.

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 description coverage is 0%, so the description must compensate and it only partially does. `auto_start` (default, null semantics, env override) and `startup_timeout` (poll duration) are well explained, but `host`, `port`, and `app_path` get no mention at all — `app_path` is only obliquely implied by 'the newest PLECS installation'.

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 first sentence names a specific action pair (handshake/health check) and the side effect (starts PLECS when the RPC port is closed), so an agent knows exactly what this does. It never names the overlapping siblings (plecs_check, plecs_rpc, plecs_instances), so sibling differentiation is left to inference.

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 clearly states the condition that selects the two modes: default/`PLECS_MCP_AUTO_START=always` starts PLECS, while `auto_start=false`/`never` gives a pure health check. It does not say when to reach for this instead of `plecs_check` or `plecs_rpc`, which is the remaining gap.

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