waroom_get_incident_details
Retrieve detailed information about a specific incident using its UUID to access comprehensive data and postmortem analysis through the Waroom MCP server.
Instructions
特定のインシデントの詳細情報を取得します。
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| incident_uuid | Yes | 取得するインシデントのUUID |
Implementation Reference
- src/tools/incidents.ts:81-105 (handler)Direct implementation of the MCP tool 'waroom_get_incident_details' including server.tool registration, input schema validation with Zod for incident_uuid (UUID), and the async handler function that invokes WaroomClient.getIncidentDetails and returns a formatted text content response or error.server.tool( 'waroom_get_incident_details', '特定のインシデントの詳細情報を取得します。', { incident_uuid: z.string().uuid().describe('取得するインシデントのUUID'), }, async (params) => { try { const response = await waroomClient.getIncidentDetails(params.incident_uuid); return { content: [{ type: 'text', text: JSON.stringify(response, null, 2) }] }; } catch (error) { return { content: [{ type: 'text', text: `インシデント詳細の取得に失敗しました: ${error}` }] }; } } );
- src/WaroomClient.ts:45-52 (helper)Helper method in the WaroomClient class that executes the core logic: HTTP GET request to the Waroom API (/incidents/{uuid}) using axios, returning the data or throwing an error.async getIncidentDetails(incidentUuid: string) { try { const response = await this.axiosInstance.get(`${this.baseUrl}/incidents/${incidentUuid}`); return response.data; } catch (error) { throw new Error(`Failed to get incident details: ${error}`); } }
- src/main.ts:26-26 (registration)Registration point where createIncidentsTools is invoked on the McpServer instance with WaroomClient, thereby registering the waroom_get_incident_details tool among others.createIncidentsTools(server, waroomClient);