waroom_create_postmortem
Create postmortem documents to analyze incidents, document findings, and implement preventive measures within the Waroom MCP environment.
Instructions
ポストモーテムを作成します。
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| title | Yes | ポストモーテムのタイトル(1-255文字) | |
| blob | Yes | ポストモーテムの内容(詳細な分析や対策を記述) | |
| incident_uuids | Yes | 関連するインシデントのUUID配列(最低1つ必要) | |
| status | No | ポストモーテムのステータス(draft, published, archived) |
Implementation Reference
- src/tools/postmortems.ts:45-67 (handler)Handler function that executes the tool logic: calls waroomClient.createPostmortem with parameters and returns JSON response or error message.async (params) => { try { const response = await waroomClient.createPostmortem( params.title, params.blob, params.incident_uuids, params.status ); return { content: [{ type: 'text', text: JSON.stringify(response, null, 2) }] }; } catch (error) { return { content: [{ type: 'text', text: `ポストモーテムの作成に失敗しました: ${error}` }] }; } }
- src/tools/postmortems.ts:39-44 (schema)Zod input schema defining parameters for the waroom_create_postmortem tool.{ title: z.string().min(1).max(255).describe('ポストモーテムのタイトル(1-255文字)'), blob: z.string().min(1).describe('ポストモーテムの内容(詳細な分析や対策を記述)'), incident_uuids: z.array(z.string().uuid()).min(1).describe('関連するインシデントのUUID配列(最低1つ必要)'), status: z.enum(['draft', 'published', 'archived']).optional().describe('ポストモーテムのステータス(draft, published, archived)'), },
- src/tools/postmortems.ts:36-68 (registration)MCP server.tool registration for the waroom_create_postmortem tool, including description, schema, and inline handler.server.tool( 'waroom_create_postmortem', 'ポストモーテムを作成します。', { title: z.string().min(1).max(255).describe('ポストモーテムのタイトル(1-255文字)'), blob: z.string().min(1).describe('ポストモーテムの内容(詳細な分析や対策を記述)'), incident_uuids: z.array(z.string().uuid()).min(1).describe('関連するインシデントのUUID配列(最低1つ必要)'), status: z.enum(['draft', 'published', 'archived']).optional().describe('ポストモーテムのステータス(draft, published, archived)'), }, async (params) => { try { const response = await waroomClient.createPostmortem( params.title, params.blob, params.incident_uuids, params.status ); return { content: [{ type: 'text', text: JSON.stringify(response, null, 2) }] }; } catch (error) { return { content: [{ type: 'text', text: `ポストモーテムの作成に失敗しました: ${error}` }] }; } } );