Skip to main content
Glama

vyos_merge_config

Merge a configuration file or string into a VyOS running configuration, with optional commit-confirm to revert changes unless confirmed.

Instructions

Merge a configuration file or string into the running configuration.

Args: file: Path to a configuration file on the router. string: A configuration fragment in curly-brace format. confirm_time: If > 0, commit-confirm (reverts unless vyos_confirm_commit runs).

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": "vyos_merge_config"
  }
}

Input Schema

NameRequiredDescriptionDefault
fileNo
stringNo
confirm_timeNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.3/5.0
Behavior2/5

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

No annotations exist, so the description carries the full behavioral burden. It discloses the commit-confirm rollback window, which is valuable, but omits critical traits: that merging affects only the running config and requires a separate save to persist, what happens if both file and string are supplied, and whether the change is atomic or requires permissions.

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 purpose is front-loaded in one sentence and the Args block is terse and scannable with no filler. The only inefficiency is that the highest-risk behavior (rollback via commit-confirm) is buried in the last parameter note rather than surfaced up front.

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

Completeness3/5

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

An output schema exists, so return values need not be explained, and the parameter list is fully annotated. But for a mutation tool with zero annotations and zero schema coverage, the description should also address persistence (running vs saved config), precedence between file and string, and error behavior when neither is provided.

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 does: it explains that file is a path on the router, string is a curly-brace configuration fragment, and confirm_time is a threshold (> 0) rather than an arbitrary integer. The remaining gap is the relationship between file and string, which is left undefined.

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 first sentence gives a specific verb ('Merge') and resource ('configuration file or string into the running configuration'), so an agent knows exactly what the tool does. It does not explicitly contrast itself with close siblings such as vyos_load_config or vyos_configure_batch, so the reader must infer the distinction from names alone.

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 confirm_time note provides real conditional guidance: a value > 0 puts the change into commit-confirm state that reverts unless vyos_confirm_commit runs, which is genuinely useful routing information. However, there is no statement of when to prefer this over vyos_load_config, nor whether file and string are mutually exclusive or whether one is mandatory despite both defaulting to null.

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