Skip to main content
Glama

Turn VPS DDoS Protection On or Off

toggle_vserver_ddos_protection
Destructive

Switch DDoS protection of a VPS IP on or off (service owner only). Switching it off leaves the IP unfiltered. 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>"
    },
    "name": "toggle_vserver_ddos_protection"
  }
}

Input Schema

NameRequiredDescriptionDefault
confirmNo
enabledNoTarget state (true = protected). Without it the current state is flipped.
ipAddressNo
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.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and idempotentHint=false, but the description adds real value on top: the owner-only authorization constraint and the consequence that turning it off leaves the IP unfiltered. It does not describe the response or how long the change takes to take effect.

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?

Four short sentences, front-loaded with the action, then the risk, then the two hard prerequisites. Every sentence carries information an agent needs and none is redundant.

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 authorization, prerequisites, and consequences well. It leaves ambiguous whether omitting ipAddress applies the change to all IPs or how the result is reported, which matters given only one of four parameters is required.

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 50%, and the description usefully supplies the confirm=true requirement that the schema itself does not mark as required. However, ipAddress is undocumented in both places, and the description's phrase 'of a VPS IP' implies an IP is mandatory even though only serviceId is required.

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?

The description states a specific verb and resource: switch DDoS protection for a VPS IP on or off. 'VPS IP' implicitly distinguishes it from the dedicated-server sibling toggle_dedicated_ddos_protection, but that alternative is never named, so an agent must infer the split.

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?

Prerequisites are clear and actionable: service-owner-only access, an active ZapX Pass, and confirm=true. What is missing is an explicit when-to-use versus the dedicated-DDoS sibling or the read-only status tools, which get_vserver_ddos_status would cover.

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