Skip to main content
Glama

get_segment

Read-onlyIdempotent

Retrieve full details of a network segment, including its attached ports, to inspect properties like port_count before deletion.

Instructions

[READ] Get full details for one network segment, including its attached ports.

No side effects. Use after list_segments to inspect a single segment — e.g. check port_count before delete_segment (segments with attached ports refuse deletion). Returns: id, display_name, type, admin_state, subnets, transport_zone_path, connectivity_path (linked gateway), vlan_ids, port_count, and the first 50 ports (id, display_name, attachment). On failure returns {"error", "hint"} instead of raising.

Args: segment_id: Segment ID — the final component of the policy path /infra/segments/, as returned by list_segments. target: NSX Manager name from config.yaml. Uses the default target if omitted.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
targetNo
segment_idYes
Behavior5/5

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

Annotations already indicate read-only, non-destructive, idempotent behavior. The description adds no side effects, return fields (including first 50 ports), and error format, providing additional behavioral context beyond annotations.

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?

The description is well-structured with clear sections for purpose, usage, returns, and args. It is slightly lengthy but all information is valuable; minimal waste. Could be marginally more concise, but still effective.

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?

Given no output schema and two parameters, the description covers all essential aspects: purpose, usage, return fields, error handling, and parameter details. It is complete for agent decision-making.

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?

With 0% schema description coverage, the description fully compensates by explaining segment_id as 'the final component of the policy path /infra/segments/<id>' and target as 'NSX Manager name from config.yaml' with default behavior. This adds significant meaning.

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 clearly states 'Get full details for one network segment', using a specific verb and resource. It distinguishes from sibling tools like list_segments (which lists all) and delete_segment (which deletes), fulfilling the purpose clarity criterion.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description explicitly says to use after list_segments for inspection and gives an example of checking port_count before delete_segment. This provides clear when-to-use and when-not-to-use guidance, differentiating it from other tools.

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

Install Server

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/zw008/VMware-NSX'

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