Skip to main content
Glama
topotal

Waroom MCP

by topotal

waroom_update_incident_severity

Update incident severity levels in Waroom MCP to reflect current priority status, using predefined categories like critical, high, low, info, or unknown.

Instructions

インシデントの重要度を更新します。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
incident_uuidYes更新するインシデントのUUID
severityYes新しい重要度(critical, high, low, info, unknown)

Implementation Reference

  • MCP tool handler function that executes the tool logic by calling WaroomClient.updateIncidentSeverity and returning the formatted response or error message.
    async (params) => { try { const response = await waroomClient.updateIncidentSeverity(params.incident_uuid, params.severity); return { content: [{ type: 'text', text: JSON.stringify(response, null, 2) }] }; } catch (error) { return { content: [{ type: 'text', text: `インシデント重要度の更新に失敗しました: ${error}` }] }; } }
  • Zod schema defining input parameters: incident_uuid (UUID string) and severity (enum).
    { incident_uuid: z.string().uuid().describe('更新するインシデントのUUID'), severity: z.enum(['critical', 'high', 'low', 'info', 'unknown']).describe('新しい重要度(critical, high, low, info, unknown)'), },
  • Registration of the waroom_update_incident_severity tool on the McpServer instance.
    server.tool( 'waroom_update_incident_severity', 'インシデントの重要度を更新します。', { incident_uuid: z.string().uuid().describe('更新するインシデントのUUID'), severity: z.enum(['critical', 'high', 'low', 'info', 'unknown']).describe('新しい重要度(critical, high, low, info, unknown)'), }, async (params) => { try { const response = await waroomClient.updateIncidentSeverity(params.incident_uuid, params.severity); return { content: [{ type: 'text', text: JSON.stringify(response, null, 2) }] }; } catch (error) { return { content: [{ type: 'text', text: `インシデント重要度の更新に失敗しました: ${error}` }] }; } } );
  • Supporting method in WaroomClient that makes the PUT API request to update incident severity.
    async updateIncidentSeverity(incidentUuid: string, severity: string) { try { const response = await this.axiosInstance.put(`${this.baseUrl}/incidents/${incidentUuid}/severity`, { severity }); return response.data; } catch (error) { throw new Error(`Failed to update incident severity: ${error}`); } }

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/topotal/waroom-mcp'

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