Skip to main content
Glama

mcp__gemini__debug_analysis

Analyze and debug errors in code by providing error messages and code snippets. Supports multiple programming languages for accurate problem resolution.

Instructions

AI-powered debugging assistance

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
codeNoCode where error occurs
errorYesError message
languageNoProgramming languagejavascript

Implementation Reference

  • The main execution logic for the mcp__gemini__debug_analysis tool. It destructures arguments, validates the error message, constructs a detailed prompt for the AI, calls aiClient with 'debug' model, and returns a formatted response.
    handler: async (args) => { const { error, code = '', language = 'javascript' } = args; validateString(error, 'error message'); const prompt = `Debug this ${language} error: **Error:** ${error} ${code ? `**Code:**\n\`\`\`${language}\n${code}\n\`\`\`` : ''} Provide: 1. Root cause analysis 2. Step-by-step debugging approach 3. Potential fixes with code examples 4. Prevention strategies 5. Common pitfalls to avoid`; const result = await aiClient.call(prompt, 'debug'); return `🐛 **Debug Analysis**\n\n${result}`; }
  • Input parameter schema defining required 'error' string, optional 'code' and 'language' (defaults to 'javascript'). Used for validation in the MCP tool registry.
    parameters: { error: { type: 'string', description: 'Error message', required: true }, code: { type: 'string', description: 'Code where error occurs' }, language: { type: 'string', description: 'Programming language', default: 'javascript' } },
  • Registration block in the main ToolRegistry that imports and registers all tools from analysisTools module, including mcp__gemini__debug_analysis, making it available for MCP execution.
    this.registerToolsFromModule(codeTools); this.registerToolsFromModule(analysisTools); this.registerToolsFromModule(enhancedTools); this.registerToolsFromModule(businessTools); this.registerToolsFromModule(licenseTools);

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/emmron/gemini-mcp'

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