Skip to main content
Glama

vyos_config_exists

Check whether a VyOS configuration path currently exists and return an existence flag, so you can verify paths and avoid empty-configuration errors before applying desired state.

Instructions

Check whether a configuration path currently exists.

Returns {"exists": bool}. Use this before a desired-state apply to avoid the "empty configuration" error on fresh systems.

Args: path: Configuration path (list or space-separated string).

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": {
      "path": "<path>"
    },
    "name": "vyos_config_exists"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4/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. It discloses the non-mutating nature (a check), the exact return value, and the operational reason to call it before an apply — enough for a low-risk read. It omits any mention of permissions or how a partially-matching/nonexistent parent path is reported.

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 purpose and return value, then usage, then the single argument. Slightly redundant to restate {"exists": bool} when an output schema exists, and the Args block is a bit formal for one parameter, but nothing is wasted.

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?

For a one-parameter read tool with an output schema and no annotations, the definition covers purpose, call timing, and argument format. Remaining gaps — path syntax examples and behavior on missing intermediate nodes — are minor for a boolean existence check.

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%, and the schema's anyOf offers no explanation of accepted forms. The description compensates by stating path is a "Configuration path (list or space-separated string)," which explains the two accepted shapes. It does not give a concrete example path, leaving syntax to be inferred.

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?

States a specific verb and resource: "Check whether a configuration path currently exists," and pins the return shape to {"exists": bool}. That return-shape statement implicitly separates it from value-returning siblings like vyos_show_config, though no sibling is named explicitly.

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?

"Use this before a desired-state apply to avoid the 'empty configuration' error on fresh systems" gives a concrete trigger condition plus the rationale. It stops short of stating when not to use it or naming an alternative check, so it is clear context rather than full routing guidance.

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