Skip to main content
Glama

quick_scan

Scan log content to detect errors and identify issues for real-time monitoring and debugging.

Instructions

⚡ Ultra-fast log scan for real-time monitoring (< 1 second)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
logTextYesLog content for quick error detection

Implementation Reference

  • MCP tool handler for 'quick_scan' that validates input, calls rapidDebugger.quickScan, and formats the MCPToolResult response.
    private async handleQuickScan(args: any): Promise<MCPToolResult> { const { logText } = args; if (!logText || typeof logText !== 'string') { throw new Error('logText is required and must be a string'); } const scanResult = await this.rapidDebugger.quickScan(logText); return { success: true, data: { ...scanResult, message: `⚡ Quick scan completed in ${scanResult.time}ms` }, metadata: { processedAt: new Date(), scanMode: 'quick' } }; }
  • Input schema definition for the 'quick_scan' tool, specifying logText as required string.
    inputSchema: { type: 'object', properties: { logText: { type: 'string', description: 'Log content for quick error detection' } }, required: ['logText'] }
  • src/server.ts:64-77 (registration)
    Registration of the 'quick_scan' tool in the ListToolsRequestHandler response.
    { name: 'quick_scan', description: '⚡ Ultra-fast log scan for real-time monitoring (< 1 second)', inputSchema: { type: 'object', properties: { logText: { type: 'string', description: 'Log content for quick error detection' } }, required: ['logText'] } },
  • Core implementation of quickScan logic: counts errors, detects critical issues, measures execution time.
    async quickScan(logContent: string): Promise<{errors: number, critical: boolean, time: number}> { const start = Date.now(); const errors = LogUtils.extractErrorPatterns(logContent); const critical = logContent.toLowerCase().includes('fatal') || logContent.toLowerCase().includes('critical') || errors.length > 5; return { errors: errors.length, critical, time: Date.now() - start }; }
  • src/server.ts:177-179 (registration)
    Dispatch registration in the CallToolRequestHandler switch statement.
    case 'quick_scan': result = await this.handleQuickScan(args); break;

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/ChiragPatankar/loganalyzer-mcp'

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