Skip to main content
Glama

pmg_apt_repository_set

Enable or disable an APT repository entry on a PMG node by file path and index. Plan changes with dry-run, then confirm to apply.

Instructions

MUTATION: enable/disable one APT repository entry on a PMG node, by file path + index.

RISK_MEDIUM: changes where packages come from — affects the NEXT upgrade's package provenance. CAPTURE: reads current repository state before planning (also readable directly via pmg_apt_repositories_get); if unreadable -> complete=False. Proxmox's API deliberately does not expose upgrade execution; the upgrade itself happens at your console. This tool governs repo config only. Dry-run by default (returns a PLAN); confirm=True executes (POST, Smoke-confirm) and returns {"status": "ok", "result": None}. Needs PROXIMO_PMG_* config.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nodeNoPMG node name; defaults to the configured node if omitted.
pathYesAbsolute path of the sources file containing the repository entry (as returned by pmg_apt_repositories_get).
indexYes0-based index of the repository entry within that file (as returned by pmg_apt_repositories_get).
digestNoExpected content digest of the repositories file, for optimistic-concurrency conflict detection.
confirmNoFalse (default) returns a dry-run PLAN only; True executes the change.
enabledNoSet the entry's enabled state; omit to leave the enabled state unchanged.
proximo_targetNoWhich configured Proxmox target to run this call against — a target name from your multi-target config (a specific PVE/PBS/PMG/PDM box). Omit to use the single/default target from the environment; the selection applies only to this call.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior5/5

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

With no annotations, the description fully discloses behavioral traits: it's a mutation with RISK_MEDIUM affecting package provenance, dry-run behavior, confirmation requirement, pre-read dependency, and config requirement. This is comprehensive and leaves no ambiguity.

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 description is well-structured and front-loads the purpose. It is somewhat verbose with sections like 'CAPTURE' and 'Proxmox's API', but each sentence adds value. Slightly longer than necessary but still effective.

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?

Given the tool's complexity (7 parameters, mutation, risk, dry-run), the description covers purpose, behavior, usage, dependencies, config requirements, and return values. It is complete and leaves no critical gaps.

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 coverage is 100%, so the baseline is 3. The description adds little beyond the schema, only mentioning 'file path + index' as key parameters. No additional parameter details or constraints are provided.

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?

The description clearly states the tool is for enabling/disabling an APT repository entry on a PMG node, specifying the method (by file path and index). However, it does not explicitly differentiate from similar sibling tools like pmg_apt_repository_add or pve_apt_repository_set.

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?

The description provides some usage context (dry-run by default, confirm to execute, needs PROXIMO_PMG_* config) and implies reading first via pmg_apt_repositories_get, but it does not explicitly state when to use this tool versus alternatives like adding a new repository.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/john-broadway/proximo'

If you have feedback or need assistance with the MCP directory API, please join our Discord server