Skip to main content
Glama
Jambozx

OnlineCyberTools MCP (280+ filterable tools)

by Jambozx

linux_web_server_config_generator

Read-onlyIdempotent

Generates Apache 2.4, nginx, and Caddy 2 configuration files from a single structured input, including TLS, reverse proxy, PHP-FPM, static file serving, security headers, and logging.

Instructions

Apache / Nginx / Caddy Web Server Config Generator. Build ready-to-deploy web server configuration text for Apache 2.4, nginx, and Caddy 2 from one structured input. A single request returns all three parallel outputs (Apache VirtualHost, nginx server block, Caddyfile) covering TLS with optional HTTP-to-HTTPS redirect and HSTS, reverse proxy with WebSocket upgrade, PHP-FPM FastCGI dispatch, static-file serving with cache expiry, gzip, security headers, custom error pages, and access/error logging. It only BUILDS config text from your parameters; it never writes files to disk, edits a live server, reloads, or restarts anything. Use this for full virtual-host or server-block files; use linux_htaccess_generator for an Apache per-directory .htaccess instead, or linux_ssh_config_generator for SSH client/daemon config. Set operation to generate (the default, requires serverName) or to presets to list curated starter configurations. Runs locally on the values you provide, read-only and non-destructive, contacts no e

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
operationNoMode: generate builds the config text (requires serverName); presets returns the curated starter list and ignores all other fields.generate
serverNameNoPrimary hostname for the virtual host or server block (for example example.com). Required when operation is generate; max 253 chars; underscore is accepted as the nginx default-server placeholder.
serverAliasesNoExtra hostnames (ServerAlias / additional server_name entries). Blank entries are dropped.
httpPortNoPlain-HTTP listen port.
httpsPortNoHTTPS listen port (used only when ssl.enabled is true).
documentRootNoFilesystem path served as the web root (DocumentRoot / root)./var/www/html
gzipNoEmit gzip / compression directives for text responses.
sslNoTLS settings.
reverseProxyNoReverse-proxy / upstream settings.
phpNoPHP-FPM FastCGI settings.
staticNoStatic-file serving settings.
securityNoSecurity-header and server-token settings.
errorPagesNoMap of HTTP status code (as key) to a custom error-page path.
loggingNoAccess / error log settings.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
successNoWhether the request succeeded.
operationNoThe operation performed (generate or presets).
resultNoFor generate: the three configs plus warnings and explanation. For presets: a presets array of starter configurations.

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. Changed45 schema fields changedv0.5.1
    • addedInput schema / additionalProperties
      Added value: +false
    • addedInput schema / properties / documentRoot
      Added value: +{
      +  "default": "/var/www/html",
      +  "description": "Filesystem path served as the web root (DocumentRoot / root).",
      +  "type": "string"
      +}
    • addedInput schema / properties / errorPages
      Added value: +{
      +  "additionalProperties": {
      +    "description": "Path served for this HTTP status code.",
      +    "type": "string"
      +  },
      +  "description": "Map of HTTP status code (as key) to a custom error-page path.",
      +  "type": "object"
      +}
    • addedInput schema / properties / gzip / default
      Added value: +false
    • addedInput schema / properties / gzip / description
      Added value: +"Emit gzip / compression directives for text responses."
    • addedInput schema / properties / httpPort
      Added value: +{
      +  "default": 80,
      +  "description": "Plain-HTTP listen port.",
      +  "minimum": 1,
      +  "type": "integer"
      +}
    • addedInput schema / properties / httpsPort
      Added value: +{
      +  "default": 443,
      +  "description": "HTTPS listen port (used only when ssl.enabled is true).",
      +  "minimum": 1,
      +  "type": "integer"
      +}
    • addedInput schema / properties / logging
      Added value: +{
      +  "additionalProperties": false,
      +  "description": "Access / error log settings.",
      +  "properties": {
      +    "accessLog": {
      +      "description": "Access-log file path.",
      +      "type": "string"
      +    },
      +    "errorLog": {
      +      "description": "Error-log file path.",
      +      "type": "string"
      +    },
      +    "format": {
      +      "description": "Log format name or string.",
      +      "type": "string"
      +    }
      +  },
      +  "type": "object"
      +}
    • addedInput schema / properties / operation / default
      Added value: +"generate"
    • addedInput schema / properties / operation / description
      Added value: +"Mode: generate builds the config text (requires serverName); presets returns the curated starter list and ignores all other fields."
    • addedInput schema / properties / operation / enum
      Added value: +[
      +  "generate",
      +  "presets"
      +]
    • addedInput schema / properties / php
      Added value: +{
      +  "additionalProperties": false,
      +  "description": "PHP-FPM FastCGI settings.",
      +  "properties": {
      +    "enabled": {
      +      "default": false,
      +      "description": "Dispatch .php files to PHP-FPM via FastCGI.",
      +      "type": "boolean"
      +    },
      +    "fpmSocket": {
      +      "description": "PHP-FPM socket or address (defaults to /run/php/php-fpm.sock in output when blank).",
      +      "type": "string"
      +    },
      +    "version": {
      +      "description": "PHP version label used in generated comments.",
      +      "type": "string"
      +    }
      +  },
      +  "type": "object"
      +}
    • addedInput schema / properties / reverseProxy / additionalProperties
      Added value: +false
    • addedInput schema / properties / reverseProxy / description
      Added value: +"Reverse-proxy / upstream settings."
    • addedInput schema / properties / reverseProxy / properties / enabled / default
      Added value: +false
    • addedInput schema / properties / reverseProxy / properties / enabled / description
      Added value: +"Forward requests to an upstream backend."
    • addedInput schema / properties / reverseProxy / properties / preserveHostHeader / default
      Added value: +false
    • addedInput schema / properties / reverseProxy / properties / preserveHostHeader / description
      Added value: +"Pass the original Host header to the upstream."
    • addedInput schema / properties / reverseProxy / properties / upstreamHost / description
      Added value: +"Upstream backend host (defaults to 127.0.0.1 in output when blank)."
    • addedInput schema / properties / reverseProxy / properties / upstreamPort / description
      Added value: +"Upstream backend port."
    • addedInput schema / properties / reverseProxy / properties / upstreamPort / minimum
      Added value: +1
    • addedInput schema / properties / reverseProxy / properties / websocket
      Added value: +{
      +  "default": false,
      +  "description": "Add WebSocket upgrade headers to the proxy.",
      +  "type": "boolean"
      +}
    • removedInput schema / properties / reverseProxy / required
      Removed value: -[
      -  "enabled",
      -  "upstreamHost",
      -  "upstreamPort",
      -  "preserveHostHeader"
      -]
    • addedInput schema / properties / security
      Added value: +{
      +  "additionalProperties": false,
      +  "description": "Security-header and server-token settings.",
      +  "properties": {
      +    "headers": {
      +      "additionalProperties": false,
      +      "description": "Response security headers to emit (blank values are omitted).",
      +      "properties": {
      +        "csp": {
      +          "description": "Content-Security-Policy value.",
      +          "type": "string"
      +        },
      +        "permissionsPolicy": {
      +          "description": "Permissions-Policy value.",
      +          "type": "string"
      +        },
      +        "referrerPolicy": {
      +          "description": "Referrer-Policy value.",
      +          "type": "string"
      +        },
      +        "xContentTypeOptions": {
      +          "default": false,
      +          "description": "Emit X-Content-Type-Options nosniff.",
      +          "type": "boolean"
      +        },
      +        "xFrameOptions": {
      +          "description": "X-Frame-Options value (for example SAMEORIGIN).",
      +          "type": "string"
      +        }
      +      },
      +      "type": "object"
      +    },
      +    "hideServerHeader": {
      +      "default": false,
      +      "description": "Suppress the server version token where supported.",
      +      "type": "boolean"
      +    }
      +  },
      +  "type": "object"
      +}
    • addedInput schema / properties / serverAliases
      Added value: +{
      +  "description": "Extra hostnames (ServerAlias / additional server_name entries). Blank entries are dropped.",
      +  "items": {
      +    "description": "An additional hostname served by this block.",
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
    • addedInput schema / properties / serverName / description
      Added value: +"Primary hostname for the virtual host or server block (for example example.com). Required when operation is generate; max 253 chars; underscore is accepted as the nginx default-server placeholder."
    • addedInput schema / properties / ssl / additionalProperties
      Added value: +false
    • addedInput schema / properties / ssl / description
      Added value: +"TLS settings."
    • addedInput schema / properties / ssl / properties / certPath / description
      Added value: +"Path to the TLS certificate (chain) file."
    • addedInput schema / properties / ssl / properties / enabled / default
      Added value: +false
    • addedInput schema / properties / ssl / properties / enabled / description
      Added value: +"Add an HTTPS listener and TLS directives."
    • addedInput schema / properties / ssl / properties / hsts / default
      Added value: +false
    • addedInput schema / properties / ssl / properties / hsts / description
      Added value: +"Emit a Strict-Transport-Security header."
    • addedInput schema / properties / ssl / properties / hstsAge / default
      Added value: +31536000
    • addedInput schema / properties / ssl / properties / hstsAge / description
      Added value: +"HSTS max-age in seconds."
    • addedInput schema / properties / ssl / properties / hstsAge / minimum
      Added value: +1
    • addedInput schema / properties / ssl / properties / keyPath / description
      Added value: +"Path to the TLS private key file."
    • addedInput schema / properties / ssl / properties / redirectHttp / default
      Added value: +false
    • addedInput schema / properties / ssl / properties / redirectHttp / description
      Added value: +"Add a plain-HTTP block that 301-redirects to HTTPS."
    • addedInput schema / properties / ssl / properties / tlsVersions / description
      Added value: +"Allowed TLS protocol versions; defaults to a modern set when empty."
    • addedInput schema / properties / ssl / properties / tlsVersions / items / description
      Added value: +"A TLS protocol version to allow (for example TLSv1.2)."
    • removedInput schema / properties / ssl / required
      Removed value: -[
      -  "enabled",
      -  "certPath",
      -  "keyPath",
      -  "redirectHttp",
      -  "hsts",
      -  "hstsAge",
      -  "tlsVersions"
      -]
    • addedInput schema / properties / static
      Added value: +{
      +  "additionalProperties": false,
      +  "description": "Static-file serving settings.",
      +  "properties": {
      +    "enabled": {
      +      "default": false,
      +      "description": "Emit static-asset handling directives.",
      +      "type": "boolean"
      +    },
      +    "expires": {
      +      "description": "Cache expiry for static assets (for example 30d).",
      +      "type": "string"
      +    },
      +    "indexes": {
      +      "description": "Index document filenames.",
      +      "items": {
      +        "description": "An index filename (for example index.html).",
      +        "type": "string"
      +      },
      +      "type": "array"
      +    }
      +  },
      +  "type": "object"
      +}
    • removedInput schema / required
      Removed value: -[
      -  "operation",
      -  "serverName",
      -  "ssl",
      -  "reverseProxy",
      -  "gzip"
      -]
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "properties": {
      +    "operation": {
      +      "description": "The operation performed (generate or presets).",
      +      "type": "string"
      +    },
      +    "result": {
      +      "description": "For generate: the three configs plus warnings and explanation. For presets: a presets array of starter configurations.",
      +      "properties": {
      +        "apache": {
      +          "description": "Apache 2.4 VirtualHost configuration text.",
      +          "type": "string"
      +        },
      +        "caddy": {
      +          "description": "Caddy 2 Caddyfile configuration text.",
      +          "type": "string"
      +        },
      +        "explanation": {
      +          "description": "Per-section human-readable explanation of the generated config.",
      +          "items": {
      +            "properties": {
      +              "meaning": {
      +                "description": "Plain-language description of what that section does.",
      +                "type": "string"
      +              },
      +              "section": {
      +                "description": "Name of the config section being explained.",
      +                "type": "string"
      +              }
      +            },
      +            "type": "object"
      +          },
      +          "type": "array"
      +        },
      +        "nginx": {
      +          "description": "nginx server block configuration text.",
      +          "type": "string"
      +        },
      +        "warnings": {
      +          "description": "Configuration warnings (for example weak TLS, missing cert paths).",
      +          "items": {
      +            "description": "A non-fatal advisory about the chosen settings.",
      +            "type": "string"
      +          },
      +          "type": "array"
      +        }
      +      },
      +      "type": "object"
      +    },
      +    "success": {
      +      "description": "Whether the request succeeded.",
      +      "type": "boolean"
      +    }
      +  },
      +  "type": "object"
      +}
  2. First observedv0.1.0

TDQS

A4.3/5.0
Behavior4/5

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

Annotations indicate readOnlyHint=true, destructiveHint=false, and idempotentHint=true. The description reinforces by stating the tool 'only BUILDS config text' and 'never writes files, edits a live server, reloads, or restarts anything.' This adds meaningful context beyond annotations, though it could mention more about idempotency.

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?

The description is front-loaded with the purpose and provides a comprehensive overview. It could be slightly more concise, but the structure is logical and covers capabilities, constraints, and alternatives without excessive verbosity.

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?

Given the tool's complexity (14 parameters, nested objects, output schema), the description covers all major features (TLS, reverse proxy, PHP, static, security headers, error pages, logging) and the two modes. The output schema exists, so return values are not required. It feels complete for the context.

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%, so the description does not need to explain parameters extensively. It mentions a few key constraints (requires serverName for generate) but does not add significant new meaning beyond what is already in the input schema.

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 it generates configuration text for Apache, Nginx, and Caddy web servers. It specifies the exact output (VirtualHost, server block, Caddyfile) and explicitly distinguishes from sibling tools like linux_htaccess_generator and linux_ssh_config_generator.

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?

The description provides explicit guidance on when to use this tool (for full virtual-host or server-block files) and when to use alternatives (linux_htaccess_generator for .htaccess, linux_ssh_config_generator for SSH config). It also explains the two modes (generate and presets) and prerequisites.

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/Jambozx/onlinecybertools-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server