Skip to main content
Glama

get_ip_pool_usage

Read-onlyIdempotent

Retrieve current IP allocations for an IP pool to check consumption, diagnose address exhaustion, or verify pool is unused before retirement. Returns allocated IPs with IDs and display names.

Instructions

[READ] Get current IP allocations for one IP address pool.

No side effects. Use after list_ip_pools to see how much of a pool is consumed — e.g. when diagnosing TEP address exhaustion or before retiring a pool. Returns: pool_id, allocation_count, and allocations — one entry per allocated IP with id, display_name, allocation_ip (all allocations returned, no pagination). An empty allocations list means the pool is unused. On failure returns {"error", "hint"} instead of raising.

Args: pool_id: IP pool ID, as returned by list_ip_pools. target: NSX Manager name from config.yaml. Uses the default target if omitted.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
targetNo
pool_idYes
Behavior5/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false, idempotentHint=true, openWorldHint=true. The description adds 'No side effects,' and importantly describes the return structure (pool_id, allocation_count, allocations) and error handling ('On failure returns {"error", "hint"} instead of raising'). This goes beyond annotations and is fully transparent.

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 and front-loaded with the main verb. However, it is slightly verbose with multiple lines; could be more concise while retaining all necessary information.

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 the tool has 2 parameters, no output schema, and rich annotations, the description is complete. It covers purpose, usage context, return structure (including edge cases), error handling, and parameter details. No gaps remain.

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?

Input schema has 0% description coverage, but the description adds meaning: for pool_id 'IP pool ID, as returned by list_ip_pools,' and for target 'NSX Manager name from config.yaml. Uses the default target if omitted.' This fully compensates for the lack of schema descriptions.

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 begins with '[READ] Get current IP allocations for one IP address pool,' clearly specifying the verb, resource, and scope. It distinguishes from sibling 'list_ip_pools' by explicitly saying 'one IP address pool' and provides usage context after list_ip_pools.

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 states 'Use after list_ip_pools to see how much of a pool is consumed — e.g. when diagnosing TEP address exhaustion or before retiring a pool.' This gives clear context and examples but does not explicitly mention when not to use or compare with other read tools like get_segment.

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