Skip to main content
Glama

vyos_set_firewall_default_action

Sets the default accept, drop, or reject action for a VyOS firewall filter hook on IPv4/IPv6 input, forward, or output traffic, optionally persisting the change after commit.

Instructions

Set the default action of a firewall filter hook.

Args: action: "accept", "drop" or "reject". family: "ipv4" or "ipv6". hook: "forward", "input" or "output". 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": {
      "action": "<action>"
    },
    "name": "vyos_set_firewall_default_action"
  }
}

Input Schema

NameRequiredDescriptionDefault
hookNoforward
saveNo
actionYes
familyNoipv4

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.1/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden for a mutation tool. The save parameter note ('Persist after commit') hints at a staged-commit model, but the description never states whether the change applies immediately, whether a commit/confirm step is required, or whether it overwrites an existing default action across the whole hook.

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 a single line followed by a compact per-argument list, with no filler text. The docstring-style layout is easy to scan, though the Args block does not visually distinguish required from optional parameters.

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 no explanation, and all parameters are at least named with their value sets. What is missing is the operational context an agent needs for a config mutation: commit requirements, scope of effect on existing rules, and safety/reversibility, for which there are no annotations to fall back on.

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%, yet the description documents all four parameters and enumerates the allowed values for action, family, and hook, plus the default for save. This substantially compensates for the bare schema, though it stops at value lists and does not explain semantics such as the difference between 'drop' and 'reject'.

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 names a specific verb and resource: setting the default action of a firewall filter hook, which is distinct from adding or deleting individual rules. It does not name or contrast with siblings such as vyos_add_firewall_rule or vyos_configure_batch, so an agent must infer the boundary itself.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no explicit when-to-use, when-not-to-use, or alternative tool guidance, and no prerequisites are stated. The use case is only implied by the purpose sentence, leaving the agent to decide on its own whether this is the right tool versus adding a catch-all rule.

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