Skip to main content
Glama
topotal

Waroom MCP

by topotal

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
NameRequiredDescriptionDefault
incident_uuidYes取得するインシデントのUUID

Implementation Reference

  • 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}`
            }]
          };
        }
      }
    );
  • 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);

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/topotal/waroom-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server