Skip to main content
Glama

create_affinity_group

Create an affinity group to define VM placement rules in Apache CloudStack, specifying name, type, and optional account or domain details.

Instructions

Create an affinity group for VM placement rules

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

Input Schema

NameRequiredDescriptionDefault
nameYesAffinity group name
typeYesAffinity group type (host anti-affinity, host affinity, etc.)
accountNoAccount name
domainidNoDomain ID
descriptionNoAffinity group description

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?

No annotations are supplied, so the description carries the full burden, and it only says the tool creates a group. It does not disclose required permissions, whether the name must be unique, whether the call is idempotent, or what is returned (e.g., an ID); that is a large gap for a mutation tool.

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 front-loaded sentence with no filler — the verb and resource come first. It is efficient, though its brevity comes at the cost of specification rather than by removing redundancy.

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 five-parameter creation tool with no output schema and no annotations, the definition is only minimally adequate: the schema covers parameters, but nothing tells the agent what success looks like or what constraints apply. It leaves behavioral questions unanswered that an agent would need before invoking a write operation.

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 all five parameters are already documented in the schema, establishing the baseline of 3. The description adds nothing about parameters; notably the 'type' field has no enum, and the description does not enumerate the valid affinity types beyond the schema's '(host anti-affinity, host affinity, etc.)'.

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 ('Create') and resource ('an affinity group') plus the domain purpose ('for VM placement rules'), so an agent knows exactly what will be produced. It does not, however, distinguish itself from siblings like update_vm_affinity_group or list_affinity_groups beyond the verb.

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: nothing about prerequisites (an account/domain must exist), when to prefer update_vm_affinity_group or list_affinity_group_types, or when not to call it. The only hint is the vague 'VM placement rules' context.

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