Skip to main content
Glama

caddy_list_servers

Read-onlyIdempotent

Lists configured HTTP servers with names, listen addresses, route counts, and TLS status so you can discover server names before using route tools.

Instructions

List all configured HTTP servers with their names, listen addresses, route counts, and TLS status. Use this to discover server names before calling route tools. The TLS label assumes Caddy's default http_port 80 and https_port 443: on a config that sets a custom apps/http http_port or https_port it can be wrong, so use caddy_status, which reads them, for an accurate label.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "caddy_list_servers"
  }
}

Input Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.2.0

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive, closed-world, so the safety profile is covered. The description adds real behavioral context beyond that: the TLS label is derived assuming default ports 80/443 and can be wrong on configs with custom ports, with caddy_status as the accurate source. It stops short of describing output shape or ordering, but the caveat is the valuable part.

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?

Three tight sentences with no filler, and the scope statement is front-loaded ahead of the usage and caveat sentences. The port-accuracy sentence is longer than strictly necessary but conveys a non-obvious caveat that would be costly to omit. No redundancy to cut without losing 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?

With no output schema, the description usefully enumerates the returned fields, and it warns about the one field (TLS status) that can be misleading. The only gap is that it does not say how an agent would know a custom port is configured, leaving caddy_status as the sole remedy; otherwise complete for a zero-argument read tool.

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?

The tool takes zero parameters, so the baseline is 4; there is nothing for the description to disambiguate. It correctly spends no words on parameter semantics and instead uses the space on scope and caveats.

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 precise verb and resource ("List all configured HTTP servers") and enumerates what each entry contains: names, listen addresses, route counts, TLS status. This lets an agent distinguish it from sibling route and config tools without opening any 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 an explicit workflow cue ("Use this to discover server names before calling route tools") and, for the TLS label specifically, names the alternative caddy_status with the exact condition that selects it (custom http_port/https_port). That is when-to-use plus alternative routing in two sentences.

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