Skip to main content
Glama

security_nginx_check

Read-only

nginx config security audit — Parse an nginx config and flag security problems: alias off-by-slash path traversal, weak TLS protocols and ciphers, autoindex, proxy_pass built from request data (SSRF), $uri CRLF redirects, PHP locations without try_files, root /, permissive CORS, missing HSTS / X-Frame-Options / nosniff per server, plain HTTP without redirect, server_tokens, add_header inheritance traps. Pass text= (config) or url= (raw file). Returns PASS/REVIEW/FAIL, score, grade, findings with line numbers and fixes, and a per-server summary. Offline. Price: $0.006 USDC (Base, via x402).

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": {
      "text": "<text>"
    },
    "name": "security_nginx_check"
  }
}

Input Schema

NameRequiredDescriptionDefault
textYesserver { listen 80; location /static { alias /var/www/static/; autoindex on; } }

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnly, non-destructive, openWorld), and the description adds what the agent cannot infer: it is offline, the verdict vocabulary is PASS/REVIEW/FAIL with score, grade, findings with line numbers and fixes, and a per-server summary, plus the $0.006 USDC x402 payment requirement. It does not state config size limits or anything about the url fetch behavior, which is why it is not a 5.

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 purpose and the defect checklist are front-loaded, and the return-shape and pricing sentences are compact and useful. The long comma-delimited defect list is dense but each item carries real discriminating information, so little is wasted.

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 steps in to describe the return payload (verdict, score, grade, line-numbered findings with fixes, per-server summary), which is exactly what an agent needs to consume results. The remaining gap is the undocumented url input and unclear input-size constraints.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100% and there is one parameter, so the baseline would be 3, but the description advertises a 'url=' input that does not exist anywhere in the input schema (only 'text' is defined and required). That mismatch actively misleads an agent trying to call the tool, which is worse than adding no meaning at all.

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?

Specific verb+resource: 'Parse an nginx config and flag security problems', followed by an enumerated list of concrete defect classes (alias off-by-slash, weak TLS, autoindex, SSRF via proxy_pass, CRLF, missing HSTS). The nginx scope cleanly separates it from siblings like security_dockerfile_check, security_k8s_check, and security_headers.

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

Usage Guidelines4/5

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

Explicitly states the input route ('Pass text= (config) or url= (raw file)') and the operating mode ('Offline'), plus cost. It does not name an alternative tool or say when to prefer another check (e.g. security_headers for live HTTP header auditing), so it stops short of full routing guidance.

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.

Resources