acknowledge_alert
Mark security alerts as reviewed to remove them from active lists and track acknowledgment with optional notes.
Instructions
Mark a security alert as reviewed/acknowledged. Removes the alert from active alerts list.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| alert_id | Yes | ID of the alert to acknowledge. | |
| notes | No | Notes about the acknowledgment. |
Implementation Reference
- Main handler function that executes the acknowledge_alert tool logic. Validates the required alert_id parameter and returns a message indicating alert acknowledgment is available through the SecurityUse dashboard.
async def handle_acknowledge_alert(arguments: dict[str, Any]) -> list[TextContent]: """Acknowledge alert - requires dashboard integration.""" alert_id = arguments.get("alert_id") if not alert_id: return [TextContent(type="text", text="Error: `alert_id` is required")] return [ TextContent( type="text", text=( f"## Acknowledge Alert: {alert_id}\n\n" "Alert acknowledgment is available in the SecurityUse dashboard.\n\n" "Visit https://securityuse.dev to manage alerts." ), ) ] - Tool definition with input schema. Defines the tool name, description, and required parameters (alert_id) with optional notes parameter.
Tool( name="acknowledge_alert", description=( "Mark a security alert as reviewed/acknowledged. " "Removes the alert from active alerts list." ), inputSchema={ "type": "object", "properties": { "alert_id": { "type": "string", "description": "ID of the alert to acknowledge.", }, "notes": { "type": "string", "description": "Notes about the acknowledgment.", }, }, "required": ["alert_id"], }, ), - src/security_use_mcp/server.py:528-528 (registration)Maps the tool name 'acknowledge_alert' to its handler function in the handlers dictionary.
"acknowledge_alert": handle_acknowledge_alert, - src/security_use_mcp/handlers/__init__.py:9-19 (registration)Imports and exports the handle_acknowledge_alert handler from sensor_handler module.
from .sensor_handler import ( handle_acknowledge_alert, handle_analyze_request, handle_block_ip, handle_configure_sensor, handle_detect_vulnerable_endpoints, handle_get_alert_details, handle_get_blocked_ips, handle_get_security_alerts, handle_get_sensor_config, )