Skip to main content
Glama

caddy_tls

DestructiveIdempotent

Read or configure TLS/HTTPS settings for a Caddy instance: check TLS and Encrypted ClientHello status, or set the ACME email, CA URL, and profile on the first issuer.

Instructions

Get or configure TLS/HTTPS settings. Actions: 'status' shows current TLS config, 'set_email' sets the ACME email, 'set_acme_ca' sets the ACME CA URL, 'set_acme_profile' sets the ACME profile (Caddy 2.10+), 'ech_status' reads the Encrypted ClientHello config at apps/tls/encrypted_client_hello (Caddy 2.10+, read-only here). Works on both fresh and existing Caddy instances, including one with no config at all: the set_* actions create apps/tls, and any missing parents, when it is not set. Writes target policies[0].issuers[0] only. When that issuer already carries the field, it is overwritten in place, whatever the issuer's module; when it does not, the field is merged in only if that issuer's module is 'acme', and refused otherwise. On a multi-policy TLS config, or one whose first issuer is 'internal' (Caddy's local CA), edit the intended issuer with caddy_config_set instead.

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": {
      "action": "<action>"
    },
    "name": "caddy_tls"
  }
}

Input Schema

NameRequiredDescriptionDefault
caNoACME CA URL (for 'set_acme_ca' action)
emailNoACME email address (for 'set_email' action)
actionYesAction to perform
profileNoACME profile name (for 'set_acme_profile'). Requires Caddy 2.10+ and a CA that offers profiles; Let's Encrypt uses 'shortlived' for 6-day certificates. Valid names are defined by the CA, not by Caddy. EXPERIMENTAL upstream (the ACME profiles spec is still a draft; Caddy marks the field 'subject to change' and may rename or drop it). Caddy accepts any name on load, so a success here does not mean the CA offers it: if this issuer's CA does not advertise the name, every order from this issuer fails at issuance time, reported only in Caddy's own logs. Caddy then either falls through to the next issuer in the policy, which issues WITHOUT the profile, or -- when this is the policy's only issuer, which is the shape this tool creates -- keeps retrying and issues no certificate at all.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv2.5.4
    • changedInput schema / properties / profile / description
      Previous value: -"ACME profile name (for 'set_acme_profile'). Requires Caddy 2.10+ and a CA that offers profiles; Let's Encrypt uses 'shortlived' for 6-day certificates. Valid names are defined by the CA, not by Caddy."New value: +"ACME profile name (for 'set_acme_profile'). Requires Caddy 2.10+ and a CA that offers profiles; Let's Encrypt uses 'shortlived' for 6-day certificates. Valid names are defined by the CA, not by Caddy. EXPERIMENTAL upstream (the ACME profiles spec is still a draft; Caddy marks the field 'subject to change' and may rename or drop it). Caddy accepts any name on load, so a success here does not mean the CA offers it: if this issuer's CA does not advertise the name, every order from this issuer fails at issuance time, reported only in Caddy's own logs. Caddy then either falls through to the next issuer in the policy, which issues WITHOUT the profile, or -- when this is the policy's only issuer, which is the shape this tool creates -- keeps retrying and issues no certificate at all."
  2. Changed2 schema fields changedv2.3.2
    • changedInput schema / properties / action / enum
      Previous value: -[
      -  "status",
      -  "set_email",
      -  "set_acme_ca"
      -]New value: +[
      +  "status",
      +  "set_email",
      +  "set_acme_ca",
      +  "set_acme_profile",
      +  "ech_status"
      +]
    • addedInput schema / properties / profile
      Added value: +{
      +  "description": "ACME profile name (for 'set_acme_profile'). Requires Caddy 2.10+ and a CA that offers profiles; Let's Encrypt uses 'shortlived' for 6-day certificates. Valid names are defined by the CA, not by Caddy.",
      +  "type": "string"
      +}
  3. First observedv2.2.0

TDQS

A4.4/5.0
Behavior4/5

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

Goes well beyond the destructiveHint=true annotation: it discloses that writes target policies[0].issuers[0] only, that existing fields are overwritten in place regardless of module, that new fields are merged only for 'acme' issuers and refused otherwise, and that missing parents are created. What it does not cover is what happens on failure partway through, or whether any action requires a reload to take effect.

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?

Front-loads the purpose, then the action inventory, then the write-path caveats, then the escape hatch to caddy_config_set — a sensible ordering. It is dense and long, but essentially every clause carries operational information; the only mild redundancy is restating read-only status for ech_status twice.

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?

For a destructive, multi-action mutation tool with no output schema, the description covers the write target, merge/refuse rules, bootstrap behavior on empty configs, and the correct alternative. An agent has enough to invoke it safely without reading source.

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 coverage is 100% and the schema's own parameter descriptions (especially 'profile') are richer than anything the tool description says about parameters. The description adds meaning about where the values land in the config tree, but nothing about format or validation for email/ca/profile beyond the schema, so the 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 and resource ("Get or configure TLS/HTTPS settings") and then enumerates every action with its exact effect, including which ones are read-only. It also explicitly names the sibling (caddy_config_set) that handles the cases this tool does not, so an agent can discriminate without opening a schema.

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?

Gives explicit when-to-use per action, and an explicit when-not: multi-policy configs or a first issuer of 'internal' must go through caddy_config_set instead. This is a complete routing rule, not an implied one.

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