Skip to main content
Glama

Reinstall OS

reinstall_os
Destructive

Replace the operating system on a VPS or dedicated server, erasing existing data and snapshots after confirmation; then choose OS version and credentials.

Instructions

Reinstall OS on a VPS or qualified dedicated server. WARNING: destroys existing data; confirm with the user before reinstalling. Cloud VPS and Firecracker VPS: reinstall also deletes existing snapshots, so they cannot provide rollback after reinstall. Read get_os_options.snapshotDeletion first; when snapshots exist, set confirmSnapshotDelete to true only after the user explicitly confirms their deletion. A pending snapshot action blocks reinstall until it finishes. Container VPS has no snapshots. Dedicated servers erase every disk and have no snapshot rollback; get_os_options reports dedicated=true and confirmRequired=true. Pass confirmReinstall=true only after the user explicitly approves reinstalling that exact dedicated server and losing all disk data. Dedicated reinstall supports an optional sshKey from list_ssh_keys (otherwise the prior install key is reused), never rootPassword, and returns a reinstall job ID. VPS reinstall returns a noty UUID for acceptance; follow get_service_history for completion. Password rules: 6-40 chars, alphanumeric, must contain uppercase + lowercase + digit. OAuth requires services:reinstall; API keys require full access.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
sshKeyNoDedicated only: account SSH key ID from list_ssh_keys; omitted reuses the installed key.
orderNoYesTenant-owned service order number: 1-64 ASCII letters, digits or hyphens, e.g. VP12345 or VP12345-1
osVersionYesOS version ID from get_os_options
rootPasswordNoNew root password (auto-generated if omitted). 6-40 chars, alphanumeric, must contain uppercase + lowercase + digit
confirmReinstallNoDedicated only: true only after explicit user approval to reinstall this exact server and erase all its disks; never inferred or defaulted.
confirmSnapshotDeleteNoCloud VPS and Firecracker VPS only: set true only after the user explicitly confirms deletion of the existing snapshots shown by get_os_options.snapshotDeletion. They cannot provide rollback after reinstall. Never inferred or enabled automatically.

Schema Changelog

Changes observed during successful MCP inspections.

  1. 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 declare destructiveHint=true and non-idempotent, but the description goes well beyond them: it explains that data is destroyed, that snapshots are deleted with no rollback, that dedicated servers erase every disk, that pending snapshot actions block the call, the exact password constraints, and the differing return artifacts (reinstall job ID vs. noty UUID). This is exactly the extra context an agent needs for an irreversible operation.

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?

The WARNING and destruction consequence are front-loaded, which is the right priority ordering. The paragraph is dense and long, and the platform-specific rules (Cloud/Firecracker vs. Container vs. Dedicated) would scan faster as separated clauses, but nearly every sentence carries an operational constraint rather than 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?

There is no output schema, and the description compensates by describing what each variant returns (job ID for dedicated, noty UUID for VPS) and pointing to get_service_history for completion tracking. Combined with the destructive-action warnings and auth scopes, an agent has everything needed to call this correctly or correctly refuse to.

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 coverage is 100%, so the schema already documents all six parameters, making 3 the baseline. The description adds genuine nuance beyond the schema, notably that dedicated reinstall supports an optional sshKey from list_ssh_keys but "never rootPassword," and restates the confirm flags' user-consent semantics. It does not add much on orderNo or osVersion beyond what the schema says.

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 ("Reinstall OS") plus the exact scope (VPS or qualified dedicated server), which immediately separates it from sibling tools like enter_service_rescue, rollback_snapshot, or restart_service. An agent can identify 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?

Explicit when-to-use and preconditions: read get_os_options.snapshotDeletion first, pass confirmSnapshotDelete only after user confirmation, a pending snapshot action blocks reinstall, and confirmReinstall only after explicit approval. It also names the sibling tools to consult (get_os_options, list_ssh_keys, get_service_history) and states the auth requirements (services:reinstall scope or full-access API key).

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