Skip to main content
Glama

relay_reconnect

Restore a stale Mercure relay connection. Checks listener health via backend status, kills the stuck process, and launches a fresh background listener.

Instructions

Heal a stale Mercure relay connection. Consults the backend's /api/cli/status first and no-ops if the listener is healthy; otherwise SIGTERMs the recorded PID and launches a fresh background listener. Pass force=true to skip the health-check.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
forceNoRestart even if the backend reports the listener as connected (default: false).
Behavior4/5

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

With no annotations provided, the description carries full burden. It discloses the two-phase behavior: health check first, then conditional restart via SIGTERM and new process. Adequate for a simple tool.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two sentences, front-loaded with the core purpose. Every part adds value, no redundancy.

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?

Simple tool with one param and clear logic. No output schema, but the description implies the outcome (no-op vs restart). Missing details on error handling or return values, but acceptable given simplicity.

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?

The schema already has 100% coverage for the single parameter. The description adds context by explaining the effect of 'force=true' ('skip the health-check'), integrating it into the usage flow.

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 uses a specific verb ('Heal') and resource ('stale Mercure relay connection'), clearly distinguishing it from sibling tools like 'relay_status' which only checks status. It states exactly what the tool does: consult backend, conditionally restart.

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?

States when to use: heal a stale connection. Provides an alternative behavior via 'force' parameter. However, does not explicitly contrast with 'relay_status' or mention when not to use this tool.

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

Install Server

Other Tools

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/zb-ss/servonaut'

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