Skip to main content
Glama
J-MaFf

s2-netbox-mcp

by J-MaFf

get_portal_states

Read-only

Lists NetBox-defined portal states as STATEKEY/STATENAME pairs, the vocabulary for get_portal_statuses and its STATEKEY filter. Optionally returns states across all partitions.

Instructions

Lists the portal states the NetBox system defines (wraps NBAPI GetPortalStates). Returns STATEKEY/STATENAME pairs — the vocabulary get_portal_statuses reports against, and the values its STATEKEY filter accepts.

Input Schema

NameRequiredDescriptionDefault
PORTALSTATESNoOptional. "TRUE" returns portal states across all partitions; omitted, the controller returns states for the default or currently switched partition.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.4.0

TDQS

A4.3/5.0
Behavior4/5

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

Annotations only assert readOnlyHint=true; the description adds the upstream origin (wraps NBAPI GetPortalStates) and, more usefully, the exact return structure since no output schema exists. It does not cover auth, pagination, or whether the list is fixed/cacheable, so it is not fully rich.

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?

Two tightly packed sentences, front-loaded with what is listed and followed immediately by the return shape and sibling relationship. No filler or restatement of the tool name.

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?

With no output schema, the description supplies the return shape (STATEKEY/STATENAME pairs) and the consumer relationship to get_portal_statuses. Combined with a fully documented single parameter and a read-only annotation, an agent has everything needed to call it correctly.

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 100% and the single PORTALSTATES enum is fully documented in the schema (partition scoping for TRUE vs omitted). The description adds no parameter detail, so the baseline 3 applies.

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 (lists the portal states NetBox defines) and pins down the return shape as STATEKEY/STATENAME pairs. It explicitly distinguishes itself from the sibling get_portal_statuses by framing itself as the vocabulary the latter reports against.

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?

It names the sibling it relates to and the condition that makes it useful (to interpret or filter get_portal_statuses' STATEKEY). It stops short of an explicit when-not-to-use statement, but the routing intent is clear without opening either schema.

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