Skip to main content
Glama

vyos_configure_batch

Apply multiple configuration operations as one atomic commit to set up VyOS firewall, NAT, tunnel, or scheduler blocks whose fields must validate together, preventing separate-request failures.

Instructions

Apply multiple set/delete/comment operations as a single commit transaction.

This is the workhorse for anything whose fields are validated together: a firewall rule (action + protocol + ports), a NAT rule (translation), a VXLAN or tunnel block, a scheduler task (executable + interval). Sending such fields in separate requests fails validation because each request commits on its own.

Args: operations: List of objects, each {"op": "set"|"delete"|"comment", "path": [...] or "a b c", optional "value": "..."}. The value, if given, is appended to the path. confirm_time: If > 0, commit-confirm for the whole transaction. save: Persist to /config/config.boot after a successful commit (default False).

A list is applied atomically per component: if one operation fails, nothing is committed for that component. The error names the component and missing field.

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": {
      "operations": "<operations>"
    },
    "name": "vyos_configure_batch"
  }
}

Input Schema

NameRequiredDescriptionDefault
saveNo
operationsYes
confirm_timeNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.4/5.0
Behavior4/5

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

No annotations are supplied, so the description carries the full burden and does substantial work: it discloses transaction/commit semantics, commit-confirm behavior for confirm_time > 0, persistence to /config/config.boot, and the failure mode (error names the component and missing field). The one weak spot is the tension between “single commit transaction” and “applied atomically per component… nothing is committed for that component,” which leaves partial-commit scope slightly ambiguous.

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?

Front-loaded with the core purpose followed by a concrete use-case paragraph, then a compact Args block, then the atomicity guarantee. Nearly every sentence earns its place; the example list is dense but the density is justified by the schema gap it compensates for.

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?

An output schema exists, so return values need not be explained, and the description covers all three parameters plus failure behavior. The only incompleteness is the unclear scope of “per component” atomicity relative to the stated whole-transaction commit.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0% and the operations items are untyped objects (additionalProperties: true, no properties), so the description must fully define the shape — and it does: op values set/delete/comment, path as either a list or a space-separated string, optional value appended to the path, confirm_time > 0 triggering commit-confirm, and save persisting to /config/config.boot with default False.

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 set (apply set/delete/comment operations) and resource (a single commit transaction), and goes further by explaining the distinguishing scenario: fields that are validated together (firewall action+protocol+ports, NAT translation, VXLAN/tunnel block, scheduler task). An agent can tell this apart from the single-purpose siblings like vyos_add_firewall_rule without opening any schema.

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?

Gives a clear positive rule (“the workhorse for anything whose fields are validated together”) plus four concrete example families where per-request commits would fail validation. It does not explicitly name when to prefer a dedicated single-op sibling, but the rationale implies it and the guidance is actionable.

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