Skip to main content
Glama

Stackhal

Convert Nginx or Apache Config to Caddyfile

transpile_to_caddyfile
Read-only

Transpile Nginx (nginx.conf, server blocks) or Apache (.htaccess, VirtualHost) web server configuration to clean, idiomatic Caddyfile with migration advisories.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
server_typeNoOptional source server type: "nginx" or "apache". If omitted, auto-detected from content syntax.
config_contentYesThe raw web server configuration string (nginx.conf, server block, .htaccess, or VirtualHost) to transpile.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.7/5.0
Behavior3/5

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

Annotations already establish this is a read-only, non-open-world operation, so the safety profile is covered. The description adds one genuine behavioral detail — the output includes 'migration advisories' — but omits the things an agent most needs for a transpiler: fidelity limits, unsupported constructs, or whether the result is a partial/best-effort conversion.

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 naming the source, the target, and the extra output. It is efficient, though the parenthetical format enumerations duplicate the schema and could be trimmed.

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 does name the primary return artifact (Caddyfile) and the accompanying migration advisories, which is enough to set expectations for a read-only transform. It stops short of describing output shape or conversion-fidelity caveats, which would matter for a migration tool.

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 already documents both parameters, including auto-detection of server_type and the accepted config_content formats. The description's format list largely restates the schema, so the baseline 3 is appropriate rather than a higher score.

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 (transpile) plus both source resources (Nginx/Apache config) and the target artifact (Caddyfile), with concrete file forms named. An agent can distinguish this from every sibling, including the superficially similar transpile_regex_engine, 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 Guidelines3/5

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

Usage is only implied: the accepted input forms (nginx.conf, server blocks, .htaccess, VirtualHost) make it obvious when the tool applies, but there is no explicit when-to-use, when-not-to-use, or prerequisite (e.g. that this is a one-way conversion, or what to do with unsupported directives).

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.