Skip to main content
Glama

Apply service public firewall

apply_service_public_firewall
Destructive

Resend a server's saved public firewall to its node when state is not_applied, keeping rules unchanged; then poll the firewall state to confirm the node's answer.

Instructions

Send the saved firewall of an owned server to its node again, typically after state not_applied; the rules and the generation do not change. Free. A send still waiting for the node's answer is not repeated; a server without a firewall, or with it switched off and confirmed, answers its current state and nothing is sent. Poll get_service_public_firewall for the state. 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. Read current capabilities and owned resource state first; obtain approval for the exact change. An accepted operation is pending, not proof of connectivity. Poll the returned operation/resource on its in_progress flag, waiting next_check_seconds between reads: while in_progress is true its reason_code is what is awaited (reason_kind waiting, e.g. a queued or pending reason, or a control plane that has not answered yet), never an error; only in_progress false with reason_kind failure is a failure. Preserve reason_code. On transport uncertainty inspect state and reuse only the original key and unchanged request; never automatically retry.

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": "apply_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
Behavior4/5

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

Well beyond the annotations: it discloses cost ('Free'), the pending-not-success semantics of an accepted operation, how to read in_progress/reason_code/next_check_seconds, the exact auth scopes required (networking:read / networking:manage, which full/read defaults do not grant), backend-enforced ownership/feature/2FA locks, and the key-reuse rule on transport uncertainty. One point of friction: annotations set destructiveHint=true, while the description emphasizes that 'the rules and the generation do not change' and that the call is 'Free', which can read as lower-risk than the annotation implies; the potential connectivity impact of re-pushing rules is never stated.

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?

Purpose is correctly front-loaded, but the body is a dense wall of run-on clauses mixing operation semantics, a long client_address digression about VPSnet's observed source address, and generic retry/polling policy. The client_address material is only loosely tied to invoking this tool and would be better placed in a rule-writing tool's documentation.

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 one-parameter mutation with no output schema and destructive annotations, the description covers nearly everything an agent needs: preconditions, no-op cases, auth scopes, pending-state interpretation, failure vs waiting distinction, and retry safety. The only omission is any hint of what the operation/resource result contains beyond client_address, and that is largely implied by the polling guidance.

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?

Only one parameter (service_id) with 0% schema description coverage, so the description carries the full burden. It implies the target is an 'owned server' and that ownership is enforced, which gives some meaning, but it never says what service_id is or its accepted format. Adequate but leaves the sole input largely to inference.

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 and resource: 'Send the saved firewall of an owned server to its node again', and pins the triggering state (not_applied) plus the invariant that rules and generation do not change. That distinguishes it cleanly from set_service_public_firewall and get_service_public_firewall without needing to open either 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?

Gives an explicit trigger ('typically after state not_applied'), an explicit no-op condition (server without a firewall, or switched off and confirmed, answers its current state and nothing is sent), and routes polling to the named sibling get_service_public_firewall. It also states the prerequisite ordering: read capabilities and owned resource state first, obtain approval, and ask the user which source address to allow before writing a rule.

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