Skip to main content
Glama

openwisp_get_device_config

Generate and download a device's compiled NetJSON configuration by ID. Use it to retrieve OpenWISP device settings for network automation.

Instructions

[Category: Devices & Controller] Generate and download compiled NetJSON configuration for a device. (HTTP GET /api/v1/controller/device/{id}/configuration/)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYesDevice UUID or ID

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.0.0

TDQS

B3.2/5.0
Behavior3/5

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

With no annotations, the description bears the full behavioral burden. It discloses useful traits: the output is a generated/compiled NetJSON artifact and the underlying call is an HTTP GET (implying a safe read). It omits auth requirements, whether compilation is expensive/rate-limited, and what download actually returns.

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?

One sentence, front-loaded with the action and resource. The category tag and raw HTTP endpoint are useful orientation metadata but add minor length without semantic value, keeping it just below maximum.

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?

For a simple read with a fully documented single parameter, the core is covered. However, with no output schema and no annotations, the description should say more about the returned NetJSON payload or any preconditions; 'compiled NetJSON configuration' is only a hint.

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?

Only one parameter (id), and the schema documents it at 100% coverage as 'Device UUID or ID'. The description adds no syntax or format detail beyond the schema, so the baseline of 3 applies.

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 (generate/download) and resource (compiled NetJSON configuration for a device), which is more precise than the sibling openwisp_get_device. It does not explicitly contrast itself with openwisp_get_template_configuration or openwisp_get_vpn_configuration, but the 'device configuration' scope is unambiguous.

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 when-to-use guidance, no prerequisites (e.g. device must exist/be reachable), and no naming of the closely related config siblings. An agent must infer the usage purely from the tool name and resource.

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

Deploy Server

Other Tools