Skip to main content
Glama

Order service

order_service
Destructive

Orders a new VPS on VPSnet by returning a gross EUR quote and billing period first, then charging after explicit approval using the quote token and idempotency key.

Instructions

Order a new VPS. Requires sufficient account balance for balance payment. Payment object for balance: { payment: 1, successUrl: '', cancelUrl: '' }. First call returns confirmationRequired and an exact gross EUR quote without charging. Show the amount and billing period, obtain explicit approval, then call again with the unchanged order configuration and idempotencyKey, returned quoteToken, expected_total_eur and acknowledge_charge=true. The API key must have paid scope/caps enabled. Never replace the key after an uncertain payment; inspect that original attempt in the VPSnet panel. Quotes are retained in this MCP process; after a restart inspect the original attempt in the panel rather than submitting another order. Payment acceptance is not server readiness. Poll get_service for the returned order number. stateProcess.waitingReason=public_ip_inventory resumes the same paid CREATE automatically when inventory returns; do not place or pay for another order. stateProcess.attention=true needs operator attention. Follow follow_up for the same service. Poll about every 10 seconds, never treating that interval as a boot ETA; after at most 6 checks report pending progress and retain the original key/order. Do not automatically restart or promise a completion callback. Running VM, usable guest access and application health are separate checks. Resources: array of numeric resource value IDs from get_order_options, e.g. [901, 907]. rootPassword: 6-40 chars, alphanumeric, must contain uppercase + lowercase + digit. Example: 'MyPass123'. sshKey and rootPassword are mutually exclusive — provide one or the other. privateNetworkId (optional): the UUID of one of your private networks to attach the new server to at order time, the same choice the order form offers; the server checks the network in the quote and refuses the order with a reason when it cannot be attached. Omit it for an order without a private network.

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": {
      "plan": "<plan>",
      "period": "<period>",
      "idempotencyKey": "<idempotencyKey>",
      "payment": "<payment>"
    },
    "name": "order_service"
  }
}

Input Schema

NameRequiredDescriptionDefault
osNoOS version ID from get_order_options
planYesPlan ID from get_order_plans
periodYesExplicit billing period ID from get_order_options; disclose its term together with the exact gross quote before approval.
sshKeyNoSSH key ID from list_ssh_keys to deploy. Mutually exclusive with rootPassword
paymentYesPayment object. For balance: { payment: 1, successUrl: '', cancelUrl: '' }
resourcesNoArray of numeric resource value IDs from get_order_options, e.g. [901, 907, 902]
quoteTokenNoExact token returned by the first order_service call; required for confirmation.
rootPasswordNoRoot password. 6-40 chars, alphanumeric, must contain uppercase + lowercase + digit. Mutually exclusive with sshKey
idempotencyKeyYesRequired for paid API-key orders. Stable unique key for this exact order attempt, e.g. UUID.
privateNetworkIdNoUUID of one of your private networks to attach the new server to (shown in the control panel under Networking). Sent to both the quote and the confirm; omit for no private network
acknowledge_chargeNoSet only after explicit approval of the exact gross EUR total and billing period.
expected_total_eurNoExact VAT-inclusive amount_eur disclosed to and approved by the customer; required for confirmation.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv2.3.21
    • changedInput schema / properties / payment / additionalProperties
      Previous value: -trueNew value: +{}
  2. First observedv2.3.16

TDQS

A4.8/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 goes far beyond them: it explains the first call is non-charging, quotes are retained only in the MCP process, idempotencyKey must be stable, the original key must never be replaced, and payment acceptance is not server readiness. These are critical behavioral traits that annotations alone could not convey.

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 payment flow are front-loaded, and nearly every sentence carries operational weight for a destructive paid action. It is dense and could use paragraph breaks, and a few details (password example, payment object shape) repeat schema content, but overall it avoids filler.

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 12-parameter destructive billing tool with a nested payment object and no output schema, the description covers the full lifecycle: quoting, approval, idempotency, inventory waiting, polling cadence, failure recovery, and scope requirements. Nothing an agent needs to call it safely is missing.

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?

Schema description coverage is 100%, so the baseline would be 3. The description adds meaningful context for privateNetworkId (checked in the quote and refused with a reason when it cannot be attached) and clarifies that resources are order-form value IDs. Password rules and mutual exclusivity are repeated from the schema, but the private-network behavior is value beyond the schema.

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?

Opens with a specific verb and resource ('Order a new VPS') and immediately distinguishes itself from sibling read/prep tools like get_order_options and get_service. An agent knows exactly what this tool does without opening the schema.

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?

Explicitly states the two-step flow (quote first, then confirm with unchanged config and quoteToken), the conditions for approval, and the alternative action when inventory is exhausted (poll get_service, resume automatically). It also names when not to use it by warning against placing another order after an uncertain payment.

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