Skip to main content
Glama

caddy_revert

Destructive

Roll back Caddy configuration by listing, saving, or applying snapshots. Restore a previous config state after changes.

Instructions

Manage config snapshots for rollback. Snapshots are auto-captured before caddy_load (last 10). By default they live in memory only and are LOST when this server restarts -- set CADDY_MCP_SNAPSHOT_DIR to a writable directory to persist them across restarts (they contain full Caddy configs, so pick the location deliberately). Actions: 'list' shows snapshots with timestamps, 'save' manually captures the current config, 'apply' restores a snapshot (requires confirm=true).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
indexNoSnapshot index for 'apply' (0 = most recent, default)
actionYesAction to perform
confirmNoMust be true to actually apply a snapshot (safety)

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. First observedv2.2.0

TDQS

A4.4/5.0
Behavior4/5

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

Annotations declare destructiveHint=true, and the description aligns by noting 'apply' restores a snapshot and requires confirm=true. It adds valuable context beyond annotations: snapshots are auto-captured before caddy_load, are kept to the last 10, and are lost on server restarts unless a directory is configured. This discloses persistence and destructive implications that annotations alone do not convey. No contradiction exists.

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?

The description is two sentences, front-loaded with the core purpose, and each clause earns its place. It packs a lot of information—auto-capture, retention, persistence caveat, and actions—without bloat. The structure is efficient and easy to parse.

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 tool with three parameters and no output schema, the description covers the essential behavior: what actions exist, persistence, and the safety requirement for apply. It doesn't describe return types (not required without output schema) or error handling, but those are minor. It could go further by explicitly stating that 'apply' overwrites the active config, but that is strongly implied by 'restores a snapshot'. Overall it is sufficiently complete for an agent to call it correctly.

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?

Schema description coverage is 100%, so each parameter is documented in the schema. The description nevertheless adds semantic value by explaining the meaning of each action value ('list' shows snapshots, 'save' captures, 'apply' restores), and reinforcing that confirm must be true for apply. While the schema already describes index as '0 = most recent', the description's action semantics help the agent understand the workflow without opening an enum.

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 clearly states the tool manages config snapshots for rollback, and enumerates three specific actions (list, save, apply). This distinguishes it from sibling tools like caddy_load or caddy_config_set, which deal with live config rather than snapshots. The verb 'manage' plus the resource 'config snapshots' is specific and unambiguous.

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?

The description explains when to use the tool (for snapshot operations) and includes a critical caveat about snapshots being memory-only and lost on restart unless CADDY_MCP_SNAPSHOT_DIR is set. It also notes that 'apply' requires confirm=true, which is a usage requirement. However, it does not explicitly contrast with alternatives like caddy_load or caddy_config_set, leaving some routing to inference. The context is clear but not fully explicit.

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

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/YawLabs/caddy-mcp'

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