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
| Name | Required | Description | Default |
|---|---|---|---|
| incident_uuid | Yes | 更新するインシデントのUUID | |
| severity | Yes | 新しい重要度(critical, high, low, info, unknown) |
Implementation Reference
- src/tools/incidents.ts:114-131 (handler)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}` }] }; } }
- src/tools/incidents.ts:110-113 (schema)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)'), },
- src/tools/incidents.ts:107-132 (registration)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}` }] }; } } );
- src/WaroomClient.ts:127-136 (helper)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}`); } }