Skip to main content
Glama

get_build_info

Retrieve detailed build and runtime information about the DollhouseMCP server to understand its configuration and operational status.

Instructions

Get comprehensive build and runtime information about the server

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • Main handler implementation for the 'get_build_info' MCP tool. Defines the tool schema (empty input), handler logic that fetches data from BuildInfoService, formats it, and returns as text content.
    export function getBuildInfoTools(_server: IToolHandler) {
      const buildInfoService = BuildInfoService.getInstance();
    
      return [
        {
          tool: {
            name: 'get_build_info',
            description: 'Get comprehensive build and runtime information about the server',
            inputSchema: {
              type: 'object' as const,
              properties: {},
              required: []
            }
          },
          handler: async () => {
            const info = await buildInfoService.getBuildInfo();
            const formattedInfo = buildInfoService.formatBuildInfo(info);
            return {
              content: [
                {
                  type: "text",
                  text: formattedInfo
                }
              ]
            };
          }
        }
      ];
    }
  • Registers the get_build_info tool via getBuildInfoTools during server setup.
    this.toolRegistry.registerMany(getBuildInfoTools(instance));
  • Input schema definition for get_build_info tool (empty object, no parameters).
    inputSchema: {
      type: 'object' as const,
      properties: {},
      required: []
    }
  • Core helper method that gathers all build, runtime, environment, and server information used by the tool handler.
    public async getBuildInfo(): Promise<BuildInfo> {
      const [packageInfo, gitInfo, dockerInfo] = await Promise.all([
        this.getPackageInfo(),
        this.getGitInfo(),
        this.getDockerInfo()
      ]);
    
      const buildTimestamp = await this.getBuildTimestamp();
    
      return {
        package: packageInfo,
        build: {
          timestamp: buildTimestamp,
          type: gitInfo.commit ? 'git' : buildTimestamp ? 'npm' : 'unknown',
          gitCommit: gitInfo.commit,
          gitBranch: gitInfo.branch,
          collectionFix: 'v1.6.9-beta1-collection-fix'  // Version identifier for verification
        },
        runtime: {
          nodeVersion: process.version,
          platform: process.platform,
          arch: process.arch,
          uptime: process.uptime(),
          memoryUsage: process.memoryUsage()
        },
        environment: {
          nodeEnv: process.env.NODE_ENV,
          isProduction: process.env.NODE_ENV === 'production',
          isDevelopment: process.env.NODE_ENV === 'development',
          isDebug: process.env.DEBUG === 'true' || process.env.DEBUG === '1',
          isDocker: dockerInfo.isDocker,
          dockerInfo: dockerInfo.info
        },
        server: {
          startTime: this.startTime,
          uptime: Date.now() - this.startTime.getTime(),
          mcpConnection: true // We're connected if this method is being called via MCP
        }
      };
    }
  • Helper method that formats the raw BuildInfo into user-friendly Markdown text for the tool response.
    public formatBuildInfo(info: BuildInfo): string {
      const lines: string[] = [];
      
      lines.push('# 🔧 Build Information\n');
      
      // Package info
      lines.push('## 📦 Package');
      lines.push(`- **Name**: ${info.package.name}`);
      lines.push(`- **Version**: ${info.package.version}`);
      lines.push('');
      
      // Build info
      lines.push('## 🏗️ Build');
      lines.push(`- **Type**: ${info.build.type}`);
      if (info.build.timestamp) {
        lines.push(`- **Timestamp**: ${info.build.timestamp}`);
      }
      if (info.build.gitCommit) {
        lines.push(`- **Git Commit**: \`${info.build.gitCommit}\``);
      }
      if (info.build.gitBranch) {
        lines.push(`- **Git Branch**: ${info.build.gitBranch}`);
      }
      lines.push('');
      
      // Runtime info
      lines.push('## 💻 Runtime');
      lines.push(`- **Node.js**: ${info.runtime.nodeVersion}`);
      lines.push(`- **Platform**: ${info.runtime.platform}`);
      lines.push(`- **Architecture**: ${info.runtime.arch}`);
      lines.push(`- **Process Uptime**: ${this.formatUptime(info.runtime.uptime)}`);
      lines.push(`- **Memory Usage**: ${this.formatMemory(info.runtime.memoryUsage.heapUsed)} / ${this.formatMemory(info.runtime.memoryUsage.heapTotal)}`);
      lines.push('');
      
      // Environment info
      lines.push('## ⚙️ Environment');
      lines.push(`- **NODE_ENV**: ${info.environment.nodeEnv || 'not set'}`);
      lines.push(`- **Mode**: ${info.environment.isProduction ? 'Production' : info.environment.isDevelopment ? 'Development' : 'Unknown'}`);
      lines.push(`- **Debug**: ${info.environment.isDebug ? 'Enabled' : 'Disabled'}`);
      lines.push(`- **Docker**: ${info.environment.isDocker ? 'Yes' : 'No'}`);
      if (info.environment.dockerInfo) {
        lines.push(`- **Container**: ${info.environment.dockerInfo}`);
      }
      lines.push('');
      
      // Server info
      lines.push('## 🚀 Server');
      lines.push(`- **Started**: ${info.server.startTime.toISOString()}`);
      lines.push(`- **Uptime**: ${this.formatUptime(info.server.uptime / 1000)}`);
      lines.push(`- **MCP Connection**: ${info.server.mcpConnection ? '✅ Connected' : '❌ Disconnected'}`);
      
      return lines.join('\n');
    }
Behavior3/5

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

No annotations are provided, so the description carries the full burden. It states this is a 'get' operation which implies read-only behavior, but doesn't disclose important behavioral traits like whether this requires authentication, what format the information returns in, or if there are any rate limits. The description is adequate but lacks operational context.

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

Conciseness5/5

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

The description is perfectly concise - a single sentence that clearly communicates the tool's purpose with zero wasted words. It's front-loaded with the essential information and doesn't include any unnecessary elaboration.

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

Completeness3/5

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

For a zero-parameter tool with no output schema, the description provides the basic purpose but lacks important context. It doesn't specify what 'comprehensive build and runtime information' includes, what format it returns, or whether this is a diagnostic tool versus a status check. Given the absence of both annotations and output schema, more detail would be helpful.

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

Parameters4/5

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

With 0 parameters and 100% schema description coverage, the baseline is 4. The description appropriately doesn't waste space discussing parameters that don't exist, though it could potentially mention that no inputs are required for this operation.

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

Purpose4/5

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

The description clearly states the tool's purpose with a specific verb ('Get') and resource ('comprehensive build and runtime information about the server'), making it immediately understandable. However, it doesn't explicitly differentiate from sibling tools like 'portfolio_status' or 'oauth_helper_status' which might also provide server-related information, preventing a perfect score.

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?

The description provides no guidance on when to use this tool versus alternatives. With siblings like 'portfolio_status' and 'oauth_helper_status' that might overlap in providing server information, there's no indication of when this specific tool is appropriate or what distinguishes it from other status-checking tools.

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/DollhouseMCP/DollhouseMCP'

If you have feedback or need assistance with the MCP directory API, please join our Discord server