Tools¶
The following tools are provided by the ONTAP MCP server.
ONTAP MCP provides a set of tools that can be used to interact with the ONTAP API. These tools are designed to help users discover and manage their ONTAP clusters more efficiently. The tools are categorized based on their functionality, such as API discovery, volume management, data protection, CIFS/SMB integration, NFS export policy management, performance management, SVM management, qtree management, network interface management, LUN and igroup management, iSCSI management, FCP management, NVMe management, and multi-cluster management.
All ONTAP MCP tools are annotated with hint metadata: readOnlyHint, idempotentHint, and destructiveHint. The readOnlyHint indicates that the tool does not modify any data and is safe to use for discovery and information retrieval. The destructiveHint indicates that the tool performs actions that can modify or delete data, and should be used with caution.
If you want to run the ONTAP MCP server in read-only mode, you can start the server with the --read-only flag. In this mode, only tools with the readOnlyHint will be available for use, ensuring that no modifications can be made to the ONTAP cluster.
To run without mcp-session-id header validation (e.g. behind proxies that strip session headers), use the --stateless flag. See the configuration documentation for more details.
To respond with application/json instead of text/event-stream (e.g. behind gateways that do not relay SSE/chunked responses), use the --json-response flag. See the configuration documentation for more details.
API Discovery¶
list_ontap_endpoints(available when the API catalog is loaded)search_ontap_endpoints(available when the API catalog is loaded)describe_ontap_endpoint(available when the API catalog is loaded)ontap_get
Volume Management¶
create_volume— FlexVol by default (aggregate_nameon CDOT; omit on AFX). FlexGroup on Unified NAS (AFF/FAS) whenstyle=flexgroupwithaggregate_names(optionalconstituents_per_aggregate,optimize_aggr_list,granular_data). Not used to provision ASA r2 (storage units); FlexGroup is not supported on classic ASA.update_volumedelete_volume
Data Protection¶
create_snapshotdelete_snapshotrestore_snapshotcreate_snapshot_policyupdate_snapshot_policydelete_snapshot_policycreate_scheduleadd_schedule_in_snapshot_policyupdate_schedule_in_snapshot_policyremove_schedule_in_snapshot_policy
CIFS/SMB Integration¶
create_cifs_shareupdate_cifs_sharedelete_cifs_share
CIFS Service Management¶
create_cifs_serviceupdate_cifs_servicedelete_cifs_service
NFS Service Management¶
create_nfs_serviceupdate_nfs_servicedelete_nfs_service
NFS Export Policy Management¶
create_nfs_export_policiesupdate_nfs_export_policiesdelete_nfs_export_policiescreate_nfs_export_policies_rulesupdate_nfs_export_policies_rulesdelete_nfs_export_policies_rules
Performance Management¶
list_qos_policiescreate_qos_policyupdate_qos_policydelete_qos_policy
SnapMirror Management¶
create_snapmirrorupdate_snapmirror_transferabort_snapmirror_transfer(available inmultiplexorbothmode)modify_snapmirror(available inmultiplexorbothmode)update_snapmirrordelete_snapmirrorinitialize_snapmirrorbreak_snapmirrorresync_snapmirror
The update_snapmirror, delete_snapmirror, initialize_snapmirror, break_snapmirror, and resync_snapmirror tools are available in legacy or both mode. In the default multiplex mode, use modify_snapmirror for these relationship operations. The abort_snapmirror_transfer tool only aborts an active transfer.
SVM Management¶
create_svmupdate_svmdelete_svm
SVM Peer Management¶
delete_svm_peer
DNS Management¶
create_dnsdelete_dns
Qtree Management¶
create_qtreeupdate_qtreedelete_qtree
Network Interface Management¶
create_network_ip_interfaceupdate_network_ip_interfacedelete_network_ip_interface
LUN and igroup Management¶
create_lunupdate_lundelete_luncreate_igroupupdate_igroupdelete_igroupadd_igroup_initiatorremove_igroup_initiatorcreate_lun_mapdelete_lun_map
iSCSI Management¶
create_iscsi_serviceupdate_iscsi_servicedelete_iscsi_service
FCP Management¶
create_fcp_serviceupdate_fcp_servicedelete_fcp_servicecreate_fc_interfaceupdate_fc_interfacedelete_fc_interface
NVMe Management¶
create_nvme_serviceupdate_nvme_servicedelete_nvme_servicecreate_nvme_subsystemupdate_nvme_subsystemdelete_nvme_subsystemadd_nvme_subsystem_hostremove_nvme_subsystem_hostcreate_nvme_namespaceupdate_nvme_namespacedelete_nvme_namespacecreate_nvme_subsystem_mapdelete_nvme_subsystem_map
Multi-Cluster Management¶
list_registered_clusterscreate_cluster_peerdelete_cluster_peer
Cluster peer relationships¶
The cluster peer tools create or delete a peer relationship on both clusters in one operation. Both clusters must be registered in the same ONTAP MCP configuration and must have intercluster LIFs configured. Use the cluster identifiers from the Pollers section of ontap.yaml, not necessarily the cluster names reported by ONTAP. Call list_registered_clusters to discover the available identifiers.
| Argument | Description |
|---|---|
source_cluster_name |
Registered identifier of the source cluster. |
destination_cluster_name |
Registered identifier of the destination cluster. |
create_cluster_peer discovers the intercluster LIF addresses on both clusters and generates the authentication passphrase internally. The caller does not provide LIF addresses or a passphrase.
delete_cluster_peer looks up the ONTAP cluster names and removes the matching relationship from both clusters. Deletion fails if either side has no matching relationship or has more than one matching relationship.
Warning
create_cluster_peer and delete_cluster_peer modify both named clusters. delete_cluster_peer is destructive.
Tool Mode¶
The ONTAP MCP server exposes mutating tools in two naming conventions, controlled by the --tool-mode flag (default: multiplex; env: TOOL_MODE):
| Mode | Description |
|---|---|
legacy |
Registers separate update_* and delete_* tools for each resource type. |
multiplex |
Registers a single modify_* tool per resource type that handles both update and delete in one call. This is the default. |
both |
Registers both conventions simultaneously. |
Tool mode only controls whether the per-resource update_*/delete_* tools and/or the multiplexed modify_* tools are registered. All create_* tools are registered regardless of tool mode.
Modify tools (available in multiplex or both mode)¶
modify_volumemodify_snapshot_policymodify_schedule_in_snapshot_policymodify_qos_policymodify_nfs_export_policiesmodify_nfs_export_policies_rulesmodify_svmmodify_cifs_sharemodify_nfs_servicemodify_cifs_servicemodify_qtreemodify_nvme_servicemodify_iscsi_servicemodify_lunmodify_network_ip_interfacemodify_nvme_subsystemmodify_nvme_namespacemodify_fcp_servicemodify_fc_interfacemodify_igroupmodify_snapmirrormodify_snapshot