Skip to main content
Glama

delete_affinity_group

Removes an affinity group from CloudStack by ID or name, with optional account and domain scoping, to clean up unused placement policies.

Instructions

Delete an affinity group

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "delete_affinity_group"
  }
}

Input Schema

NameRequiredDescriptionDefault
idNoAffinity group ID
nameNoAffinity group name (alternative to ID)
accountNoAccount name
domainidNoDomain ID

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.5.0

TDQS

C2.8/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden and delivers almost nothing. It does not state that the operation is destructive and irreversible, what happens to VMs still associated with the group, whether elevated permissions are required, or what a successful response looks like.

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 single sentence is front-loaded and contains no filler, so nothing is wasted. However, its brevity reflects under-specification rather than efficient communication — there is room to add critical deletion caveats without bloat.

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

Completeness2/5

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

This is a four-parameter destructive mutation with no annotations and no output schema, so the description is the only place behavioral and usage context could live. Given that complexity, a bare restatement of the tool name leaves the agent without the information needed to invoke it safely or 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 100%, with each of the four parameters (id, name, account, domainid) individually documented, so the schema already does the explanatory work. The description adds no meaning beyond it — notably it does not clarify how id and name interact as alternatives or how account/domainid scope the lookup.

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 ("Delete an affinity group"), which is unambiguous on its own. It does not distinguish this tool from siblings such as update_vm_affinity_group or list_affinity_groups, but the action/resource pairing is clear enough for an agent to identify intent.

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

Usage Guidelines2/5

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

There is no guidance on when to use this tool versus alternatives, no preconditions (e.g., group must be empty or detached from VMs), and no mention of sibling tools. The agent must infer all situational context from the name alone.

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