Skip to main content
Glama

Show a server's firewall

lw_firewall_details
Read-onlyIdempotent

Retrieves a server's firewall configuration type, allowed services, saved ruleset name, and system, plus the effective rule list when requested. Read-only, so you can audit firewall settings safely.

Instructions

Show a server's firewall settings (bleed Network/Firewall/details): type (none, basic, saved, advanced), allowed services for basic, the ruleset name for saved, and the system. With include_rules (default true) also returns the effective rule list (Network/Firewall/rules). Read-only.

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": {
      "uniq_id": "<uniq_id>"
    },
    "name": "lw_firewall_details"
  }
}

Input Schema

NameRequiredDescriptionDefault
contextNoAuth context name (like lw-cli contexts). Omit to use the default. lw_contexts lists them.
uniq_idYesSix-character asset id (uniq_id), e.g. "ABC123". Get it from lw_asset_list or lw_server_list.
include_rulesNoAlso fetch the full rule list. Default true.

Output Schema

NameRequiredDescriptionDefault
okYes
dataNo
errorNo
statusYes
contextNo
previewNo
summaryYes
warningsNo
next_pageNo
next_stepNo
truncatedNo
expires_atNo
confirm_tokenNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.7/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, and destructiveHint=false, so the trailing "Read-only." sentence adds nothing. The one piece of genuine behavioral context is that include_rules defaults to true and toggles whether the effective rule list is fetched, but nothing is said about permission requirements, error cases, or cost/latency of the extra call.

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?

It is front-loaded and compact, with the return contents stated before the include_rules modifier. Minor waste comes from the redundant "Read-only." closer and the cryptic "bleed Network/Firewall/details" fragment, which reads as internal shorthand rather than agent-facing guidance.

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?

An output schema and full annotation set exist, so the description does not need to spell out return structure, yet it still names the key fields an agent would reason about. Combined with the three-parameter schema, an agent has everything needed to call this correctly, with only the missing when-to-use routing as a gap.

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 description coverage is 100%, so all three parameters are already documented, including uniq_id format and context resolution via lw_contexts. The description restates include_rules' default behavior but adds no semantics beyond the schema, which is the expected baseline when the schema does the work.

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?

"Show a server's firewall settings" states a specific verb and resource, and the description enumerates the returned dimensions (type, allowed services, ruleset name, system, rule list). That enumeration distinguishes it cleanly from the sibling lw_server_details, which returns general server attributes rather than firewall config.

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

Usage Guidelines3/5

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

Usage is only implied: an agent can infer this is the tool for firewall inspection and that include_rules can be turned off to skip the rule list. There is no explicit when-to-use, when-not-to-use, or named alternative, and the uniq_id prerequisite (fetch it from lw_asset_list / lw_server_list) appears only in the schema, not the description.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools