Skip to main content
Glama

vyos_add_static_route

Add an IPv4 or IPv6 static route on a VyOS router in one commit, specifying destination, next hop, interface, distance, and optional persistence.

Instructions

Add a static route (IPv4 or IPv6) in one commit.

Provide a next_hop, an interface, or both.

Args: destination: Destination prefix, e.g. "10.0.0.0/8" or "::/0". next_hop: Gateway address, e.g. "192.0.2.1". interface: Egress interface for an interface route, e.g. "eth1". distance: Optional administrative distance. family: "ipv4" (default) or "ipv6". save: Persist after commit (default False).

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": {
      "destination": "<destination>"
    },
    "name": "vyos_add_static_route"
  }
}

Input Schema

NameRequiredDescriptionDefault
saveNo
familyNoipv4
distanceNo
next_hopNo
interfaceNo
destinationYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.1/5.0
Behavior3/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. It does disclose meaningful behavior beyond structured data: the change is applied "in one commit" (atomicity), and save controls persistence after that commit with a stated default of False, which signals the change may not survive a reboot. It does not mention permissions, whether an existing identical route is overwritten, what happens on validation failure, or whether a separate confirm-commit step is required — significant gaps for a mutation tool.

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 action and its atomicity claim, then the one critical usage constraint, then a compact argument list. The Args block partly repeats parameter names already visible in the schema, but since schema coverage is 0% the examples and defaults it supplies are earned rather than padding.

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?

All six parameters are addressed, an output schema exists so return values need not be explained, and the usage constraint is stated. For a mutation tool with zero annotation coverage it is still missing error/overwrite behavior and the relationship to the commit/confirm workflow, which an agent would need in order to call it confidently.

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 carry parameter meaning, and it largely does: destination and next_hop are given concrete format examples for both address families, interface is scoped to interface routes, family is given its two legal values and the default, and save's post-commit persistence semantics are explained in a way the schema cannot. Gaps remain on distance ("optional administrative distance" with no range or default) and on which parameters are mutually dependent, keeping it below a 5.

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 and resource — "Add a static route (IPv4 or IPv6) in one commit" — and pins the scope with the family qualifier and the single-commit claim. An agent can immediately distinguish it from the sibling deletion/configure tools without opening the 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?

"Provide a next_hop, an interface, or both" is an explicit invocation rule that tells the agent the minimum valid shape of the call, which is real guidance rather than restatement. It stops short of naming alternatives (e.g., batch configuration via vyos_configure_batch) or stating when a static route should be added versus configured another way, so it lacks true when/when-not routing.

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