Skip to main content
Glama

Apply VPS Plan Change

apply_vserver_plan_change
Destructive

Execute a VPS upgrade or downgrade after the user has explicitly confirmed a matching preview_vserver_plan_change result. NEVER call in the same turn as preview_*. Requires confirm=true, userExplicitlyConfirmed=true, and previewConfirmationNonce from the matching preview_* result, plus the same target and the same couponCode as that preview (omit couponCode if the preview had none). Only call after the user explicitly confirmed the exact pricing summary you showed. When the preview has requiresImmediateStartRequest: true (paid upgrade), also tell the user they ask ZAP-Hosting to start the upgrade right away and owe compensation for the days used if they withdraw the upgrade within 14 days; pass requestImmediateStart=true only if they expressly agreed to that. If apply returns PREVIEW_CONFIRMATION_TOO_EARLY, wait until details.earliestApplyAt (or confirmation.earliestApplyAt from preview) and call apply again; this short safety delay needs no explanation to the user. Triggers billing and infrastructure changes.

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": {
      "serviceId": "<serviceId>",
      "confirm": "<confirm>",
      "userExplicitlyConfirmed": "<userExplicitlyConfirmed>",
      "previewConfirmationNonce": "<previewConfirmationNonce>"
    },
    "name": "apply_vserver_plan_change"
  }
}

Input Schema

NameRequiredDescriptionDefault
targetNo
confirmYes
serviceIdYesID of the VPS: the "id" field from list_account_services or list_vservers (e.g. "cmabc123..."). The numericId shown in the panel (e.g. "180") is accepted too. IDs of other service types do not work here.
couponCodeNoOptional shop coupon code the user typed for this upgrade. Only pass a code the user explicitly gave you in this conversation; never guess, invent, reuse from elsewhere or try codes. It only reduces the amount charged now for an upgrade (pricing.couponDiscountCents, coupon.error when refused). Apply must send exactly the same couponCode as the preview whose nonce it uses.
requestImmediateStartNoExpress request of the user to start the upgraded service right away (§ 357a (2) BGB): they owe compensation for the days used if they later withdraw the upgrade. Set true ONLY when the user expressly agreed to exactly that in this conversation after you told them; never set it on your own. Required for a paid upgrade when the preview says requiresImmediateStartRequest: true, otherwise apply is refused with PLAN_CHANGE_EARLY_START_REQUIRED and nothing is charged. Ignored for downgrades and free changes.
userExplicitlyConfirmedYes
previewConfirmationNonceYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / requestImmediateStart
      Added value: +{
      +  "description": "Express request of the user to start the upgraded service right away (§ 357a (2) BGB): they owe compensation for the days used if they later withdraw the upgrade. Set true ONLY when the user expressly agreed to exactly that in this conversation after you told them; never set it on your own. Required for a paid upgrade when the preview says requiresImmediateStartRequest: true, otherwise apply is refused with PLAN_CHANGE_EARLY_START_REQUIRED and nothing is charged. Ignored for downgrades and free changes.",
      +  "type": "boolean"
      +}
  2. First observed

TDQS

A4.9/5.0
Behavior5/5

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

Annotations already flag destructiveHint=true and idempotentHint=false, but the description adds substantial context they cannot: billing is triggered, infrastructure changes, two specific error codes with recovery behavior (PREVIEW_CONFIRMATION_TOO_EARLY, PLAN_CHANGE_EARLY_START_REQUIRED), and a legal disclosure obligation about the 14-day withdrawal right. It also tells the agent that the safety delay needs no user-facing explanation, which prevents a wrong conversational move.

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?

Front-loaded with the blocking constraint (never in the same turn as preview) and densely packed, with no filler sentences. It is a long block and the legal/notice passage could be tightened, but nearly every clause encodes a distinct rule or recovery path.

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, 7-parameter, nested-object mutation tool with no output schema, this covers prerequisites, cross-tool state (nonce, matching target/coupon), consent conditions, failure modes and retry timing. An agent has everything needed to call it safely without opening the sibling preview tool.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is only 43%, but the description carries the missing meaning: it explains that target and couponCode must match the preview exactly, that couponCode should be omitted when the preview had none, and it spells out the conditional semantics of requestImmediateStart (only on express agreement, required for paid upgrades, ignored for downgrades). This goes well beyond the raw field types.

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?

The opening sentence names a specific verb (execute) and resource (VPS upgrade or downgrade) and immediately bounds it to a case the agent can recognize: after a matching preview_vserver_plan_change result. It is trivially distinguishable from the sibling preview_* and from the apply_* tools for other service types.

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?

Explicit when-to-use (only after the user confirmed the exact pricing summary), explicit when-not (never in the same turn as preview_*), and a named prerequisite tool whose nonce must be carried over. It also states the refusal path and retry timing (wait until details.earliestApplyAt) rather than leaving the agent to guess.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources