waroom_get_postmortem_template
Retrieve a structured template for documenting incident postmortems to analyze root causes and improve system reliability.
Instructions
ポストモーテムテンプレートを取得します。
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/tools/postmortems.ts:74-91 (handler)The async handler function that executes the tool logic: fetches the postmortem template using WaroomClient and returns it as formatted JSON text, with error handling.async () => { try { const response = await waroomClient.getPostmortemTemplate(); return { content: [{ type: 'text', text: JSON.stringify(response, null, 2) }] }; } catch (error) { return { content: [{ type: 'text', text: `ポストモーテムテンプレートの取得に失敗しました: ${error}` }] }; } }
- src/tools/postmortems.ts:70-92 (registration)The server.tool call that registers the waroom_get_postmortem_template tool, including name, description, empty input schema, and the handler function.server.tool( 'waroom_get_postmortem_template', 'ポストモーテムテンプレートを取得します。', {}, async () => { try { const response = await waroomClient.getPostmortemTemplate(); return { content: [{ type: 'text', text: JSON.stringify(response, null, 2) }] }; } catch (error) { return { content: [{ type: 'text', text: `ポストモーテムテンプレートの取得に失敗しました: ${error}` }] }; } } );
- src/WaroomClient.ts:91-98 (helper)Supporting method in WaroomClient class that performs the actual API request to retrieve the postmortem template from the Waroom API.async getPostmortemTemplate() { try { const response = await this.axiosInstance.get(`${this.baseUrl}/postmortem_template`); return response.data; } catch (error) { throw new Error(`Failed to get postmortem template: ${error}`); } }