Skip to main content
Glama

allow_network_on_port_profile

Remove a VLAN network from a port profile's exclusion list to re-enable it, resolving D12 auto-exclusion warnings on UniFi switches.

Instructions

Atomically allow (un-exclude) a VLAN network on a switch port profile.

host: console name, ID, or composite ID (MAC:numericId format). site: site name or ID. profile_id: REQUIRED. The port profile id; from list_port_profiles (its _id). network_id: REQUIRED. The networkconf id to allow; from list_networks (its id) or the resolved id fields in list_port_profiles output. confirm: must be True to execute. This is a live PUT to a SHARED port profile (its exclusion list affects every switch port using it); it refuses with an error dict when confirm is False, before any controller call.

This is the D12 auto-exclusion remediation: it fresh-reads the profile, removes network_id from excluded_networkconf_ids, PUTs, and returns {profile, tagged_networks} with the resulting tagged VLAN set rendered with names. Use it on every profile named in a create_network D12_AUTO_EXCLUSION warning.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
hostYes
siteYes
confirmNo
network_idYes
profile_idYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Install Server

TDQS

A4.8/5.0
Behavior5/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 so thoroughly. It discloses that this is a live PUT to a shared port profile, explains the side effect on every switch port using the profile, states that it refuses with an error dict when confirm is False, and describes the internal read-modify-write behavior before the controller call.

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?

Every sentence adds necessary information, and the most important action is front-loaded. Parameter explanations are grouped clearly, and the remediation context is stated compactly without repetition or filler.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a mutating tool with no annotations, the description covers prerequisites, ID sourcing, confirmation semantics, side effects, and the high-level return shape. The existence of an output schema reduces the need to detail the return structure further, so nothing essential is missing.

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%, but the description fully compensates by explaining every parameter: host formats, site name/ID, profile_id source, network_id source, and the confirm requirement. This is exactly the guidance an agent needs to resolve otherwise opaque parameter names.

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?

The description opens with a specific verb-resource pair ('Atomically allow (un-exclude) a VLAN network on a switch port profile') and clearly distinguishes this from the inverse operation by using 'un-exclude'. It leaves no ambiguity about what the tool does or which entity it affects.

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?

The description gives a concrete trigger condition: use it on every profile named in a `create_network` `D12_AUTO_EXCLUSION` warning. It does not explicitly contrast this with the sibling `exclude_network_on_port_profile`, but the inverse semantics are implied by 'un-exclude' and the focused remediation use case provides clear context.

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

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/swkstudios/unifi-fabric-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server