Skip to main content
Glama

next_vmid

Read-only

Returns a candidate free VMID to use immediately before creating a Proxmox VM or container; verify or handle conflicts because it is not a reservation.

Instructions

[READ] Return a free VMID for a new guest (/cluster/nextid).

Use immediately before a VM or container create call. This is a candidate ID, not a reservation: another creator may take it before the create request. Returns {"vmid": int}; the create operation must handle an ID conflict.

Args: target: Proxmox target name from config; omit for the default.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "next_vmid"
  }
}

Input Schema

NameRequiredDescriptionDefault
targetNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.8.0

TDQS

A4.9/5.0
Behavior5/5

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

Annotations already declare readOnlyHint=true, and the description is consistent with that while adding information annotations cannot express: the returned ID can be stolen by a concurrent creator and the create call must handle a conflict. It also discloses the return shape, {"vmid": int}, despite there being no output schema.

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?

The controlling facts — what it returns, when to call it, and that it is not a reservation — are front-loaded in the first three sentences, and the Args block is a single line. Nothing is repeated and nothing is padding.

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?

The tool is simple (one optional parameter, no output schema), yet the description still covers return format, the race-condition caveat, and the caller's obligation to handle conflicts. An agent has everything needed to call it correctly and to interpret 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?

Schema description coverage is 0%, so the description must carry the only parameter, and it does: "target: Proxmox target name from config; omit for the default." This tells the agent both where the value comes from and what omitting it means. It stops short of anything further (e.g. how a non-default target is exposed), which is the only reason it is not a 5.

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 free VMID for a new guest") and pins the upstream API endpoint (/cluster/nextid), so an agent knows exactly what it produces. It is clearly distinct from the listing/read siblings such as vm_list or vm_get, which return existing guests rather than an unallocated ID.

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?

Gives an explicit timing rule: "Use immediately before a VM or container create call." It also states the misuse case — the value is a candidate, not a reservation — so an agent knows not to cache or reuse it. No alternative tool competes for this purpose, so the absence of a named sibling is not a gap.

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