Skip to main content
Glama

PrivateByte

Manage a server firewall

firewall
Destructive

A server's firewall. action list shows the rules in the order they are checked (the first match decides; traffic no rule matches is allowed). add appends one rule; remove deletes one rule by rule_id. add and remove change who can reach the server, so ask the person first and set confirm to the server id. list needs vm:read; add and remove need vm:destroy.

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": {
      "server_id": "<server_id>",
      "action": "<action>"
    },
    "name": "firewall"
  }
}

Input Schema

NameRequiredDescriptionDefault
ruleNoOnly for add
actionYes
confirmNoFor add and remove: repeat the server id
rule_idNoOnly for remove: from action list
server_idYes
request_idNoAn id you choose for this one action, 8 to 64 characters. Send the same id again when retrying, so nothing is done twice. Use a new id for a new action.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already declare destructiveHint=true and readOnlyHint=false, and the description adds real behavior beyond that: first-match-wins rule ordering, a default-allow policy when no rule matches, and the fact that add/remove change who can reach the server. These are non-obvious semantics an agent could not infer from the annotations or schema.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Five tight sentences, front-loaded with what the tool is, then action semantics, then the destructive warning and permissions. Every sentence carries distinct information; nothing is redundant filler.

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 destructive multi-action tool with no output schema, the definition covers rule ordering, default policy, safety confirmation, and permissions. It does not say what add/remove return, but that gap is minor against the behavioral coverage provided.

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 coverage is 67%, and the nested rule object documents direction, protocol, port, ip, and comment itself. The description reinforces confirm (repeat the server id) and rule_id (from action list), but largely restates the schema, so the baseline 3 for moderate coverage is appropriate.

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?

The description names the resource (a server's firewall) and enumerates each action with a specific verb: list shows rules in evaluation order, add appends one rule, remove deletes by rule_id. An agent knows exactly what the tool does and what each action value selects without opening the 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?

It routes the agent per action and states the prerequisite permissions (list needs vm:read; add/remove need vm:destroy), plus an explicit safety precondition: ask the person first and set confirm to the server id. That is actionable when-to-use guidance with the gate condition spelled out.

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