Skip to main content
Glama

set_virtual_service_enabled

Destructive

Enable or disable a Virtual Service; disabling stops all traffic to it. Preview the blast radius first, then apply with confirmation.

Instructions

[WRITE] Enable or disable a Virtual Service. Disabling stops all traffic to it.

Without confirm=True this only previews: it returns blast_radius (the VS name and uuid, whether it is enabled now, its VIPs and oper status, and the pools and member counts behind it) and changes nothing. Show that to the user and get their explicit decision. Do not set confirm=True on your own because the user asked earlier: they have not seen what it changes yet. A VS already in the requested state returns action "noop".

Refused with confirm=True: a VS whose uuid or pools cannot be read (the change would be blind). Use get_virtual_service_status first to check current state.

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": {
      "name": "<name>",
      "enable": "<enable>"
    },
    "name": "set_virtual_service_enabled"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYesExact Virtual Service name.
enableYestrue to enable, false to disable.
confirmNoFalse (default) returns the blast radius and changes nothing. True applies it.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv2.5.2
    • removedInput schema / properties / confirmed
      Removed value: -{
      -  "anyOf": [
      -    {
      -      "type": "boolean"
      -    },
      -    {
      -      "type": "null"
      -    }
      -  ],
      -  "default": null,
      -  "description": "Deprecated alias for confirm; removed in the next minor release. confirmed=False holds even when confirm=True.",
      -  "title": "Confirmed"
      -}
  2. Addedv2.4.0

TDQS

A4.9/5.0
Behavior5/5

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

Goes well beyond the annotations by describing the two-phase preview/apply model, exactly what blast_radius contains (name, uuid, current enabled state, VIPs, oper status, pools and member counts), the 'noop' outcome for already-matching state, and the refusal condition for unreadable uuid/pools. These are concrete destructive-impact and safety details the destructiveHint/openWorldHint flags alone do not convey.

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?

Front-loads the write classification and the core action, then layers the preview contract, the anti-pattern warning, and the refusal case in short paragraphs. No sentence is filler; the caution about confirm=True is long but directly prevents a destructive mistake.

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?

There is no output schema, and the description compensates by enumerating the blast_radius return fields and the 'noop' action value, so an agent knows what comes back. Combined with the refusal and prerequisite guidance, nothing needed to invoke this 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 100%, so the baseline is 3, but the description adds real meaning to confirm by spelling out the preview payload and the no-op outcome, which the schema summary does not. It does not restate name/enable beyond what the schema already documents, which is appropriate.

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 verb pair and resource ('Enable or disable a Virtual Service') and immediately adds the operational consequence ('Disabling stops all traffic to it'). The [WRITE] tag and the pointer to get_virtual_service_status make it distinguishable from the read-only siblings at a glance.

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 explicit when/when-not rules: default to preview, show blast_radius to the user, obtain an explicit decision, and never self-set confirm=True based on earlier conversation. It also names the alternative path (get_virtual_service_status) for the case where uuid or pools cannot be read.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.