Skip to main content
Glama
hcloud-mcp
by Xodus-CO

apply_firewall_to_resources

DestructiveIdempotent

Apply a firewall to specific servers or resources matching a label selector by passing a firewall ID and apply-to targets.

Instructions

Apply a firewall to servers or a label selector. Pass apply_to: [{ type: 'server', server: { id: 123 } }] or [{ type: 'label_selector', label_selector: { selector: 'env=web' } }].

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": {
      "id": "<id>",
      "apply_to": "<apply_to>"
    },
    "name": "apply_firewall_to_resources"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesFirewall ID
apply_toYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.1.1

TDQS

B3.3/5.0
Behavior2/5

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

Annotations already declare destructiveHint=true, idempotentHint=true, openWorldHint=true and readOnlyHint=false, so the safety profile is covered structurally. The description adds no behavioral detail at all: it never says what gets destroyed or replaced, whether previously applied firewalls are detached, or whether the operation is applied atomically across the whole selector. It is essentially a parameter example block, so the low score reflects zero added behavioral context.

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?

Two sentences, front-loaded with the purpose and followed immediately by concrete payloads; nothing is padded. The second sentence crams both alternatives into one run-on structure, but it is still readable and efficient.

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

Completeness3/5

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

For a destructive mutation with no output schema, the description covers input shape well but leaves open what the call returns, whether it replaces existing firewall assignments, and any authorization requirements. Those gaps matter given destructiveHint=true.

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 only 50%, and the description compensates by giving concrete example shapes for the apply_to array, showing that 'server' takes a nested id and 'label_selector' takes a nested selector string. That makes the polymorphic item structure clearer than the schema alone. It does not clarify the 'id' (firewall ID) parameter, so it falls short of a 5.

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?

States a specific verb ('Apply') and resource ('firewall') plus the two target types (servers or a label selector), which is enough to distinguish it from siblings like remove_firewall_from_resources or set_firewall_rules. It does not explicitly name a sibling or state its inverse relationship, so it stops short of the top band.

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

Usage Guidelines3/5

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

The two example payloads imply the two supported targeting modes, but there is no explicit when-to-use guidance, no when-not guidance, and no mention of prerequisites such as whether the firewall must already exist or what happens to resources already covered by another firewall.

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