Skip to main content
Glama

Change plan

change_plan
Destructive

Change a VPS service plan without taking payment: convert remaining value at the new price, so upgrades shorten the period; calculate the change first and confirm the new expiry with the customer.

Instructions

Change VPS plan. No payment is taken; the remaining value is converted at the new price, so an upgrade shortens the service period. Always call calculate_plan_change first and confirm the new expiry with the customer. Use get_plan_resources to get resource IDs for the target plan. Requires services:manage and a full-access API key.

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": {
      "orderNo": "<orderNo>",
      "plan": "<plan>",
      "resources": "<resources>"
    },
    "name": "change_plan"
  }
}

Input Schema

NameRequiredDescriptionDefault
planYesPlan ID from get_plan_options
orderNoYesTenant-owned service order number: 1-64 ASCII letters, digits or hyphens, e.g. VP12345 or VP12345-1
resourcesYesArray of numeric resource value IDs — one per resource type (RAM, SSD, IP, etc.). Get IDs from get_plan_resources response: each resource type has 'values' array, pick one value's 'id' per type. A type left out keeps its current value; an id the target plan does not offer is refused with 422 invalidResources.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.3.16

TDQS

A4.2/5.0
Behavior3/5

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

Adds real value beyond annotations: no payment taken, remaining value prorated to the new price, upgrades shorten the service period, and auth requires services:manage plus a full-access key. It also notes the 422 invalidResources rejection path. However it does not say whether the change is reversible, what happens to the old plan's data/IPs, or how long the switchover takes, which matter for a destructiveHint=true operation. With annotations already flagging destructive and non-idempotent, this is solid but not exhaustive.

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?

Four short sentences, front-loaded with the core action and its pricing consequence, then prerequisites, then auth. No filler, though the resource-ID sentence partially duplicates the schema.

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?

For a destructive 3-param mutation with no output schema, the description covers the critical things an agent needs: prerequisite call sequence, customer confirmation, billing side effect, and permission requirements. Nothing essential to safe invocation 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 schema already documents orderNo's pattern, plan ID sourcing, and the per-type resource ID semantics including the 422 case. The description's only cross-reference ('Use get_plan_resources to get resource IDs') repeats guidance already in the resources schema. Baseline 3 applies.

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+resource ('Change VPS plan') and immediately scopes it with the billing semantics that make it distinct from a plain update. An agent can tell exactly what this tool does and that it is not a payment operation.

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 ordering ('Always call calculate_plan_change first'), a prerequisite for resource IDs via get_plan_resources, and an operational gate ('confirm the new expiry with the customer'). Names the alternatives for both steps rather than leaving the agent to infer them.

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