Skip to main content
Glama

ubuntu_ufw_firewall

Control Ubuntu UFW firewall over SSH: enable, disable, allow, deny, delete, or reset rules with ports, protocols, and source addresses.

Instructions

Manage Ubuntu Uncomplicated Firewall (UFW)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
fromNoSource IP address or network
portNoPort number or service name (e.g., 80, 443, ssh, http)
sudoNoWhether to run the command with sudo (default: true)
actionYesAction to perform (enable, disable, status, allow, deny, delete, reset)
protocolNoProtocol (tcp, udp)
connectionIdYesID of an active SSH connection
Behavior2/5

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

With no annotations to rely on, the description fails to disclose important behavioral traits: actions are mutating and high-risk (e.g., deny could lock out the SSH session), sudo may be required (though a sudo parameter exists), and firewall state changes persist. The word 'manage' does not convey the potential for disruption.

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 description is a single, front-loaded sentence with no filler. It efficiently communicates the tool's general purpose, though it is minimal. It earns its place without being verbose, but could be slightly more informative without sacrificing concision.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool's complexity (multiple actions, unclear safety implications, no output schema, no annotations), the description is far from complete. It lacks guidance on rule syntax, what 'delete' or 'reset' entails, and any warnings. The schema covers parameters but not operational context.

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?

The description adds no parameter meaning, but the schema provides comprehensive descriptions for all 6 properties (100% coverage). The action field enumerates possible values, and port/protocol descriptions are clear, so the description's lack of parameter detail is not a major gap.

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 clearly states the resource (Ubuntu UFW) and a managing action. It distinguishes from siblings like ssh_exec or nginx_control, though 'manage' is somewhat broad. The schema's action parameter grounds the specific operations, making the purpose unambiguous.

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

Usage Guidelines2/5

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

No guidance is provided on when to use this tool versus alternatives like ssh_exec, nor does it note prerequisites such as an active SSH connection (connectionId required). It neither mentions when to use it nor when not to, leaving the agent without decision context.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/mihirbhadak/SSH-MCP'

If you have feedback or need assistance with the MCP directory API, please join our Discord server