Skip to main content
Glama
julcap

nginx-certbot-mcp

check_upstream_health

Read-only

Probe an upstream host:port over TCP to confirm it is listening before creating a site or when debugging a 502 error.

Instructions

TCP-probe an upstream host:port to confirm something is actually listening there, independent of nginx or DNS. Use to sanity-check an upstream before create_site, or to debug a 502 afterward. For confirming a public domain resolves, use check_dns instead.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
timeout_msNoMilliseconds to wait before reporting unreachable
upstream_hostYesHostname or IP that nginx would proxy_pass to
upstream_portYesTCP port to probe

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
messageYesHuman-readable outcome, e.g. success, timeout, or connection error detail
reachableYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.1.1

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and openWorldHint=true, so the safety profile is covered. The description adds useful behavioral context beyond that: it is a TCP-level probe, independent of nginx or DNS, confirming that something is actually listening rather than relying on resolution.

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?

Three sentences with no filler: the first states what the tool does, the second gives concrete usage contexts, and the third routes to the relevant alternative. Every sentence earns its place and the key information is front-loaded.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With a fully documented input schema, an output schema, and annotations covering read-only and open-world behavior, the description adds exactly what is missing: purpose, usage timing, and differentiation from check_dns. Nothing an agent needs to invoke it correctly is absent.

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 100%, so the parameters are already well-documented in the schema. The description does not need to elaborate on individual parameters; it correctly focuses on the tool's purpose and usage context.

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 and resource: 'TCP-probe an upstream host:port to confirm something is actually listening there.' It also explicitly distinguishes itself from check_dns, making the tool's scope unmistakable even among many siblings.

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 concrete use cases: sanity-check an upstream before create_site or debug a 502 afterward. It also names the alternative tool (check_dns) and the condition that selects it, leaving no ambiguity about when 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.