Skip to main content
Glama

vyos_set_hostname

Configure a VyOS router or firewall hostname and optionally save it after commit so the device keeps a consistent identity across reboots.

Instructions

Set the system host name.

Args: hostname: New host name. 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": {
      "hostname": "<hostname>"
    },
    "name": "vyos_set_hostname"
  }
}

Input Schema

NameRequiredDescriptionDefault
saveNo
hostnameYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.5/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 add real behavioral signal by indicating that changes are committed and that 'save' controls persistence after commit, which tells the agent about staging semantics. However, it omits whether the change is reversible, whether it requires an active config session or elevated privileges, whether a confirm/commit step follows, and whether committing a hostname change can disrupt existing sessions.

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 sentence is front-loaded and the Args block is scannable with zero filler. It is slightly longer than strictly necessary because the parameter names are restated as headers, but nothing is wasteful.

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?

This is a simple two-parameter mutation and an output schema exists, so return values need not be described. The main residual gap is the absence of annotations for a write operation, which the description only partially compensates for via the commit/persist note. Given the tool's low complexity, it is largely complete.

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

Parameters3/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 supply parameter meaning, and it documents both parameters: hostname as the 'New host name' and save as 'Persist after commit (default False)'. The 'persist after commit' phrasing genuinely adds semantics beyond the bare 'Save' title and default. It remains terse, though — no format/validation rules for hostname (length, allowed characters, FQDN vs short name).

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 description opens with a specific verb and resource: 'Set the system host name.' That is unambiguous and clearly distinct from sibling configuration tools such as vyos_set_name_server or vyos_set_time_zone. It stops short of naming a sibling or stating scope boundaries, so it is clear but not sibling-differentiating.

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?

Usage is only implied by the verb: an agent can infer this applies when changing the device's hostname. There is no explicit when-to-use, no mention of prerequisites (config mode, prior commit/confirm-commit flow), and no pointer to alternatives such as the generic vyos_set or vyos_configure_* tools.

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