Skip to main content
Glama

sysknife_get_firewall_state

Read-onlyIdempotent

Retrieves the current firewalld state, including zones, open services, and port rules, to inspect Linux firewall configuration without making changes.

Instructions

Read-only SysKnife action GetFirewallState. show current firewalld zones, open services, and port rules — no params

Input Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.27.1

TDQS

A3.6/5.0
Behavior3/5

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

The annotations already declare readOnlyHint, idempotentHint, destructiveHint=false, and openWorldHint=false, so restating 'Read-only' adds little. The description does add useful scope detail about what state is surfaced and confirms there are no parameters, but it says nothing about privilege requirements or behavior when firewalld is absent/stopped.

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?

A single compact sentence that front-loads the read-only nature and then the scope. The 'SysKnife action `GetFirewallState`' naming is mildly redundant with the tool name, but overall there is no wasted text.

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 zero-parameter read tool with full annotation coverage and no output schema, the description covers what is returned conceptually. Minor gaps remain around privileges and behavior on non-firewalld systems, but nothing blocks correct invocation.

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

Parameters4/5

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

This tool takes zero parameters, which is the baseline-4 case, and the description reinforces it with 'no params' so an agent won't hunt for inputs. Nothing further is needed because there is nothing to parameterize.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description gives a concrete verb ('show') and a specific resource set: firewalld zones, open services, and port rules. Naming firewalld implicitly separates it from siblings like ufw_status, get_nftables_ruleset, and get_firewall_backend_state, but it never states that routing rule explicitly.

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 by the 'firewalld' scoping — an agent can infer this is the tool for firewalld systems, but there is no explicit when-to-use or when-to-prefer-a-sibling guidance, e.g. versus sysknife_ufw_status or sysknife_get_firewall_backend_state.

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