Skip to main content
Glama
AnuwatThisuka

CMMS MCP Server

acknowledge_alert

Confirm receipt and action on IoT alerts in manufacturing systems to track maintenance responses and update alert status.

Instructions

Acknowledge an IoT alert.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
alertIdYesAlert ID to acknowledge
acknowledgedByYesUser ID acknowledging the alert

Implementation Reference

  • The handler implementation for the acknowledge_alert tool, which updates the acknowledgment status of an alert.
    private handleAcknowledgeAlert(args: {
      alertId: string;
      acknowledgedBy: string;
    }) {
      const alert = mockAlerts.find((a) => a.id === args.alertId);
      if (!alert) {
        throw new Error(`Alert not found: ${args.alertId}`);
      }
    
      alert.acknowledged = true;
      alert.acknowledgedBy = args.acknowledgedBy;
      alert.acknowledgedAt = new Date().toISOString();
    
      return {
        content: [
          {
            type: "text",
            text: JSON.stringify(alert, null, 2),
          },
        ],
      };
    }
  • The tool definition (schema) for acknowledge_alert.
    {
      name: "acknowledge_alert",
      description: "Acknowledge an IoT alert.",
      inputSchema: {
        type: "object",
        properties: {
          alertId: {
            type: "string",
            description: "Alert ID to acknowledge",
          },
          acknowledgedBy: {
            type: "string",
            description: "User ID acknowledging the alert",
          },
        },
        required: ["alertId", "acknowledgedBy"],
      },
    },
  • src/index.ts:406-407 (registration)
    The tool call routing for acknowledge_alert in the CallToolRequestSchema handler.
    case "acknowledge_alert":
      return this.handleAcknowledgeAlert(args as any);

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/AnuwatThisuka/cmms-mcp-server'

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