Skip to main content
Glama

Get service public firewall

get_service_public_firewall
Read-onlyIdempotent

Read an owned server's public firewall rules and status for IPv4/IPv6 incoming traffic to inspect current access or prepare rule changes.

Instructions

Read the firewall of an owned server's public interface (VPS or Cloud VPS; incoming allow rules for IPv4 and IPv6). Free. available and unavailable_reason say whether it is offered for this server now; enabled, rules, generation (send it as expected_generation to set_service_public_firewall; 0 = the server never had one), applied_generation and state: applying, applied (the node enforces it), saved_for_start (stored, loaded before the server's interface comes up), not_applied with reason_code (public_firewall_closed = the node closed ALL incoming connections; apply_service_public_firewall sends the saved rules again), not_enforced (the node's bypass is on, nothing is filtered) or off. limits.rules is the rule limit; manage and manage_reason (read_only_key, two_factor_locked, suspended, check_failed) say whether this key may change it now; management_ports names the SSH port (RDP on a Windows Cloud VPS) that a change must keep open so the user is not locked out. client_address in the answer is the address the VPSnet API saw for this request: with this local package the public address of the machine that runs it, over a hosted connection the connector's gateway (returned there as null). It is never proof of the user's own address: ask the user which source address to allow before writing a rule with it. Requires explicit networking:read for reads or networking:manage for changes; full/read defaults do not grant networking. The backend enforces ownership, feature availability and service 2FA locks.

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": {
      "service_id": "<service_id>"
    },
    "name": "get_service_public_firewall"
  }
}

Input Schema

NameRequiredDescriptionDefault
service_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv2.3.21

TDQS

A4.3/5.0
Behavior5/5

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

Goes well beyond the readOnly/idempotent annotations: declares the call is free, enumerates the state machine (applying, applied, saved_for_start, not_applied with reason_code, not_enforced, off), explains limits.rules, manage/manage_reason values, management_ports lockout protection, and required scopes (networking:read vs networking:manage). It also discloses that the backend enforces ownership, availability and 2FA locks, and flags that client_address is not proof of the user's address.

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

Conciseness3/5

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

The purpose is front-loaded, but the rest is a single dense run-on paragraph with semicolon-chained field glosses and no grouping, making it hard to scan. Because there is no output schema, the return-field detail earns its place, but the formatting undermines readability.

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?

With no output schema, the description takes on the burden of explaining return values and does so thoroughly: availability, enabled/rules/generation, state values, limits, manage flags, management_ports and client_address semantics. An agent has enough to interpret the response and act on it correctly.

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 0% for the single service_id parameter, so the description must carry the meaning; it only implies ownership ('an owned server's public interface') and gives no format or identifier guidance. The bulk of the text documents return fields rather than the input parameter, leaving a modest gap.

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?

Opens with a specific verb+resource+scope: 'Read the firewall of an owned server's public interface (VPS or Cloud VPS; incoming allow rules for IPv4 and IPv6)'. This distinguishes it from sibling mutators like set_service_public_firewall and apply_service_public_firewall and from unrelated network tools.

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?

Clearly frames this as the read side and routes the agent forward: generation should be sent as expected_generation to set_service_public_firewall, and apply_service_public_firewall re-sends saved rules after a closed state. It also warns to ask the user which source address to allow before writing a rule. It stops short of explicit when-not guidance (e.g., when to prefer get_service or network-level inspection instead).

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