Skip to main content
Glama
topotal

Waroom MCP

by topotal

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
NameRequiredDescriptionDefault
service_nameYesサービス名

Implementation Reference

  • 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}`
          }]
        };
      }
    }
  • Input schema for the tool, requiring a service_name string parameter.
    {
      service_name: z.string().min(1).max(100).describe('サービス名'),
    },
  • 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}`
            }]
          };
        }
      }
    );
  • 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}`);
      }
    }

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