Skip to main content
Glama

storage_iscsi_remove_target

Destructive

Remove an iSCSI target from an ESXi host's software iSCSI adapter, then rescan HBAs and VMFS volumes. LUNs served only by this target become inaccessible. Verify no datastores depend on it.

Instructions

[WRITE] Remove an iSCSI send target from an ESXi host's software iSCSI adapter, then rescan all HBAs and VMFS volumes.

Destructive: LUNs served only by this target become inaccessible after the rescan — first verify the target exists (storage_iscsi_status) and that no datastores depend on it (list_all_datastores). Errors if the address:port pair is not configured or software iSCSI is disabled. Reversible only by re-adding via storage_iscsi_add_target. Audit-logged to ~/.vmware/audit.db. Returns a confirmation string.

Args: host_name: ESXi host name as shown in vCenter inventory. address: Configured iSCSI portal IP (IPv4/IPv6 literal; hostnames rejected). Must match the existing entry exactly. port: Configured iSCSI TCP port, 1-65535 (default 3260). dry_run: If true, return a preview of the change without executing it. target: Optional vCenter/ESXi target name from config; omit for the default target.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
portNo
targetNo
addressYes
dry_runNo
host_nameYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior5/5

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

Beyond annotations (destructiveHint=true), the description details consequences ('LUNs served only by this target become inaccessible'), logging ('Audit-logged to ~/.vmware/audit.db'), and return type ('confirmation string'). No contradiction with 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 a summary line, warning block, and parameter list. It is front-loaded and informative, though slightly verbose; still, every sentence provides value.

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's complexity (destructive write, 5 parameters, output schema exists), the description covers prerequisites, effects, errors, and all parameters thoroughly. 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?

The schema has 0% description coverage, but the description fully compensates with detailed parameter explanations: host_name format, address restrictions (IPv4/IPv6, no hostnames), port range and default, dry_run behavior, and target optionality. This adds significant meaning beyond the schema.

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 the tool's action: 'Remove an iSCSI send target from an ESXi host's software iSCSI adapter, then rescan all HBAs and VMFS volumes.' It uses a specific verb and resource, and is distinguishable from siblings like storage_iscsi_add_target.

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 tells when to use the tool, includes prerequisites ('first verify the target exists...list_all_datastores'), mentions error conditions, and notes reversibility via storage_iscsi_add_target. This provides clear guidance on appropriate use.

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-Storage'

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