waroom_get_service_architecture_context
Retrieve the architecture context of a specific service using Waroom MCP. Input the service name to access detailed architectural insights in compliance with Model Context Protocol standards.
Instructions
特定のサービスのアーキテクチャコンテキストを取得します。
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| service_name | Yes | サービス名 |
Implementation Reference
- src/tools/services.ts:36-60 (handler)Full MCP tool definition including registration, input schema, and handler logic. The handler fetches the service architecture context using WaroomClient and formats it as JSON response.server.tool( 'waroom_get_service_architecture_context', '特定のサービスのアーキテクチャコンテキストを取得します。', { service_name: z.string().min(1).max(100).describe('サービス名'), }, async (params) => { try { const response = await waroomClient.getServiceArchitectureContext(params.service_name); return { content: [{ type: 'text', text: JSON.stringify(response, null, 2) }] }; } catch (error) { return { content: [{ type: 'text', text: `サービスアーキテクチャコンテキストの取得に失敗しました: ${error}` }] }; } } );
- src/WaroomClient.ts:100-107 (helper)Core implementation in WaroomClient that makes the API call to retrieve the service architecture context.async getServiceArchitectureContext(serviceName: string) { try { const response = await this.axiosInstance.get(`${this.baseUrl}/services/${serviceName}/service_architecture_context`); return response.data; } catch (error) { throw new Error(`Failed to get service architecture context: ${error}`); } }
- src/main.ts:26-29 (registration)Registration of tool sets by calling createServicesTools(server, waroomClient), which includes the waroom_get_service_architecture_context tool.createIncidentsTools(server, waroomClient); createPostmortemsTools(server, waroomClient); createServicesTools(server, waroomClient); createLabelsTools(server, waroomClient);
- src/tools/services.ts:39-41 (schema)Input schema validation using Zod for the service_name parameter.{ service_name: z.string().min(1).max(100).describe('サービス名'), },