Skip to main content
Glama
topotal

Waroom MCP

by topotal

waroom_update_incident_status

Update the status of an incident in Waroom MCP using its UUID and a new status (detected, investigating, fixing, resolved, close).

Instructions

インシデントのステータスを更新します。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
incident_uuidYes更新するインシデントのUUID
statusYes新しいステータス(detected, investigating, fixing, resolved, close)

Implementation Reference

  • Registration of the 'waroom_update_incident_status' tool using server.tool, including schema and inline handler function.
    server.tool( 'waroom_update_incident_status', 'インシデントのステータスを更新します。', { incident_uuid: z.string().uuid().describe('更新するインシデントのUUID'), status: z.enum(['detected', 'investigating', 'fixing', 'resolved', 'close']).describe('新しいステータス(detected, investigating, fixing, resolved, close)'), }, async (params) => { try { const response = await waroomClient.updateIncidentStatus(params.incident_uuid, params.status); return { content: [{ type: 'text', text: JSON.stringify(response, null, 2) }] }; } catch (error) { return { content: [{ type: 'text', text: `インシデントステータスの更新に失敗しました: ${error}` }] }; } } );
  • The MCP tool handler that calls WaroomClient.updateIncidentStatus and formats the response as MCP content.
    async (params) => { try { const response = await waroomClient.updateIncidentStatus(params.incident_uuid, params.status); return { content: [{ type: 'text', text: JSON.stringify(response, null, 2) }] }; } catch (error) { return { content: [{ type: 'text', text: `インシデントステータスの更新に失敗しました: ${error}` }] }; } }
  • Zod schema defining input parameters: incident_uuid (UUID string) and status (enum).
    { incident_uuid: z.string().uuid().describe('更新するインシデントのUUID'), status: z.enum(['detected', 'investigating', 'fixing', 'resolved', 'close']).describe('新しいステータス(detected, investigating, fixing, resolved, close)'), },
  • WaroomClient helper method that performs the actual API PUT request to update the incident status.
    async updateIncidentStatus(incidentUuid: string, status: string) { try { const response = await this.axiosInstance.put(`${this.baseUrl}/incidents/${incidentUuid}/status`, { status }); return response.data; } catch (error) { throw new Error(`Failed to update incident status: ${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