waroom_get_incident_details
Retrieve specific incident details by providing the incident UUID, enabling precise information extraction and analysis for incident management on Waroom MCP.
Instructions
特定のインシデントの詳細情報を取得します。
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| incident_uuid | Yes | 取得するインシデントのUUID |
Implementation Reference
- src/tools/incidents.ts:87-104 (handler)MCP tool handler that invokes WaroomClient.getIncidentDetails with the provided incident_uuid and returns the JSON-formatted response or error message.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/tools/incidents.ts:84-86 (schema)Zod schema defining the input parameter 'incident_uuid' as a required UUID string.{ incident_uuid: z.string().uuid().describe('取得するインシデントのUUID'), },
- src/tools/incidents.ts:81-105 (registration)Full server.tool call registering the 'waroom_get_incident_details' tool with MCP server, including description, schema, and inline handler.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)Supporting method in WaroomClient that makes the API GET request to fetch detailed incident information by UUID.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)Invocation of createIncidentsTools in main entrypoint, which registers all incident-related tools including waroom_get_incident_details.createIncidentsTools(server, waroomClient);