waroom_get_postmortems
Retrieve and organize postmortem reports from the Waroom MCP server, enabling users to analyze incidents systematically. Specify page and per-page settings for precise data access.
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:13-34 (handler)The handler function for the 'waroom_get_postmortems' MCP tool. It fetches postmortems from WaroomClient with optional pagination and returns the JSON response as MCP text content, or an error message on failure.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 input schema defining optional pagination parameters 'page' and 'per_page' for the waroom_get_postmortems tool.{ 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'), },
- src/tools/postmortems.ts:7-34 (registration)Direct registration of the 'waroom_get_postmortems' tool on the MCP server within the createPostmortemsTools function, including name, description, schema, and inline handler.'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/main.ts:27-27 (registration)Top-level invocation of createPostmortemsTools in main.ts, which registers the waroom_get_postmortems tool (among others) on the MCP server.createPostmortemsTools(server, waroomClient);