test_nginx_config
Validate Nginx config syntax without reloading, returning JSON with validity, exit code, and error messages to prevent service disruptions.
Instructions
Test Nginx configuration for syntax errors ('nginx -t') without reloading.
Returns: JSON string indicating syntax validity, exit code, and syntax error messages.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "test_nginx_config"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |