waroom_update_incident_status
Update incident status in Waroom MCP to track progress through detection, investigation, fixing, resolution, and closure stages.
Instructions
インシデントのステータスを更新します。
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| incident_uuid | Yes | 更新するインシデントのUUID | |
| status | Yes | 新しいステータス(detected, investigating, fixing, resolved, close) |
Implementation Reference
- src/tools/incidents.ts:142-158 (handler)The handler function that executes the tool logic: calls waroomClient.updateIncidentStatus with the provided incident_uuid and status, formats the response as JSON, and handles errors.try { const response = await waroomClient.updateIncidentStatus(params.incident_uuid, params.status); return { content: [{ type: 'text', text: JSON.stringify(response, null, 2) }] }; } catch (error) { return { content: [{ type: 'text', text: `インシデントステータスの更新に失敗しました: ${error}` }] }; } }
- src/tools/incidents.ts:137-140 (schema)Zod input schema defining the required parameters: incident_uuid (UUID string) and status (one of the specified incident statuses).{ incident_uuid: z.string().uuid().describe('更新するインシデントのUUID'), status: z.enum(['detected', 'investigating', 'fixing', 'resolved', 'close']).describe('新しいステータス(detected, investigating, fixing, resolved, close)'), },
- src/tools/incidents.ts:134-159 (registration)Registration of the 'waroom_update_incident_status' tool with the MCP server, specifying name, description, input schema, and handler function.server.tool( 'waroom_update_incident_status', 'インシデントのステータスを更新します。', { incident_uuid: z.string().uuid().describe('更新するインシデントのUUID'), status: z.enum(['detected', 'investigating', 'fixing', 'resolved', 'close']).describe('新しいステータス(detected, investigating, fixing, resolved, close)'), }, async (params) => { try { const response = await waroomClient.updateIncidentStatus(params.incident_uuid, params.status); return { content: [{ type: 'text', text: JSON.stringify(response, null, 2) }] }; } catch (error) { return { content: [{ type: 'text', text: `インシデントステータスの更新に失敗しました: ${error}` }] }; } } );