Skip to main content
Glama
topotal

Waroom MCP

by topotal

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
NameRequiredDescriptionDefault

No arguments

Implementation Reference

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

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