waroom_get_postmortems
Retrieve incident postmortem reports from the Waroom MCP server to analyze past failures and improve system reliability.
Instructions
ポストモーテムの一覧を取得します。
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | 取得するページ番号(1以上の整数)。デフォルト: 1 | |
| per_page | No | 1ページあたりの取得数(1-100)。デフォルト: 50 |
Implementation Reference
- src/tools/postmortems.ts:6-34 (registration)Registration of the 'waroom_get_postmortems' MCP tool, including inline input schema and handler function that calls WaroomClient.getPostmortems to fetch the list of postmortems.server.tool( 'waroom_get_postmortems', 'ポストモーテムの一覧を取得します。', { page: z.number().int().min(1).optional().describe('取得するページ番号(1以上の整数)。デフォルト: 1'), per_page: z.number().int().min(1).max(100).optional().describe('1ページあたりの取得数(1-100)。デフォルト: 50'), }, async (params) => { try { const response = await waroomClient.getPostmortems( params.page || 1, params.per_page || 50 ); return { content: [{ type: 'text', text: JSON.stringify(response, null, 2) }] }; } catch (error) { return { content: [{ type: 'text', text: `ポストモーテム一覧の取得に失敗しました: ${error}` }] }; } } );
- src/tools/postmortems.ts:13-33 (handler)The handler function executes the tool logic by calling the WaroomClient to get postmortems with pagination parameters and returns the JSON response or error message.async (params) => { try { const response = await waroomClient.getPostmortems( params.page || 1, params.per_page || 50 ); return { content: [{ type: 'text', text: JSON.stringify(response, null, 2) }] }; } catch (error) { return { content: [{ type: 'text', text: `ポストモーテム一覧の取得に失敗しました: ${error}` }] }; } }
- src/tools/postmortems.ts:9-12 (schema)Zod schema for input parameters: page (optional int >=1) and per_page (optional int 1-100).{ page: z.number().int().min(1).optional().describe('取得するページ番号(1以上の整数)。デフォルト: 1'), per_page: z.number().int().min(1).max(100).optional().describe('1ページあたりの取得数(1-100)。デフォルト: 50'), },