Skip to main content
Glama

update_vm_affinity_group

Update a VM's affinity group memberships using comma-separated group IDs or names to adjust CloudStack placement and policy associations.

Instructions

Update VM affinity group memberships

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>"
    },
    "name": "update_vm_affinity_group"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesVM ID
affinitygroupidsNoComma-separated affinity group IDs
affinitygroupnamesNoComma-separated affinity group names

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.5.0

TDQS

C2.9/5.0
Behavior2/5

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

With no annotations, the description carries the full burden and delivers almost nothing: no statement of required permissions, whether existing memberships are overwritten or appended, what happens when affinitygroupids and affinitygroupnames conflict, or how to remove a VM from all groups. Only the word "update" signals mutation.

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?

A single five-word phrase, front-loaded with the verb and resource, with zero wasted wording. It is efficient but so terse that it reads as a label rather than an instruction set.

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?

For a mutation tool with no annotations and no output schema, the description should disclose the replace-vs-append semantics and the effect on running VMs, and it does not. The fully documented schema covers parameters, but the behavioral contract for a membership-changing write is missing.

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 description coverage is 100%, so the three parameters are already documented, which sets the baseline at 3. The description adds no meaning beyond that — notably it doesn't explain the precedence or interaction between the comma-separated ID list and name list, nor whether omitting both clears membership.

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 and resource ("Update VM affinity group memberships"), which is clearly distinct from sibling operations like create_affinity_group, delete_affinity_group, and list_affinity_groups. It stops short of any explicit sibling differentiation and doesn't clarify whether memberships are replaced wholesale or amended.

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 when-to-use guidance, no prerequisites, and no mention of alternatives (e.g., create_affinity_group for new groups, list_affinity_groups to inspect current membership). An agent must infer everything about invocation 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