Skip to main content
Glama

create_load_balancer_rule

Creates a CloudStack load balancer rule that maps a public IP and port to a VM's private port, using a selected algorithm and optional TCP/UDP protocol.

Instructions

Create a load balancer rule

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": {
      "publicipid": "<publicipid>",
      "algorithm": "<algorithm>",
      "name": "<name>",
      "privateport": "<privateport>",
      "publicport": "<publicport>"
    },
    "name": "create_load_balancer_rule"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYesName of the load balancer rule
protocolNoProtocol (tcp, udp)
algorithmYesLoad balancer algorithm (roundrobin, leastconn, source)
publicipidYesPublic IP address ID
publicportYesPublic port
privateportYesPrivate port on the VM

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.5.0

TDQS

C2.3/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, yet it says nothing about permissions required, whether the rule takes effect immediately, or what happens on failure. Only the bare implication that this is a mutating create operation is communicated.

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 short and front-loaded with the verb, so there is no wasted wording. However, the brevity is a byproduct of under-specification rather than efficient communication.

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 mutating tool with six parameters (five required), no annotations, and no output schema, yet the description offers nothing beyond the name. An agent gets no help understanding relationships among publicipid/publicport/privateport or the consequences of creation.

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 every parameter (name, protocol, algorithm, publicipid, publicport, privateport) is already documented in the schema, including both enums. The description adds no additional meaning, which meets the baseline 3 for fully covered schemas.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose2/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description is a verbatim restatement of the tool name: 'Create a load balancer rule'. It conveys the verb and resource but adds no distinguishing detail versus siblings such as create_port_forwarding_rule or update_load_balancer_rule, and nothing about scope or required context.

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 update_load_balancer_rule, create_port_forwarding_rule, or create_lb_stickiness_policy, and no prerequisites (e.g., a public IP already existing) are mentioned. The create semantics are only implied by the name.

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