Skip to main content
Glama
This connector has been deprecated

Replaced by ZapX by ZAP-Hosting.

Duplicate listing. ZapX by ZAP-Hosting is maintained under ZapX by ZAP-Hosting (same endpoint https://zap-hosting.com/api/mcp, verified owner, test profile). Please use that listing.

Change VPS Firewall Rule

mutate_vserver_firewall_rule
Destructive

Add, update, delete or move a VPS firewall rule (positions from get_vserver_firewall). add/update need type and ruleAction; update replaces the whole rule, so send every field to keep (omitted optional fields are cleared). Requires confirm=true. Requires an active ZapX Pass (see server instructions).

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": {
      "serviceId": "<serviceId>",
      "action": "<action>"
    },
    "name": "mutate_vserver_firewall_rule"
  }
}

Input Schema

NameRequiredDescriptionDefault
logNoadd/update: log level (default nolog).
posNoupdate/delete/move: `pos` of the rule as returned by get_vserver_firewall.
destNoadd/update: destination address, CIDR or +ipset_name. Empty = any.
typeNoadd/update: traffic direction.
dportNoadd/update: destination port(s), e.g. 22, 80,443 or 27015:27020.
macroNoadd/update: Proxmox firewall macro instead of proto/ports, e.g. SSH, HTTP, HTTPS, DNS, Ping.
protoNoadd/update: protocol, e.g. tcp, udp, icmp, icmpv6.
sportNoadd/update: source port(s), e.g. 1024:65535.
actionYes
enableNoadd/update: rule active (default true).
newPosNomove: target position. add: optional insert position; default is after the existing customer rules (lowest priority, first match wins), so pass newPos to place a rule above an earlier ACCEPT.
sourceNoadd/update: source address, CIDR or +ipset_name (IP set of this VPS). Empty = any.
commentNoadd/update: free text comment.
confirmNo
serviceIdYesID of the VPS: the "id" field from list_account_services or list_vservers (e.g. "cmabc123..."). The numericId shown in the panel (e.g. "180") is accepted too. IDs of other service types do not work here.
ruleActionNoadd/update: what the rule does with matching traffic.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.7/5.0
Behavior5/5

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

Goes well beyond the annotations by disclosing the destructive full-replacement semantics of update ('update replaces the whole rule, so send every field to keep (omitted optional fields are cleared)') and the confirmation/auth prerequisites. The annotations only say destructiveHint=true and idempotentHint=false; the description explains exactly what gets destroyed and how to avoid it.

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?

Dense but front-loaded: the action set and resource come first, then the replacement hazard, then prerequisites. Every clause carries operational weight, with no filler or restatement of the title.

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

Completeness5/5

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

For a 16-parameter destructive mutator with no output schema, the description supplies the two things an agent most needs and the schema cannot express: whole-object replacement on update and the ordering default of newPos. Nothing essential to calling it correctly is missing.

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?

Schema coverage is already 88%, so the baseline is 3, and the description adds the action-to-parameter mapping (which fields matter for add/update vs update/delete/move) that the per-field schema text does not express. The newPos ordering explanation largely duplicates its already-verbose schema description, which caps this below a 5.

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 set of verbs (add, update, delete, move) against a named resource (VPS firewall rule), and points to get_vserver_firewall as the source of the positions used by three of the four actions. That cleanly separates it from the read-only sibling and from mutate_vserver_firewall_ipset.

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

Usage Guidelines4/5

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

Gives concrete preconditions: positions come from get_vserver_firewall, add/update need type and ruleAction, confirm=true is required, and an active ZapX Pass is needed. It stops short of explicitly contrasting with update_vserver_firewall_options or the ipset mutator, but the action-selection guidance is strong.

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