Skip to main content
Glama

caddy_create_plugin

Creates a new Caddy plugin with a Go module structure, using a plugin name, target directory, and Go module path.

Instructions

Create a new Caddy plugin with Go module structure

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": {
      "name": "<name>",
      "directory": "<directory>",
      "module_path": "<module_path>"
    },
    "name": "caddy_create_plugin"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYesPlugin name (will be used as module name)
authorNoPlugin authorClaude Code
directoryYesDirectory where plugin should be created
descriptionNoPlugin description
module_pathYesGo module path (e.g., github.com/user/plugin)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

C2.9/5.0
Behavior2/5

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

With no annotations supplied, the description carries the full behavioral burden. It does not disclose what files or directories get written, whether the target directory must pre-exist, what happens on collision with an existing plugin, or what the tool returns — all critical for a filesystem-mutating tool.

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 wasted words. It is efficient, though the brevity edges into under-specification rather than tightness.

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?

For a scaffolding tool that writes files to disk with no annotations and no output schema, the definition says nothing about side effects, directory prerequisites, error behavior, or resulting artifact layout. The schema covers inputs well, but an agent cannot predict the tool's effect from this one sentence.

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 all five parameters (name, author, directory, description, module_path) are already documented with defaults and examples. The description's only added signal is the phrase 'Go module structure', which loosely connects to module_path but adds no format or constraint detail beyond the schema, so the baseline of 3 applies.

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?

The description gives a specific verb and resource — 'Create a new Caddy plugin' — with the added scoping detail 'with Go module structure', which tells an agent this scaffolds Go scaffolding rather than a runtime artifact. It does not explicitly contrast itself with siblings such as caddy_build_plugin or caddy_deploy_plugin, so the purpose is clear but not fully differentiated.

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

Usage Guidelines2/5

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

There is no when-to-use guidance, no stated prerequisites, and no mention of alternatives. An agent must infer that this is the scaffolding step that precedes caddy_build_plugin and caddy_deploy_plugin purely from names, which the definition itself never establishes.

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