Skip to main content
Glama

vyos_raw_api_call

Call any VyOS API endpoint directly with a raw operation payload for tasks not covered by higher-level tools. Write endpoints are blocked when read-only mode is enabled.

Instructions

Call any VyOS API endpoint directly with a raw operation payload.

Use this for anything the higher-level tools do not cover. Write endpoints (configure, config-file, reset, reconnect, reboot, poweroff, image, generate) are blocked when VYOS_READONLY=true.

Args: endpoint: Endpoint name without the leading slash, e.g. "retrieve", "configure", "show", "generate", "config-file", "reset", "image". data: The operation object (or list of objects for /configure), e.g. {"op": "showConfig", "path": ["firewall"]} or [{"op": "set", "path": ["interfaces","dummy","dum1","address","10.0.0.1/32"]}]. confirm_time: Optional commit-confirm window (minutes) for write endpoints. include_secrets: Return results unredacted (default False).

Returns the unwrapped "data" field of the VyOS response envelope.

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": {
      "endpoint": "<endpoint>",
      "data": "<data>"
    },
    "name": "vyos_raw_api_call"
  }
}

Input Schema

NameRequiredDescriptionDefault
dataYes
endpointYes
confirm_timeNo
include_secretsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.5/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does substantial work: it enumerates the read-only-gated write endpoints, explains the commit-confirm window, states that results are redacted by default with an opt-out via include_secrets, and describes the unwrapped return value. It stops short of covering auth requirements or error/failure behavior, which keeps it out of the top band.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded with purpose and the escape-hatch rule, followed by the read-only restriction, then a tight args block with worked payload examples. Every sentence adds information; the examples are the only length and they earn it by disambiguating a free-form payload parameter.

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 4-parameter raw-API escape hatch with no annotations and no output schema, the description covers selection, write-gating, parameter shapes, and the unwrapped return value. The remaining gap is that the endpoint list is illustrative ('e.g.') rather than exhaustive and error responses go unmentioned, which matters somewhat for a tool that forwards arbitrary payloads.

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%, so the description must compensate, and it does: it explains the endpoint format (no leading slash, with named examples), the shape of the data payload including both the single-object and list-of-objects forms with concrete examples, the semantics of confirm_time, and the default-off behavior of include_secrets. This is well beyond what the bare `data`/`endpoint`/`confirm_time` titles convey.

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 ('Call any VyOS API endpoint directly with a raw operation payload') and explicitly positions itself as the catch-all for cases 'the higher-level tools do not cover'. An agent can distinguish this escape hatch from the many task-specific vyos_* siblings without inspecting 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?

Gives a clear selection rule (use when no higher-level tool covers the case) and a hard guardrail listing the write endpoints blocked under VYOS_READONLY=true. It does not name specific preferred alternatives for common tasks, so the routing is described as a class rather than by name, but the when-to-use condition is unambiguous.

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