Skip to main content
Glama

proxmox_create_token

Destructive

Create a Proxmox VE API token for a user and return its secret once. Requires confirm:true; with privsep enabled, grant token access separately via ACLs.

Instructions

Create an API token for a user (POST /access/users/{userid}/token/{tokenid}). Returns the secret ONCE - it cannot be retrieved later. With privsep (default), grant it access separately via proxmox_set_acl. Tier-2 write; requires confirm:true.

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": {
      "userid": "<userid>",
      "tokenid": "<tokenid>",
      "confirm": "<confirm>"
    },
    "name": "proxmox_create_token"
  }
}

Input Schema

NameRequiredDescriptionDefault
expireNoExpiry as a Unix timestamp (0 = never).
useridYesOwning user, e.g. 'automation@pve'.
commentNoToken comment.
confirmYesMust be true to write. Tier-2 safe-write gate.
privsepNoPrivilege separation (default true): the token gets only ACLs granted to it directly.
tokenidYesNew token name (the part after '!').

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.13.2

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already flag a non-read-only, destructive-capable operation, and the description adds genuinely new behavior: the secret is returned exactly once and is unrecoverable, plus the confirm gate and the privsep consequence for ACLs. It stops short of describing error conditions (e.g., duplicate tokenid) or what else the response contains.

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?

Three dense sentences: what it does, the one-time secret warning, and the privilege/confirm mechanics. Nothing is redundant and the irreversible secret warning is front-loaded right after the purpose.

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 six-parameter write tool with no output schema, the definition covers the critical hazards (unretrievable secret, confirm gate, ACL follow-up). Additional response-shape detail would help since no output schema exists, but everything an agent needs to call it safely is present.

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 baseline is 3, and the description earns above baseline by explaining the practical effect of privsep (token only gets directly-granted ACLs, hence the proxmox_set_acl step). Other parameters such as expire and comment are left entirely to 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?

The description gives a specific verb and resource plus the exact REST endpoint, and it distinguishes creation of a token from management of an existing token by naming proxmox_delete_token's domain through implication and proxmox_set_acl explicitly. An agent can tell immediately this creates a new API token for a user.

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

Usage Guidelines4/5

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

It clearly states the confirm:true prerequisite for this Tier-2 write and explains that with privsep enabled (the default) access must be granted separately via proxmox_set_acl. It does not spell out when to avoid token creation or what to do on tokenid collision, but the follow-up routing is explicit.

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