Skip to main content
Glama
hetzner-mcp-server
by lazyants

Attach Volume

hetzner_attach_volume

Attach a Hetzner Cloud volume to a server in the same location, with optional auto-mounting after attachment.

Instructions

Attach a volume to a resource such as a server. The resource and volume must be in the same location.

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": {
      "id": "<id>"
    },
    "name": "hetzner_attach_volume"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesVolume ID
serverNoDeprecated alias for assignee {id: server, type: "server"}; do not combine with assignee
assigneeNoResource to attach the volume to; required unless the deprecated server is set
automountNoAuto-mount the volume after attaching

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changedv4.1.0
    • addedInput schema / properties / assignee
      Added value: +{
      +  "description": "Resource to attach the volume to; required unless the deprecated server is set",
      +  "properties": {
      +    "id": {
      +      "description": "ID of the resource",
      +      "exclusiveMinimum": 0,
      +      "maximum": 9007199254740991,
      +      "type": "integer"
      +    },
      +    "type": {
      +      "const": "server",
      +      "description": "Type of the resource (currently only \"server\")",
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "id",
      +    "type"
      +  ],
      +  "type": "object"
      +}
    • changedInput schema / properties / server / description
      Previous value: -"Server ID to attach the volume to"New value: +"Deprecated alias for assignee {id: server, type: \"server\"}; do not combine with assignee"
    • changedInput schema / required
      Previous value: -[
      -  "id",
      -  "server"
      -]New value: +[
      +  "id"
      +]
  2. First observedv2.2.0

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare this is a non-read-only, non-destructive, non-idempotent, open-world mutation, so the safety profile is covered. The description adds the co-location constraint, which is genuinely useful. However it omits what happens if the volume is already attached elsewhere, whether automount requires the server to be running, and any auth/permission requirements.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two sentences, zero filler, with the core action front-loaded and the constraint second. Nothing could be removed without losing information.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a mutation tool with a fully documented 4-parameter schema and annotations carrying the safety profile, the description covers the essential gating constraint. A note on preconditions (volume not already attached) and non-idempotency would make it complete, but the core is adequate.

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%, and the schema itself explains the assignee/server deprecation split, automount, and ID bounds better than the description does. The description's 'resource such as a server' loosely mirrors the assignee.type constraint but adds no syntax or semantic detail beyond the schema. Baseline 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource: attach a volume. The phrase 'to a resource such as a server' correctly generalizes the assignee beyond the deprecated server parameter. It does not explicitly differentiate from hetzner_detach_volume or hetzner_assign_* siblings, but the action is unambiguous.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Provides one prerequisite (volume and resource must share a location), which is real usage guidance. It says nothing about when to prefer this over alternatives, nor whether the volume must currently be detached, leaving selection partly to inference.

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