waroom_get_postmortem_template
Retrieve standardized postmortem templates to analyze and document incidents effectively using the Waroom MCP server.
Instructions
ポストモーテムテンプレートを取得します。
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/tools/postmortems.ts:70-92 (registration)Registration of the 'waroom_get_postmortem_template' tool using server.tool, including description, empty input schema, and inline async handler that fetches the postmortem template from WaroomClient and returns it as JSON text content or error message.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/tools/postmortems.ts:74-91 (handler)The handler function for the tool, which calls waroomClient.getPostmortemTemplate(), stringifies the response as JSON, and returns it in MCP content format, or handles errors similarly.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}` }] }; } }