Skip to main content
Glama

security_nftables_check

Read-only

nftables firewall audit — Offline audit of a Linux nftables ruleset (paste nft list ruleset output or an nft -f script with add table/chain/rule lines). Parses tables, base chains (hook/priority/policy), user chains reached by jump/goto, named sets and anonymous port sets. Flags: input or forward defaulting to accept, unconditional accept rules, rules made unreachable by a catch-all, IPv6 left unfiltered (ip-family tables only), 40+ risky services open to any source (Redis, MongoDB, Elasticsearch, Docker API, kubelet, SMB, RDP, databases...), SSH without rate limiting, missing ct state established/invalid handling, loopback, ICMP/ICMPv6 (needed for IPv6 neighbor discovery), logging, DNAT port forwards and Docker chains. Returns PASS/REVIEW/FIX BEFORE DEPLOY/BLOCK, a 0-100 score and grade, findings with fixes, exposed ports and a hardened inet example. Optional: role=host|router, ipv6=off if IPv6 is disabled. For iptables-save output use /v1/security/iptables-check. 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_nftables_check"
  }
}

Input Schema

NameRequiredDescriptionDefault
textYestable inet filter { chain input { type filter hook input priority 0; policy accept; tcp dport 6379 accept } }

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.5/5.0
Behavior5/5

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

Annotations only say read-only/non-destructive; the description adds the material behavior an agent actually needs: the check runs offline on pasted text, returns a PASS/REVIEW/FIX BEFORE DEPLOY/BLOCK verdict plus a 0-100 score, grade, findings with fixes, exposed ports, and a hardened inet example, and costs $0.006 USDC via x402 on Base. The cost and payment path are behavior an agent cannot infer from the schema or annotations.

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?

Front-loaded with the core action and input format, and the long flag enumeration is genuinely informative rather than filler, so every clause earns its place. It is still a dense single block, and the long list of flagged conditions (Redis, MongoDB, kubelet, SMB, RDP...) could be tightened without losing information.

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?

For a single-input audit tool with no output schema, the description covers inputs, outputs, verdict semantics, cost, and the sibling alternative thoroughly, and annotations cover the safety profile. The one gap is the dangling role/ipv6 options that the schema does not expose, leaving unclear how those settings are actually supplied.

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?

With a single parameter at 100% schema coverage, the schema already carries the definition, and the description's value-add is mainly the accepted input formats. However it references optional inputs (role=host|router, ipv6=off) that do not appear as properties in the schema, which creates ambiguity about how to pass them rather than clarifying it. Baseline 3 fits given the useful format guidance offset by that mismatch.

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 and resource ("Offline audit of a Linux nftables ruleset") and immediately enumerates the artifacts it parses (tables, base chains, user chains, named sets). It also names the sibling it is not (iptables-save -> /v1/security/iptables-check), so an agent can distinguish it from security_iptables_check without opening either schema.

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?

Explicitly tells the agent what input to supply ("paste `nft list ruleset` output or an nft -f script with add table/chain/rule lines") and routes the wrong-format case to the alternative tool. The optional modifiers (role=host|router, ipv6=off) give additional context for narrowing the audit.

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