Skip to main content
Glama

Preview VPS Plan Change

preview_vserver_plan_change
Read-onlyIdempotent

Return a read-only overview of the planned VPS package/configuration change: current vs. target resources, pricing (recurring old/new, delta, immediate charges or credits, billing period), blockers, migration requirements, and a one-time previewConfirmationNonce when allowed. Read-only. Never call apply_* in the same assistant turn. After preview, you MUST send a user-visible message that includes old price, new price, delta, and immediate charge or credit from confirmation.pricingSummary. Then STOP and wait for an explicit user reply (for example 'Ja') in a NEW turn. A user request like 'upgrade to 3 GB' only authorizes preview, not apply. Pass couponCode only when the user gave you a coupon code for this upgrade (never guess or invent one): an accepted code is shown as pricing.couponCode / pricing.couponDiscountCents and is already subtracted from the immediate charge; a refused code makes the preview not allowed with coupon.error -- tell the user why and preview again without the code if they want to continue.

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

Input Schema

NameRequiredDescriptionDefault
targetNo
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.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Annotations cover the safety profile (readOnly, idempotent, non-destructive, closed world), and the description adds substantial behavior beyond that: the one-time nonce, what a refused coupon does to the call ('preview not allowed with coupon.error'), how coupons affect the immediate charge, and the turn-boundary constraint that apply must follow in a later turn. This is exactly the kind of workflow and side-effect context annotations cannot express.

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?

Purpose and read-only nature are front-loaded, then behavioral rules follow in a logical order. It is a single dense run-on paragraph with no separators, and a few clauses (e.g. restating 'Read-only' twice) could be trimmed, but nearly every sentence carries operational weight.

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?

There is no output schema, and the description compensates by naming the return fields an agent must use (confirmation.pricingSummary, pricing.couponCode, pricing.couponDiscountCents, coupon.error) and the required next action. For a nested-parameter, mutation-adjacent preview tool, an agent has everything needed to call it and act on the result.

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

Parameters4/5

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

At 67% schema coverage the baseline is a 3, and the description pushes higher by explaining the coupon's effect on the immediate charge and the failure/retry path, plus hinting that target describes the requested configuration change. Much of the couponCode text overlaps the schema description and the nested target object (cores, memoryMb, diskGb, bandwidthMbps, targetPackageKey) is not discussed in prose at all.

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 and resource (return a read-only overview of the planned VPS plan change) and enumerates exactly what the overview contains: current vs. target resources, pricing breakdown, blockers, migration requirements, and the one-time previewConfirmationNonce. The phrase 'Never call apply_*' implicitly separates it from the apply_* siblings named in the catalog.

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 routing rules: preview only (an 'upgrade to 3 GB' request does not authorize apply), never call apply_* in the same assistant turn, send a user-visible price summary and then STOP for an explicit reply in a NEW turn. It also gives conditional guidance for couponCode including the recovery path (explain the refusal, re-preview without the code).

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