Skip to main content
Glama

cert_renew

Renew remnanode TLS certificates via Docker Certbot when fewer than minDays remain unless forced; optionally restart remnanode to load them.

Instructions

Renew the remnanode TLS certificate with the docker certbot from vps-edge-run.sh (cd /opt/certbot && docker compose run --rm certbot renew). Skips certificates with more than minDays left unless force. Port 80 must be publicly open (it is in the baseline). Optionally restarts remnanode so xray loads the new certificate.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
applyNofalse (default) = dry run: show what will happen on which hosts and a planHash. true = run it; needs planHash
batchNohosts at a time (rolling). Default depends on the action: 1 for disruptive ones
forceNo--force-renewal regardless of days left
targetNohosts: all | <host> | <glob nl-*> | <group> | role:<edge|remnanode|panel|docker> | tag:<tag>; comma-separated, !x excludesrole:remnanode
minDaysNorenew only when fewer days left (certbot itself renews at <30)
planHashNoplanHash from the dry run of the very same call, good for one apply; refused if targets or their state changed since
restartNodeNorestart remnanode after a renewal (users reconnect)
continueOnErrorNokeep going after a host fails (default: stop the rollout at the first failure)
skipUnreachableNoskip hosts that do not answer over ssh instead of refusing the whole plan (they show as skipped)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.9/5.0
Behavior3/5

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

With no annotations, the description carries full burden. It usefully discloses the underlying command, the minDays skip rule, the port-80 precondition, and the restart consequence ('xray loads the new certificate'). However, it omits the safety-critical fact that the default is a dry run requiring a planHash to actually apply, and says nothing about SSH/permission requirements or failure semantics.

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?

Four sentences, front-loaded with the action and mechanism, and the embedded command is genuinely useful rather than padding. Slightly dense but every clause conveys operationally relevant information.

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 nine-parameter mutation tool with no annotations and no output schema, the description covers purpose, precondition, skip logic, and the restart side effect. It leaves the dry-run/apply two-phase workflow to the schema, which documents it fully, so the remaining gap is minor.

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 schema already documents all nine parameters. The description adds only a restatement of minDays/force behavior and nothing about target, batch, or planHash beyond what the schema states, so baseline 3 applies.

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?

States a specific verb (renew) and resource (remnanode TLS certificate), plus the exact mechanism (docker certbot via vps-edge-run.sh). No sibling tool competes for this function, so the agent can identify it immediately.

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?

Provides concrete preconditions ('Port 80 must be publicly open') and the condition under which work is skipped ('more than minDays left unless force'). It does not name an alternative or exclusion, but no sibling overlaps, so the guidance is clear context without exclusions.

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