nginx_config
Validate and inspect nginx configuration: run syntax checks, view main or site configs, list enabled and available sites, and dump the fully resolved configuration.
Instructions
Read, validate, and inspect nginx configuration. Actions: 'show' reads the main config or a specific site, 'test' runs nginx -t validation, 'list_sites' shows enabled/available sites, 'full_config' dumps the fully resolved configuration.
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": {
"action": "<action>"
},
"name": "nginx_config"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| site | No | For 'show' action: a specific site config file name to read from sites-enabled or sites-available (e.g. 'default'). | |
| action | Yes | Action to perform: - 'show': Show the main nginx.conf file - 'test': Run nginx -t to validate configuration - 'list_sites': List enabled and available sites - 'full_config': Show the fully resolved configuration (nginx -T) |