Skip to main content
Glama
egarcia74

Warp SQL Server MCP

by egarcia74

get_server_info

Retrieve configuration, status, and logging details for the Warp SQL Server MCP server to monitor and manage secure database operations.

Instructions

Get MCP server configuration, status, and logging information

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
include_logsNoInclude recent log entries (optional, defaults to false)

Implementation Reference

  • The primary handler function that collects comprehensive server status, configuration details, performance metrics, runtime information, and optional logging details, then formats and returns it as JSON.
    getServerInfo(includeLogs = false) {
      const connectionSummary = this.config.getConnectionSummary();
      const performanceStats = this.performanceMonitor.getStats();
      const connectionHealth = this.getConnectionHealth();
    
      const serverInfo = {
        server: {
          name: 'warp-sql-server-mcp',
          version: VERSION,
          status: 'Running',
          uptime: process.uptime(),
          nodeVersion: process.version,
          platform: process.platform
        },
        configuration: {
          connection: {
            server: connectionSummary.server,
            database: connectionSummary.database,
            authType: connectionSummary.authType,
            encrypt: connectionSummary.encrypt,
            trustCert: connectionSummary.trustCert,
            pool: `${connectionSummary.poolMin}-${connectionSummary.poolMax} connections`
          },
          security: {
            readOnlyMode: this.readOnlyMode,
            allowDestructiveOperations: this.allowDestructiveOperations,
            allowSchemaChanges: this.allowSchemaChanges,
            securityLevel: this.readOnlyMode
              ? 'MAXIMUM (Read-Only)'
              : this.allowSchemaChanges
                ? 'MINIMAL (Full Access)'
                : this.allowDestructiveOperations
                  ? 'MEDIUM (DML Allowed)'
                  : 'HIGH (DDL Blocked)'
          },
          performance: {
            enabled: this.config.performanceMonitoring.enabled,
            slowQueryThreshold: `${this.config.performanceMonitoring.slowQueryThreshold}ms`,
            maxMetricsHistory: this.config.performanceMonitoring.maxMetricsHistory,
            samplingRate: `${this.config.performanceMonitoring.samplingRate * 100}%`
          },
          logging: {
            level: this.logger.config.level,
            securityAudit: this.logger.config.enableSecurityAudit,
            responseFormat: this.config.logging.responseFormat,
            logFile: this.logger.config.logFile || 'Not configured (console only)',
            securityLogFile: this.logger.config.securityLogFile || 'Not configured (console only)'
          },
          streaming: {
            enabled: this.config.streaming.enabled,
            batchSize: this.config.streaming.batchSize,
            maxMemoryMB: this.config.streaming.maxMemoryMB,
            maxResponseSizeMB: Math.round(this.config.streaming.maxResponseSize / 1048576)
          }
        },
        runtime: {
          performance: performanceStats,
          connection: connectionHealth,
          environment: {
            nodeEnv: process.env.NODE_ENV || 'production',
            memoryUsage: process.memoryUsage(),
            pid: process.pid
          }
        }
      };
    
      if (includeLogs) {
        // Add detailed logging information including file paths
        serverInfo.logging = {
          note: "MCP server logs provide detailed insights into the system's operations and security events.",
          level: this.logger.config.level,
          securityAudit: this.logger.config.enableSecurityAudit ? 'Enabled' : 'Disabled',
          logLocation: 'stdout/stderr (captured by Warp)',
          structuredLogging: 'Winston-based with timestamps and metadata',
          mainLogFile: this.logger.config.logFile,
          securityLogFile: this.logger.config.securityLogFile,
          developmentMode: process.env.NODE_ENV === 'development' || process.env.NODE_ENV === 'test',
          outputTargets: {
            console: 'stdout/stderr (captured by Warp)',
            fileLogging: this.logger.config.logFile ? 'Enabled' : 'Console only',
            structuredLogging: 'Winston-based with timestamps and metadata'
          }
        };
      }
    
      return [
        {
          type: 'text',
          text: JSON.stringify(
            {
              success: true,
              data: serverInfo
            },
            null,
            2
          )
        }
      ];
    }
  • index.js:241-243 (registration)
    Registers the tool list handler which returns all tools including 'get_server_info' via getAllTools() from the registry.
    this.server.setRequestHandler(ListToolsRequestSchema, async () => ({
      tools: getAllTools()
    }));
  • index.js:348-351 (registration)
    Switch case in the tool call dispatcher that routes 'get_server_info' calls to the getServerInfo handler method.
    case 'get_server_info':
      return {
        content: this.getServerInfo(args.include_logs)
      };
  • Defines the tool specification including name, description, and input schema for validation.
      name: 'get_server_info',
      description: 'Get MCP server configuration, status, and logging information',
      inputSchema: {
        type: 'object',
        properties: {
          include_logs: {
            type: 'boolean',
            description: 'Include recent log entries (optional, defaults to false)'
          }
        }
      }
    }
Behavior2/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 of behavioral disclosure. It mentions retrieving 'configuration, status, and logging information,' which implies a read-only operation, but doesn't specify permissions needed, rate limits, or what the output format looks like. This leaves gaps for a tool that could return sensitive or complex data.

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 a single, efficient sentence that directly states the tool's purpose without any wasted words. It's appropriately sized and front-loaded, making it easy to parse quickly.

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 no annotations and no output schema, the description is incomplete for a tool that retrieves server information. It lacks details on what specific configuration or status data is returned, how logging information is formatted, or any behavioral traits like error handling. This leaves significant gaps for an AI agent to understand the full context.

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 input schema has 100% description coverage, with one optional parameter ('include_logs') well-documented in the schema. The description doesn't add any parameter-specific details beyond what the schema provides, so it meets the baseline score of 3 for high schema coverage without extra value.

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 verb ('Get') and resource ('MCP server configuration, status, and logging information'), making the purpose specific and understandable. However, it doesn't explicitly differentiate from sibling tools like 'get_connection_health' or 'get_performance_stats', which also retrieve server-related information, so it doesn't reach the highest clarity level.

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 'get_connection_health' and 'get_performance_stats' that might overlap in retrieving server data, there's no indication of context, prerequisites, or exclusions for this tool's use.

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/egarcia74/warp-sql-server-mcp'

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