Skip to main content
Glama

caddy_deploy_plugin

Deploy a Caddy plugin to production by safely replacing the current Caddy binary with a backup and optional Caddyfile validation.

Instructions

Deploy plugin to production by safely replacing Caddy binary with backup

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "plugin_path": "<plugin_path>"
    },
    "name": "caddy_deploy_plugin"
  }
}

Input Schema

NameRequiredDescriptionDefault
backup_dirNoDirectory to store backup of current binary/opt/caddy/backups
plugin_pathYesPath to the plugin directory to deploy
caddy_binaryNoPath to current Caddy binary to replace/usr/bin/caddy
validate_configNoPath to Caddyfile to validate with new binary

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.1/5.0
Behavior2/5

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

With no annotations, the description carries the full burden. It does disclose the core risk profile — the live binary is overwritten and a backup is taken first — but omits whether the Caddy service is restarted, whether there is downtime, what privileges are required, and what happens if the replacement or validation fails. For a destructive production mutation these gaps matter.

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?

A single front-loaded sentence with no filler; scope and mechanism come before any detail. It is efficient, though its brevity on a risky operation is arguably underspecification rather than tight editing.

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

Completeness2/5

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

A production binary-swap tool with no annotations and no output schema needs the description to explain rollback, restart/downtime, and failure behavior. The loosely typed validate_config parameter (declared string, though it reads like a flag plus path) is also unexplained. The definition leaves too much for the agent to guess.

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 each parameter is already documented in the schema and the baseline of 3 applies. The phrase 'with backup' loosely ties to backup_dir and 'replacing Caddy binary' to caddy_binary, but it adds no rollback or format guidance beyond the field descriptions.

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?

States a specific verb (deploy), resource (plugin), and mechanism (replacing the Caddy binary with a backup kept). That distinguishes it from caddy_build_plugin and caddy_create_plugin, which produce the artifact rather than install it. It stops short of naming the sibling it supersedes or the point at which deployment should follow a build.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

'to production' implies this is the post-build, production-side step and implicitly contrasts with a dev-server workflow, but no alternative tool is named and no preconditions are stated. The agent must infer that a plugin should already exist before calling this.

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