Skip to main content
Glama

vyos_set

Applies one VyOS set command and commits immediately; supports optional commit-confirm auto-rollback and saving to config. Use for simple single-path changes, not multi-field validation.

Instructions

Apply a single set command and commit it immediately.

Args: path: Configuration path (list or space-separated string), e.g. "interfaces dummy dum1 address". value: Optional final value appended to the path, e.g. "10.11.0.1/32". confirm_time: If > 0, commit-confirm: the change reverts after this many minutes unless vyos_confirm_commit is called. Use as a remote safety net. save: Persist to /config/config.boot after a successful commit (default False).

NOTE: fields validated together must be set in one request — use vyos_configure_batch for those. A single set that leaves a rule/object incomplete will fail validation.

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": {
      "path": "<path>"
    },
    "name": "vyos_set"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYes
saveNo
valueNo
confirm_timeNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does well: it states the commit is immediate, that confirm_time makes the change auto-revert after N minutes unless vyos_confirm_commit is called, that save persists to /config/config.boot, and that incomplete objects fail validation. It does not mention config-lock/exclusive-mode behavior, error reporting, or irreversibility of an un-confirmed commit beyond the timeout.

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?

Purpose is front-loaded in one sentence, followed by a compact per-argument block and a final caution. Every sentence carries information, though the docstring-style Args formatting is slightly verbose for a description field.

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 no annotations, the definition covers the mutation model, revert semantics, persistence, and the validation constraint, and an output schema exists so return values need no explanation. Missing only concurrency/locking and failure-mode detail, which is minor for this scope.

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 compensate, and it defines all four parameters: path accepts a list or space-separated string with a concrete example, value is an optional trailing element appended to the path with an address example, confirm_time is minutes-until-revert, and save defaults to False. It stops short of edge cases (quoting, special characters, value typing) but adds substantial meaning beyond the raw schema.

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 opening sentence gives a specific verb and effect: apply one `set` command and commit immediately. It is clearly a generic raw-config primitive distinct from the batch tool, though it never contrasts itself with the many specialized siblings (vyos_set_hostname, vyos_set_interface_address, etc.), so an agent must infer when the generic path is preferred.

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?

The NOTE explicitly routes interdependent fields to vyos_configure_batch and warns that a lone set leaving an object incomplete will fail validation — a real when-to-use condition with a named alternative. It also frames confirm_time as a 'remote safety net' and points to vyos_confirm_commit. No exclusion is given for the specialized vyos_set_* tools, which is the main remaining gap.

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