Skip to main content
Glama

caddy_remove_route

DestructiveIdempotent

Remove a Caddy route by stable @id or by index, with confirmation required.

Instructions

Remove a route. Target by @id (preferred — stable across reorderings) or by array index on a specific server. Index-based removal is a two-step read-then-delete and can race against concurrent edits; prefer @id when possible.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idNoThe @id of the route to remove (preferred — stable even if routes get reordered)
indexNoZero-based index of the route in the server's routes array (only used if id is not provided)
serverNoCaddy server name when using index (default: srv0). Ignored when id is provided.srv0
confirmNoMust be true to actually remove the route (safety)
Behavior4/5

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

Annotations already mark it destructive and idempotent. The description adds valuable behavior details: index-based removal is read-then-delete and can race against concurrent edits. This goes beyond the annotations and helps the agent understand risks.

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?

Two sentences, front-loaded with the action, and each sentence earns its place. The guidance is compact with no fluff, making it highly efficient for an agent 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?

The tool has 4 parameters, no required ones, and annotations cover safety. The description explains targeting and risks but does not mention return values or error behavior. Given no output schema, this is acceptable and sufficiently complete for an agent to invoke correctly.

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% with descriptions for all parameters, so the baseline is 3. The description reinforces the preference for @id and the race condition for index, but these are already largely present in the schema's parameter descriptions. The additional race warning is minor added value.

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 'Remove a route' with a specific verb and resource, and distinguishes it from siblings like caddy_add_route and caddy_list_routes. It also outlines the two targeting methods, making the tool's purpose 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 provides explicit guidance on when to use @id vs index, strongly preferring @id for stability and warning about race conditions with index. It does not compare directly with sibling tools, but the context is clear for when this tool is appropriate.

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

Install Server

Other Tools

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