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}`);
      }
    }
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations provided, the description carries the full burden of behavioral disclosure. It only states the action ('取得します') without detailing traits like read-only status, error handling, rate limits, authentication needs, or what happens if the service doesn't exist. This leaves significant gaps in understanding the tool's behavior.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single, efficient sentence in Japanese that directly states the tool's function. It is front-loaded with the core purpose and avoids unnecessary words, making it appropriately concise for a simple tool.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool's complexity (a read operation with one parameter) and lack of annotations and output schema, the description is incomplete. It doesn't explain what 'architecture context' includes, potential return values, or error conditions, leaving the agent with insufficient information to use the tool effectively.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The schema description coverage is 100%, with the parameter 'service_name' documented as 'サービス名' (service name). The description adds no additional meaning beyond this, such as format examples or constraints. Since the schema fully covers the parameter, the baseline score of 3 is appropriate.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states the purpose as '取得します' (get/retrieve) for '特定のサービスのアーキテクチャコンテキスト' (specific service's architecture context), which is clear but vague. It doesn't specify what 'architecture context' entails or how it differs from sibling tools like 'waroom_get_services' or 'waroom_get_service_labels', leaving room for ambiguity.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

No guidance is provided on when to use this tool versus alternatives. The description lacks context about prerequisites, such as whether the service must exist or be accessible, and doesn't mention any exclusions or comparisons to sibling tools like 'waroom_get_services' for broader service information.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

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