waroom_get_service_architecture_context
Retrieve architecture context for a specific service to understand its structure and dependencies within the Waroom MCP environment.
Instructions
特定のサービスのアーキテクチャコンテキストを取得します。
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| service_name | Yes | サービス名 |
Implementation Reference
- src/tools/services.ts:42-59 (handler)MCP tool handler that fetches the service architecture context using WaroomClient and returns it as JSON text content.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/tools/services.ts:39-41 (schema)Input schema for the tool, requiring a service_name string parameter.{ service_name: z.string().min(1).max(100).describe('サービス名'), },
- src/tools/services.ts:36-60 (registration)Registration of the MCP tool 'waroom_get_service_architecture_context' including schema and handler.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)Helper method in WaroomClient that performs the API call to retrieve 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}`); } }