Skip to main content
Glama

stop_monitoring

Halt active monitoring for specific deployments or all active monitors using 'stop_monitoring'. Manage Optimizely DXP deployment processes effectively with this tool on the MCP Server.

Instructions

Stop monitoring for specific deployments or all active monitors

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
allNo
deploymentIdNo

Implementation Reference

  • Helper method to stop a specific database export background monitor by clearing interval and removing from map
    static stopBackgroundMonitoring(exportId: string): boolean { const monitor = this.backgroundMonitors.get(exportId); if (monitor) { if (monitor.intervalId) { clearInterval(monitor.intervalId); } this.backgroundMonitors.delete(exportId); OutputLogger.info(`Stopped background monitoring for export ${exportId}`); return true; } return false; }
  • Core method to stop a deployment monitor by clearing timer, marking inactive, emitting events
    stopMonitoring(monitorId: string): boolean { const monitor = this.monitors.get(monitorId); if (!monitor) { return false; } // Clear timer if (monitor.timer) { clearTimeout(monitor.timer); monitor.timer = null; } // Mark as inactive monitor.isActive = false; this.stats.activeMonitors--; this.stats.completedMonitors++; if (this.options.debug) { console.error(`Stopped monitoring deployment ${monitor.deploymentId}`); } // Emit stop event this.emit('monitorStopped', { monitorId, deploymentId: monitor.deploymentId, projectId: monitor.projectId, duration: Date.now() - monitor.startTime, updateCount: monitor.updateCount }); // Remove from active monitors after a delay (keep for stats) setTimeout(() => { this.monitors.delete(monitorId); }, 60000); // Keep for 1 minute return true; }
  • Stops all active deployment monitors by calling stopMonitoring on each
    stopAllMonitors(): number { const activeMonitors = this.getActiveMonitors(); activeMonitors.forEach(monitor => { this.stopMonitoring(monitor.id); }); return activeMonitors.length; }
  • Documents `stop_monitoring` as available tool in listMonitors response
    response.push('• `stop_monitoring` - Stop active monitors');
  • Registers stop_monitoring tool in availability matrix for all hosting types
    'stop_monitoring': { hostingTypes: ['dxp-paas', 'dxp-saas', 'self-hosted', 'unknown'], category: 'Monitoring', description: 'Stop monitoring' },

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/JaxonDigital/optimizely-dxp-mcp'

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