Skip to main content
Glama
topotal

Waroom MCP

by topotal

waroom_get_postmortems

Retrieve incident postmortem reports from the Waroom MCP server to analyze past failures and improve system reliability.

Instructions

ポストモーテムの一覧を取得します。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pageNo取得するページ番号(1以上の整数)。デフォルト: 1
per_pageNo1ページあたりの取得数(1-100)。デフォルト: 50

Implementation Reference

  • Registration of the 'waroom_get_postmortems' MCP tool, including inline input schema and handler function that calls WaroomClient.getPostmortems to fetch the list of postmortems.
    server.tool(
      'waroom_get_postmortems',
      'ポストモーテムの一覧を取得します。',
      {
        page: z.number().int().min(1).optional().describe('取得するページ番号(1以上の整数)。デフォルト: 1'),
        per_page: z.number().int().min(1).max(100).optional().describe('1ページあたりの取得数(1-100)。デフォルト: 50'),
      },
      async (params) => {
        try {
          const response = await waroomClient.getPostmortems(
            params.page || 1,
            params.per_page || 50
          );
          return {
            content: [{
              type: 'text',
              text: JSON.stringify(response, null, 2)
            }]
          };
        } catch (error) {
          return {
            content: [{
              type: 'text',
              text: `ポストモーテム一覧の取得に失敗しました: ${error}`
            }]
          };
        }
      }
    );
  • The handler function executes the tool logic by calling the WaroomClient to get postmortems with pagination parameters and returns the JSON response or error message.
    async (params) => {
      try {
        const response = await waroomClient.getPostmortems(
          params.page || 1,
          params.per_page || 50
        );
        return {
          content: [{
            type: 'text',
            text: JSON.stringify(response, null, 2)
          }]
        };
      } catch (error) {
        return {
          content: [{
            type: 'text',
            text: `ポストモーテム一覧の取得に失敗しました: ${error}`
          }]
        };
      }
    }
  • Zod schema for input parameters: page (optional int >=1) and per_page (optional int 1-100).
    {
      page: z.number().int().min(1).optional().describe('取得するページ番号(1以上の整数)。デフォルト: 1'),
      per_page: z.number().int().min(1).max(100).optional().describe('1ページあたりの取得数(1-100)。デフォルト: 50'),
    },

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